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 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

      public IrisView addView(String type, String title)
    • addView

      public IrisView addView(String type, String title, Map<String,String> params)
    • addView

      public IrisView addView(String type, String title, boolean addToRoot, Map<String,String> params)
    • updateView

      public IrisView updateView(String type, String title, String viewId, Map<String,String> params)
    • updateView

      public IrisView updateView(String type, String title, String viewId, boolean addToRoot, Map<String,String> params)
    • setViewLock

      public void setViewLock(boolean viewLock)
    • isViewLocked

      public boolean isViewLocked()
    • createViewMap

      protected abstract com.illumon.infonode.docking.util.StringViewMap createViewMap()
    • createView

      protected abstract IrisView createView(String type, String title, String viewId, Map<String,String> params)
    • maybeUpdateParams

      protected void maybeUpdateParams(Map<String,String> params, Map<String,String> viewIdMap)
    • 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 interface Workspace
      Parameters:
      workspaceInfo - An Element 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 interface Workspace
      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 export
      windowToExport - the top level window of the export
      Returns:
      An Element containing the data to persist.
    • importShare

      public Map<String,String> importShare(org.jdom2.Element workspaceInfo)
      Imports views from a shared workspace.
      Parameters:
      workspaceInfo - the element containing the workspace info
    • getAndClearViewProblems

      @NotNull public List<String> 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.