Package com.illumon.iris.console.events
Class IrisConsole.IrisViewManager
java.lang.Object
com.illumon.iris.gui.workspace.ViewManager
com.illumon.iris.console.events.IrisConsole.IrisViewManager
- All Implemented Interfaces:
Workspace
- Enclosing class:
- IrisConsole
public class IrisConsole.IrisViewManager extends ViewManager
-
Field Summary
-
Method Summary
Modifier and Type Method Description protected IrisView
createView(String type, String title, String viewId, Map<String,String> params)
Attempts to create a view for the specified type and parameters.protected com.illumon.infonode.docking.util.StringViewMap
createViewMap()
EmbeddedDbConsole
getConsoleForParams(Map<String,String> params, String title)
protected void
init()
protected void
maybeUpdateParams(Map<String,String> params, Map<String,String> viewIdMap)
IrisView
updateView(String type, String title, String id, Map<String,String> params)
Methods inherited from class com.illumon.iris.gui.workspace.ViewManager
addView, addView, addView, exportShare, getAndClearViewProblems, getWorkspaceInfo, importShare, isViewLocked, setViewLock, setWorkspaceInfo, updateView
-
Method Details
-
updateView
- Overrides:
updateView
in classViewManager
-
init
protected void init()- Overrides:
init
in classViewManager
-
createViewMap
protected com.illumon.infonode.docking.util.StringViewMap createViewMap()- Specified by:
createViewMap
in classViewManager
-
createView
protected IrisView createView(String type, String title, String viewId, Map<String,String> params)Attempts to create a view for the specified type and parameters. If the view creation fails for any reason this method will put up a placeholder containing error details that will also preserve any workspace state information, so if a user saves the workspace with a broken component, its data will not be lost.- Specified by:
createView
in classViewManager
- Parameters:
type
- The type of view being createdtitle
- The title of the viewviewId
- The view ID to use for checking for reuseparams
- The view-type specific parameters to create the view- Returns:
- An IrisView containing the recreated view, or an error panel containing failure details
-
maybeUpdateParams
- Overrides:
maybeUpdateParams
in classViewManager
-
getConsoleForParams
-