|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ToolWindowGroup
This interface lets the user to manager a group of tool window. The idea is to provide the same mechanism of prospectives of eclipse ide for toolwindows. The typical usage is to retrieve a group from the tool window manager and to add any toolwindows. After that we can show or hide all tools registered in a group.
| Method Summary | |
|---|---|
void |
addToolWindow(ToolWindow toolWindow)
Appends the specified tool window to the end of this group. |
void |
addToolWindowGroupListener(ToolWindowGroupListener listener)
Registers listener so that it will receive events when
the groups are made visibile or invisible, when a tool is added or removed
If listener listener is null,
no exception is thrown and no action is performed. |
boolean |
containesToolWindow(ToolWindow toolWindow)
Returns true if this group contains the specified tool window. |
String |
getName()
Returns the group's name. |
ToolWindow[] |
getToolsWindow()
Returns an array containing all of the toolwindows in this group in proper sequence. |
ToolWindowGroupListener[] |
getToolWindowGroupListeners()
Returns an array of all the tool window group listeners registered on this group. |
boolean |
isImplicit()
Returns true if this is an implicit group, false otherwise. |
boolean |
removeToolWindow(ToolWindow toolWindow)
Removes the occurrence in this group of the specified tool window. |
void |
removeToolWindowGroupListener(ToolWindowGroupListener listener)
Unregisters listener so that it will no longer receive
events. |
void |
setImplicit(boolean implicit)
The method is used to set the implicit property of the group. |
void |
setVisible(boolean visible)
Invokes setVisible(visible) on all toolwindows contained in this group
in proper sequence. |
| Method Detail |
|---|
String getName()
void addToolWindow(ToolWindow toolWindow)
toolWindow - tool window to be appended to this group.
NullPointerException - if the specified tool window is null.
IllegalArgumentException - if tool window was already added.boolean removeToolWindow(ToolWindow toolWindow)
toolWindow - tool window to be removed from this group, if present.
NullPointerException - if the specified element is null.ToolWindow[] getToolsWindow()
boolean containesToolWindow(ToolWindow toolWindow)
toolWindow - tool window whose presence in this group is to be tested.
NullPointerException - if the specified element is null.void setImplicit(boolean implicit)
implicit is true then if a tool in this group is made visible then
all tools in this group will be make visible.
implicit - true to enable, false otherwise.boolean isImplicit()
void setVisible(boolean visible)
setVisible(visible) on all toolwindows contained in this group
in proper sequence.
visible - true to make the tools, contained in this group, visible, false to hide.ToolWindow.setVisible(boolean)void addToolWindowGroupListener(ToolWindowGroupListener listener)
listener so that it will receive events when
the groups are made visibile or invisible, when a tool is added or removed
If listener listener is null,
no exception is thrown and no action is performed.
listener - the ToolWindowGroupListener to register.ToolWindowGroupListenervoid removeToolWindowGroupListener(ToolWindowGroupListener listener)
listener so that it will no longer receive
events. This method performs no function, nor does it throw an exception, if the listener
specified by the argument was not previously added to this group.
If listener listener is null,
no exception is thrown and no action is performed.
listener - the ToolWindowGroupListener to be removedaddToolWindowGroupListener(ToolWindowGroupListener)ToolWindowGroupListener[] getToolWindowGroupListeners()
ToolWindowGroupListeners
or an empty array if no tool window group listeners are currently registered.addToolWindowGroupListener(ToolWindowGroupListener),
removeToolWindowGroupListener(ToolWindowGroupListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||