|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.windows.WindowManager
Manages window system.
Allows the work with window system components, i.e. Mode
S, TopComponentGroup
S
and provides handling of operations privided over TopComponent
S.
Important note: Do not provide implementation of this abstract class unless you are window system provider!
Nested Class Summary | |
protected static interface |
WindowManager.Component
Deprecated. XXX Do not use anymore. This interface is replaced by bunch of protedcted methods which name starts with topComponent prefix, i.e. topComponentOpen(org.openide.windows.TopComponent) , topComponentClose(org.openide.windows.TopComponent) etc. |
Field Summary | |
static String |
PROP_CURRENT_WORKSPACE
property change of current workspace. |
static String |
PROP_MODES
XXX Name of property for modes in the workspace. |
static String |
PROP_WORKSPACES
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
Constructor Summary | |
WindowManager()
|
Method Summary | |
protected void |
activateComponent(TopComponent tc)
Activate a component. |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Attaches a 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 |
componentHidden(TopComponent tc)
Notifies TopComponent it was hidden. |
protected void |
componentOpenNotify(TopComponent tc)
Notifies component that it was opened (and wasn't opened on any workspace before). |
protected TopComponent.Registry |
componentRegistry()
Access method for registry of all components in the system. |
protected void |
componentShowing(TopComponent tc)
Notifies TopComponent it is about to be shown. |
protected abstract WindowManager.Component |
createTopComponentManager(TopComponent c)
Create a component manager for the given top component. |
Workspace |
createWorkspace(String name)
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
abstract Workspace |
createWorkspace(String name,
String displayName)
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
protected static WindowManager.Component |
findComponentManager(TopComponent tc)
Deprecated. XXX Do not use anymore. See #Component deprecation. |
abstract Mode |
findMode(String name)
XXX Finds mode where specified name. |
abstract Mode |
findMode(TopComponent tc)
XXX Finds mode which contains specified TopComponent . |
abstract TopComponentGroup |
findTopComponentGroup(String name)
XXX Finds TopComponentGroup of given name. |
abstract Workspace |
findWorkspace(String name)
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
abstract Workspace |
getCurrentWorkspace()
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
static WindowManager |
getDefault()
Singleton instance accessor method for window manager. |
abstract Frame |
getMainWindow()
Get the Main Window of the IDE. |
abstract Set |
getModes()
XXX Gets set of all Mode S added into window system. |
TopComponent.Registry |
getRegistry()
Getter for component registry. |
abstract Workspace[] |
getWorkspaces()
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a listener for changes in workspaces. |
abstract void |
setWorkspaces(Workspace[] workspaces)
Deprecated. XXX Do not use. Workspaces are not supported anymore. |
protected abstract void |
topComponentActivatedNodesChanged(TopComponent tc,
org.openide.nodes.Node[] activatedNodes)
XXX Informs about change of activated nodes of specified TopComponent . |
protected abstract void |
topComponentClose(TopComponent tc)
XXX Provides closing of specified TopComponent . |
protected abstract Action[] |
topComponentDefaultActions(TopComponent tc)
XXX Gets default list of actions which appear in popup menu of TopComponent. |
protected abstract void |
topComponentDisplayNameChanged(TopComponent tc,
String displayName)
XXX Informs about change of display name of specified TopComponent . |
protected abstract void |
topComponentIconChanged(TopComponent tc,
Image icon)
XXX Informs about chagne of icon of specified TopComponent . |
protected abstract String |
topComponentID(TopComponent tc,
String preferredID)
XXX Returns unique ID for specified TopComponent . |
protected abstract boolean |
topComponentIsOpened(TopComponent tc)
XXX Indicates whether specified TopComponent is opened. |
protected abstract void |
topComponentOpen(TopComponent tc)
XXX Provides opening of specified TopComponent . |
protected abstract void |
topComponentRequestActive(TopComponent tc)
XXX Provides activation of specified TopComponent . |
protected abstract void |
topComponentRequestVisible(TopComponent tc)
XXX Provides selection of specfied TopComponent . |
protected abstract void |
topComponentToolTipChanged(TopComponent tc,
String toolTip)
XXX Informs about change of tooltip of specified TopComponent . |
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
public static final String PROP_MODES
Constructor Detail |
public WindowManager()
Method Detail |
public static final WindowManager getDefault()
public abstract Mode findMode(String name)
Mode
whith the specified name is or null
if there does not exist such Mode
inside window system.public abstract Mode findMode(TopComponent tc)
TopComponent
.
Mode
which contains specified TopComponent
or null
if the TopComponent
is not added into any Mode
inside window system.public abstract Set getModes()
Mode
S added into window system.
public abstract Frame getMainWindow()
public abstract void updateUI()
JComponent.updateUI()
on all opened windows.
protected abstract WindowManager.Component createTopComponentManager(TopComponent c)
c
- the component
protected TopComponent.Registry componentRegistry()
public TopComponent.Registry getRegistry()
public final Workspace createWorkspace(String name)
name
- the name of the workspace
public abstract Workspace createWorkspace(String name, String displayName)
setWorkspaces(org.openide.windows.Workspace[])
is called
with an array containing the new workspace.
name
- the code name (used for internal purposes)displayName
- the display name
public abstract Workspace findWorkspace(String name)
name
- the (code) name of workspace to find
public 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()
Workspace.activate()
public abstract TopComponentGroup findTopComponentGroup(String name)
TopComponentGroup
of given name.
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l
- the new listenerpublic abstract void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to removeprotected static final WindowManager.Component findComponentManager(TopComponent tc)
#Component
deprecation.
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 notifiedprotected void componentShowing(TopComponent tc)
TopComponent
it is about to be shown.
tc
- TopComponent
to be notifiedTopComponent.componentShowing()
protected void componentHidden(TopComponent tc)
TopComponent
it was hidden.
tc
- TopComponent
to be notifiedTopComponent.componentHidden()
protected abstract void topComponentOpen(TopComponent tc)
TopComponent
.
tc
- TopComponent
to openprotected abstract void topComponentClose(TopComponent tc)
TopComponent
.
tc
- TopComponent
to closeprotected abstract void topComponentRequestActive(TopComponent tc)
TopComponent
.
tc
- TopComponent
to activateprotected abstract void topComponentRequestVisible(TopComponent tc)
TopComponent
.
tc
- TopComponent
to set visible (select)protected abstract void topComponentDisplayNameChanged(TopComponent tc, String displayName)
TopComponent
.
tc
- TopComponent
which display name has changeddisplayName
- newly changed display name valueprotected abstract void topComponentToolTipChanged(TopComponent tc, String toolTip)
TopComponent
.
tc
- TopComponent
which tooltip has changedtoolTip
- newly changed tooltip valueprotected abstract void topComponentIconChanged(TopComponent tc, Image icon)
TopComponent
.
tc
- TopComponent
which icon has changedicon
- newly chaned icon valueprotected abstract void topComponentActivatedNodesChanged(TopComponent tc, org.openide.nodes.Node[] activatedNodes)
TopComponent
.
tc
- TopComponent
which activated nodes has chagnedactivatedNodes
- newly chaged activated nodes valueprotected abstract boolean topComponentIsOpened(TopComponent tc)
TopComponent
is opened.
tc
- specified TopComponent
protected abstract Action[] topComponentDefaultActions(TopComponent tc)
tc
- TopComponent
for which the default actions to provideprotected abstract String topComponentID(TopComponent tc, String preferredID)
TopComponent
.
tc
- TopComponent
the component for which is ID returnedpreferredID
- first approximation used for ID
TopComponent
ID
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |