Package com.illumon.iris.gui.workspace
Class ViewManager
java.lang.Object
com.illumon.iris.gui.workspace.ViewManager
- All Implemented Interfaces:
Workspace
- Direct Known Subclasses:
IrisConsole.IrisViewManager
public abstract class ViewManager extends Object implements Workspace
-
Field Summary
Fields Modifier and Type Field Description protected com.illumon.infonode.docking.RootWindow
rootWindow_
-
Constructor Summary
Constructors Constructor Description ViewManager(com.fishlib.io.logger.Logger log)
-
Method Summary
Modifier and Type Method Description IrisView
addView(String type, String title)
IrisView
addView(String type, String title, boolean addToRoot, Map<String,String> params)
IrisView
addView(String type, String title, Map<String,String> params)
protected abstract IrisView
createView(String type, String title, String viewId, Map<String,String> params)
protected abstract com.illumon.infonode.docking.util.StringViewMap
createViewMap()
org.jdom2.Element
exportShare(Set<com.illumon.infonode.docking.View> viewsForExport, com.illumon.infonode.docking.DockingWindow windowToExport)
Exports for a shareable workspace.List<String>
getAndClearViewProblems()
org.jdom2.Element
getWorkspaceInfo()
Serialize the class into an element to be stored in the workspaceMap<String,String>
importShare(org.jdom2.Element workspaceInfo)
Imports views from a shared workspace.protected void
init()
boolean
isViewLocked()
protected void
maybeUpdateParams(Map<String,String> params, Map<String,String> viewIdMap)
void
setViewLock(boolean viewLock)
void
setWorkspaceInfo(org.jdom2.Element workspaceInfo)
Restore the class to the state defined by the data persisted in workspaceInfoIrisView
updateView(String type, String title, String viewId, boolean addToRoot, Map<String,String> params)
IrisView
updateView(String type, String title, String viewId, Map<String,String> params)
-
Field Details
-
rootWindow_
protected com.illumon.infonode.docking.RootWindow rootWindow_
-
-
Constructor Details
-
ViewManager
public ViewManager(com.fishlib.io.logger.Logger log)
-
-
Method Details
-
init
protected void init() -
addView
-
addView
-
addView
-
updateView
-
updateView
-
setViewLock
public void setViewLock(boolean viewLock) -
isViewLocked
public boolean isViewLocked() -
createViewMap
protected abstract com.illumon.infonode.docking.util.StringViewMap createViewMap() -
createView
-
maybeUpdateParams
-
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.
-
exportShare
public org.jdom2.Element exportShare(Set<com.illumon.infonode.docking.View> viewsForExport, com.illumon.infonode.docking.DockingWindow windowToExport)Exports for a shareable workspace.- Parameters:
viewsForExport
- the views to exportwindowToExport
- the top level window of the export- Returns:
- An
Element
containing the data to persist.
-
importShare
Imports views from a shared workspace.- Parameters:
workspaceInfo
- the element containing the workspace info
-
getAndClearViewProblems
- Returns:
- A list of strings that describe any problems encountered during loading of the views, or an empty list if there were no problems.
-