|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ToolWindowManager
This interface is the main entry point to manager MyDoggy. Using this interface the user can register/unregister tool windows, groups. The user can get the content manager instance and type descriptor templates.
ToolWindow,
ToolWindowGroup,
ContentManager,
ToolWindowTypeDescriptor,
ToolWindowManagerListener| Method Summary | |
|---|---|
void |
addToolWindowManagerListener(ToolWindowManagerListener listener)
Registers listener so that it will receive events when
the toolwindows and groups are registered or removed.. |
boolean |
containsGroup(String name)
Returns true if this manager contains a group for the specified name. |
Object |
getActiveToolWindowId()
Returns the id of currently active tool window. |
ContentManager |
getContentManager()
Returns the instance of ContentManager that manages main window contents. |
PersistenceDelegate |
getPersistenceDelegate()
Returns an instance of PersistenceDelegate relative to this manager. |
ToolWindow[] |
getToolsByAnchor(ToolWindowAnchor anchor)
Returns an array of the toolwindows, registered into this manager, with the specified anchor. |
ToolWindow |
getToolWindow(int index)
Returns the tool window whose index is index. |
ToolWindow |
getToolWindow(Object key)
Returns the tool window to which this manager maps the specified key (the key could be the id or an alias). |
ToolWindowBar |
getToolWindowBar(ToolWindowAnchor anchor)
Returns the instance of ToolWindowBar related to the specified anchor. |
ToolWindow |
getToolWindowByAlias(Object alias)
Deprecated. use getToolWindow(Object) instead. |
ToolWindowGroup |
getToolWindowGroup()
Returns a special group that contains all toolwindows registered in this manager. |
ToolWindowGroup |
getToolWindowGroup(String name)
Returns the tool window group to which this manager maps the specified name. |
ToolWindowGroup[] |
getToolWindowGroups()
Returns an array of the toolwindows groups registered into this manager. |
ToolWindowManagerDescriptor |
getToolWindowManagerDescriptor()
Returns the type descriptor for this manager. |
ToolWindowManagerListener[] |
getToolWindowManagerListeners()
Returns an array of all the tool window manager listeners registered on this manager. |
ToolWindow[] |
getToolWindows()
Returns an array of the toolwindows registered into this manager. |
ToolWindowTypeDescriptor |
getTypeDescriptorTemplate(ToolWindowType type)
Returns the template type descrptor for type. |
Dockable |
lookupDockable(Object key)
Returns the dockable to which a dockable manager (this manager, the content manager or a toolwindow) maps the specified id. |
ToolWindow |
registerToolWindow(String id,
String title,
Icon icon,
Component component,
ToolWindowAnchor anchor)
Register a new tool window into this window manager based on the passed parameters. |
boolean |
removeToolWindowGroup(String name)
Removes the tool window group for this name from this manager if it is present. |
boolean |
removeToolWindowGroup(ToolWindowGroup toolWindowGroup)
Removes the tool window group from this manager if it is registered. |
void |
removeToolWindowManagerListener(ToolWindowManagerListener listener)
Unregisters listener so that it will no longer receive
events. |
void |
unregisterAllToolWindow()
Removes all toolwindows from this window manager if there are any. |
void |
unregisterToolWindow(String id)
Removes the tool window for this id from this window manager if it is present. |
| Methods inherited from interface org.noos.xing.mydoggy.DockableManager |
|---|
addAlias, addDockableManagerListener, getAliases, getDockableById, getDockableManagerListeners, getDockables, removeAlias, removeDockableManagerListener |
| Method Detail |
|---|
ContentManager getContentManager()
ContentManager that manages main window contents.
ContentManager.ContentManagerToolWindowManagerDescriptor getToolWindowManagerDescriptor()
PersistenceDelegate getPersistenceDelegate()
PersistenceDelegate relative to this manager.
PersistenceDelegate relative to this manager.
ToolWindow registerToolWindow(String id,
String title,
Icon icon,
Component component,
ToolWindowAnchor anchor)
id - id of tool window to be registered.title - title of tool window to be registered (can be null).icon - icon of tool window to be registered (can be null).component - component which represents tool window content.anchor - anchor of tool window to be registered.
IllegalArgumentException - if exist a tool window registered
with the same id or one or more of the parameters is null.ToolWindowAnchor,
ToolWindowManager,
unregisterToolWindow(String)void unregisterToolWindow(String id)
id - id of tool window to be removed.
IllegalArgumentException - - if tool window with specified id isn't registered.registerToolWindow(String,String,javax.swing.Icon,java.awt.Component,ToolWindowAnchor),
unregisterAllToolWindow()void unregisterAllToolWindow()
ToolWindow getToolWindowByAlias(Object alias)
alias - alias whose associated toolWindow is to be returned.
Object getActiveToolWindowId()
ToolWindow getToolWindow(Object key)
key - the key could be the id or an alias
ToolWindow getToolWindow(int index)
index.
index - tool window index.
index.ToolWindow[] getToolWindows()
ToolWindow[] getToolsByAnchor(ToolWindowAnchor anchor)
anchor - anchor which toolwindows are anchored.
ToolWindowAnchorToolWindowGroup getToolWindowGroup()
ToolWindowGroup getToolWindowGroup(String name)
name - name of tool window group.
ToolWindowGroup,
getToolWindowGroups()ToolWindowGroup[] getToolWindowGroups()
getToolWindowGroup(String)boolean removeToolWindowGroup(String name)
name - name whose group is to be removed from the manager.
getToolWindowGroup(String)boolean removeToolWindowGroup(ToolWindowGroup toolWindowGroup)
toolWindowGroup - the group to be removed from the manager.
getToolWindowGroup(String)boolean containsGroup(String name)
name - name whose presence in this manager is to be tested.
Dockable lookupDockable(Object key)
key - dockable's id or alias.
DockableToolWindowBar getToolWindowBar(ToolWindowAnchor anchor)
anchor - for which the related instance of ToolWindowBar is to be returned.
ToolWindowTypeDescriptor getTypeDescriptorTemplate(ToolWindowType type)
type.
Any modifications to those templates will be reflected on all registered tool windows.
type - type whose template is to be returned from the manager.
type.
IllegalArgumentException - - if doen't exist a template for type.ToolWindowType,
ToolWindowTypeDescriptorvoid addToolWindowManagerListener(ToolWindowManagerListener listener)
listener so that it will receive events when
the toolwindows and groups are registered or removed..
If listener listener is null,
no exception is thrown and no action is performed.
listener - the ToolWindowManagerListener to register.ToolWindowManagerListenervoid removeToolWindowManagerListener(ToolWindowManagerListener 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 ToolWindowManagerListener to be removedaddToolWindowManagerListener(ToolWindowManagerListener)ToolWindowManagerListener[] getToolWindowManagerListeners()
ToolWindowManagerListeners
or an empty array if no tool window manager listeners are currently registered.addToolWindowManagerListener(ToolWindowManagerListener),
removeToolWindowManagerListener(ToolWindowManagerListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||