ToolWindow tool = toolWindowManager.getToolWindow(0); tool.setVisibile(true); // false to hide
The tool shows or hides the component in a way that depends on tool window type.
There is an another way to show a tool. You can use the aggregate methedo
ToolWindow tool = toolWindowManager.getToolWindow(0); tool.aggregate();
The method is used to set to the true value the visible property of the tool. The tool becomes visible in a special way. In fact, if there is another tool visible with the same anchor than these two tools will be aggregate to be visible both.
ToolWindow tool = toolWindowManager.getToolWindow(0); tool.setActive(true); // false to deactivate
The tool grabs the focus from focus owner and becomes active.
ToolWindow tool = toolWindowManager.getToolWindow(0); tool.setAnchor(ToolWindowAnchor.TOP);
The anchor specifies the position of the tool when it is anchored to the docking system.
ToolWindow tool = toolWindowManager.getToolWindow(0); tool.setFlashing(true); // false to disable
Sets the flashing mode. If the flashing mode is enabled then the toolwindow representative button
will be flashing until the tool will be made visible. If the tool is visible but not active then
the toolwindow title bar will be flashing until the tool will be made visible.
You can use setFlashing(int) to enable flashing for a specific duration.
ToolWindow tool = toolWindowManager.getToolWindow(0); tool.setAnchor(ToolWindowAnchor.TOP);
Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class, including the following:
ToolWindow tool = toolWindowManager.getToolWindow(0);
tool.addToolWindowTab("Title", component);
component represented by a title and no icon.
DockedTypeDescriptor desc = (DockedTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.DOCKED); desc.setPopupMenuEnabled(true); // false to denie.
DockedTypeDescriptor desc = (DockedTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.DOCKED);
JMenu menu = desc.getToolsMenu();
menu.addJMenuItem(new JMenuItem("Hello World!!!");
DockedTypeDescriptor desc = (DockedTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.DOCKED); desc.setDockLength(150);
DockedTypeDescriptor desc = (DockedTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.DOCKED);
desc.setToolWindowActionHandler(new ToolWindowActionHandler(){...});
DockedTypeDescriptor desc = (DockedTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.DOCKED); desc.setPreviewEnabled(true); // false to disable
setPreviewTransparentRatio and setPreviewDelay methods
to set transparency paramenters and delay.
SlidingTypeDescriptor desc = (SlidingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setTransparentMode(true); // false to disable
setTransparentRatio and setTransparentDelay methods
to set transparency paramenters and delay.
SlidingTypeDescriptor desc = (SlidingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setEnabled(true); // false to disable
enabled. An enabled mode can used by user.
This Mode is enabled initially by default.
FloatingTypeDescriptor desc = (FloatingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setTransparentMode(true); // false to disable
Sets the transparent mode. If the transparent mode is enabled then when
the window used by FLOATING and FLOATING_FREE type losts
the focus it becomes transparent. This facility is os-dependent.
You can use setTransparentRatio and setTransparentDelay methods
to set transparency paramenters and delay.
FloatingTypeDescriptor desc = (FloatingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setEnabled(true); // false to disable
Enables or disables this mode, depending on the value of the
parameter enabled. An enabled mode can used by user.
This Mode is enabled initially by default.
FloatingTypeDescriptor desc = (FloatingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setPosition(150, 220);
Sets the window location. This location is also used the first time the window becomes visible.
The top-left corner of the new location
is specified by the x and y
parameters in the system coordinate space.
FloatingTypeDescriptor desc = (FloatingTypeDescriptor) debugTool.getTypeDescriptor(ToolWindowType.SLIDING); desc.setSize(320, 200);
Sets the window size. This size is also used the first time the window becomes visible.