|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents one user workspace that holds a list of modes into which components can be assigned. Created by WindowManager. When serialized only keeps "weak" reference to this workspace does not stores the content of the workspace (it is responsibility of window manager).
Field Summary | |
static String |
PROP_DISPLAY_NAME
Name of property for the display name of this workspace. |
static String |
PROP_MODES
Name of property for modes in the workspace |
static String |
PROP_NAME
Name of property for the programmatic name of this workspace. |
static long |
serialVersionUID
generated Serialized Version UID |
Method Summary | |
void |
activate()
Activates this workspace to be current one. |
void |
addPropertyChangeListener(PropertyChangeListener list)
Add a property change listener. |
Mode |
createMode(String name,
String displayName,
URL icon)
Create a new mode. |
Mode |
findMode(String name)
Search all modes on this workspace by name. |
Mode |
findMode(TopComponent c)
Finds mode the component is in on this workspace. |
Rectangle |
getBounds()
Get bounds of the workspace. |
String |
getDisplayName()
Get human-presentable name of the workspace which will be used for displaying. |
Set |
getModes()
Array of all modes on this workspace. |
String |
getName()
Get unique programmatical name of this workspace. |
void |
remove()
Removes this workspace from set of workspaces in window manager. |
void |
removePropertyChangeListener(PropertyChangeListener list)
Remove a property change listener. |
Field Detail |
public static final long serialVersionUID
public static final String PROP_MODES
public static final String PROP_NAME
public static final String PROP_DISPLAY_NAME
Method Detail |
public String getName()
public String getDisplayName()
public Set getModes()
public Rectangle getBounds()
public void activate()
public Mode createMode(String name, String displayName, URL icon)
name
- a unique programmatic name of the modedisplayName
- a human presentable (probably localized) name
of the mode (may be used by
the Dock Into submenu, e.g.)icon
- a URL to the icon to use for the mode (e.g. on a tab or window corner);
may be null
public Mode findMode(String name)
name
- the name of the mode to search fornull
if no such mode
can be foundpublic Mode findMode(TopComponent c)
c
- component to find mode forpublic void remove()
public void addPropertyChangeListener(PropertyChangeListener list)
list
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener list)
list
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |