Package com.illumon.iris.gui.workspace
Class ComponentWorkspace
java.lang.Object
com.illumon.iris.gui.workspace.ComponentWorkspace
- All Implemented Interfaces:
Workspace
public class ComponentWorkspace extends Object implements Workspace
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ComponentWorkspace.ValueHolder<T>
-
Constructor Summary
Constructors Constructor Description ComponentWorkspace(String name)
-
Method Summary
Modifier and Type Method Description void
add(String key, ComponentWorkspace.ValueHolder valueHolder)
void
add(String key, JComponent component)
ComponentWorkspace.ValueHolder<Boolean>
addBoolean(String key)
ComponentWorkspace.ValueHolder<String>
addString(String key)
org.jdom2.Element
getWorkspaceInfo()
Serialize the class into an element to be stored in the workspacevoid
setWorkspaceInfo(org.jdom2.Element workspaceInfo)
Restore the class to the state defined by the data persisted in workspaceInfo
-
Constructor Details
-
Method Details
-
add
-
add
-
addBoolean
-
addString
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:Workspace
Restore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfo
in interfaceWorkspace
- Parameters:
workspaceInfo
- AnElement
containing the persisted state.
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:Workspace
Serialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfo
in interfaceWorkspace
- Returns:
- An
Element
containing the data to persist.
-