|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.windows.WindowManager
Manager of windows in the IDE. Handles the work with workspaces, allows to listen to workspace changes.
Inner Class Summary | |
protected static interface |
WindowManager.Component
A manager that handles operations on top components. |
Field Summary | |
static String |
PROP_CURRENT_WORKSPACE
property change of current workspace |
static String |
PROP_WORKSPACES
property change of workspaces |
Constructor Summary | |
WindowManager()
|
Method Summary | |
protected void |
activateComponent(TopComponent tc)
Activate a component. |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Attaches listener for changes in workspaces |
protected void |
componentCloseNotify(TopComponent tc)
Notifies component that it was closed (and is not opened on any workspace anymore). |
protected void |
componentOpenNotify(TopComponent tc)
Notifies component that it was opened (and wasn't opened on any workspace before). |
protected abstract TopComponent.Registry |
componentRegistry()
Access method for registry of all components in the system. |
protected abstract WindowManager.Component |
createTopComponentManager(TopComponent c)
Create a component manager for the given top component. |
Workspace |
createWorkspace(String name)
Deprecated. please use method createWorkspace(String name, String displayName) instead |
abstract Workspace |
createWorkspace(String name,
String displayName)
Creates new workspace. |
protected static WindowManager.Component |
findComponentManager(TopComponent tc)
Finds top component manager for given top component. |
abstract Workspace |
findWorkspace(String name)
Finds workspace given its name. |
abstract Workspace |
getCurrentWorkspace()
Current workspace. |
abstract Frame |
getMainWindow()
Get the Main Window of the IDE. |
TopComponent.Registry |
getRegistry()
Getter for component registry. |
abstract Workspace[] |
getWorkspaces()
List of all workspaces. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes listener. |
abstract void |
setWorkspaces(Workspace[] workspaces)
Sets new array of workspaces. |
abstract void |
updateUI()
Called after a Look&Feel change to update the IDE's UI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROP_WORKSPACES
public static final String PROP_CURRENT_WORKSPACE
Constructor Detail |
public WindowManager()
Method Detail |
public abstract Frame getMainWindow()
public abstract void updateUI()
JComponent.updateUI()
on all opened windows.protected abstract WindowManager.Component createTopComponentManager(TopComponent c)
c
- the componentprotected abstract TopComponent.Registry componentRegistry()
public TopComponent.Registry getRegistry()
public final Workspace createWorkspace(String name)
name
- the name of the workspacepublic abstract Workspace createWorkspace(String name, String displayName)
setWorkspaces(org.openide.windows.Workspace[])
is called
with an array containing the new workspace.codeName
- the code name (used for lookup)displayName
- the display namepublic abstract Workspace findWorkspace(String name)
name
- the name of workspace to findpublic abstract Workspace[] getWorkspaces()
public abstract void setWorkspaces(Workspace[] workspaces)
getWorkspaces()
, this may be used to reorder
workspaces, or add or remove workspaces.workspaces
- An array consisting of new workspaces.public abstract Workspace getCurrentWorkspace()
public abstract void addPropertyChangeListener(PropertyChangeListener l)
public abstract void removePropertyChangeListener(PropertyChangeListener l)
protected static final WindowManager.Component findComponentManager(TopComponent tc)
tc
- top component to find manager for.protected void activateComponent(TopComponent tc)
tc
- the top component to activate;
or null
to deactivate all top componentsprotected void componentOpenNotify(TopComponent tc)
tc
- the top component to be notifiedprotected void componentCloseNotify(TopComponent tc)
tc
- the top component to be notified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |