|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A window-management mode in which a
TopComponent
can be.
Some default modes are always present.
Modules can add their own modes by calling
Workspace.createMode(java.lang.String, java.lang.String, java.net.URL)
in their initialization code,
or by declaring them using XML.
Modules can also get a list of current modes by calling
Workspace.getModes()
.
A mode is valid so long as someone keeps a reference to it.
Each mode must have a unique name.
Importatnt note: Do not provide implementation of this interface unless you are window system provider!
Field Summary | |
static String |
PROP_BOUNDS
Name of property for bounds of the mode |
static String |
PROP_DISPLAY_NAME
Deprecated. XXX Do not use. It is redundant. |
static String |
PROP_NAME
Deprecated. XXX Do not use. It is redundant, name can not be changed. |
static long |
serialVersionUID
Deprecated. Only public by accident. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener list)
Add a property change listener. |
boolean |
canDock(TopComponent tc)
Allows implementor to specify some restrictive policy as to which top components can be docked into this mode. |
boolean |
dockInto(TopComponent c)
Attaches a component to a mode for this workspace. |
Rectangle |
getBounds()
Getter for current bounds of the mode. |
String |
getDisplayName()
Deprecated. XXX Do not use. It is redudant. |
Image |
getIcon()
Deprecated. XXX Do not use. It is redundant. |
String |
getName()
Get the programmatic name of the mode. |
TopComponent |
getSelectedTopComponent()
XXX Gets selected TopComponent in this mode. |
TopComponent[] |
getTopComponents()
Get all top components currently docked into this mode. |
Workspace |
getWorkspace()
Deprecated. XXX Do not use. Worskpaces are not supporeted anymore. |
void |
removePropertyChangeListener(PropertyChangeListener list)
Remove a property change listener. |
void |
setBounds(Rectangle s)
Sets the bounds of the mode. |
Field Detail |
public static final long serialVersionUID
public static final String PROP_BOUNDS
public static final String PROP_NAME
public static final String PROP_DISPLAY_NAME
Method Detail |
public String getDisplayName()
public String getName()
public Image getIcon()
null
if no icon was specified)public boolean dockInto(TopComponent c)
c
- component
public boolean canDock(TopComponent tc)
public void setBounds(Rectangle s)
s
- the bounds for the modepublic Rectangle getBounds()
public Workspace getWorkspace()
public TopComponent[] getTopComponents()
public void addPropertyChangeListener(PropertyChangeListener list)
list
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener list)
list
- the listener to removepublic TopComponent getSelectedTopComponent()
TopComponent
in this mode.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |