Class PerspectiveManager

  • All Implemented Interfaces:
    LayoutManager

    public class PerspectiveManager
    extends java.lang.Object
    implements LayoutManager
    Author:
    Mateusz Szczap
    • Field Detail

      • EMPTY_PERSPECTIVE

        public static final java.lang.String EMPTY_PERSPECTIVE
        See Also:
        Constant Field Values
      • DEFAULT_PERSISTENCE_KEY_VALUE

        public static final java.lang.String DEFAULT_PERSISTENCE_KEY_VALUE
        See Also:
        Constant Field Values
    • Method Detail

      • setPersistenceHandler

        public static void setPersistenceHandler​(PersistenceHandler handler)
      • add

        public void add​(Perspective perspective,
                        boolean isDefault)
      • remove

        public void remove​(java.lang.String perspectiveId)
      • getPerspective

        public Perspective getPerspective​(java.lang.String perspectiveId)
      • createPerspective

        public Perspective createPerspective​(java.lang.String perspectiveId)
      • getPerspectives

        public Perspective[] getPerspectives()
      • setDefaultPerspective

        public void setDefaultPerspective​(java.lang.String perspectiveId)
      • setCurrentPerspective

        public void setCurrentPerspective​(java.lang.String perspectiveId)
      • getCurrentPerspectiveName

        public java.lang.String getCurrentPerspectiveName()
      • setCurrentPerspective

        public void setCurrentPerspective​(java.lang.String perspectiveId,
                                          boolean asDefault)
      • getDefaultPerspective

        public Perspective getDefaultPerspective()
      • getCurrentPerspective

        public Perspective getCurrentPerspective()
      • getDockingState

        public DockingState getDockingState​(java.lang.String dockable,
                                            boolean load)
      • reset

        public void reset()
      • reset

        public void reset​(java.awt.Component window)
      • reload

        public void reload​(java.awt.Window w)
        PerspectiveManager#getMainApplicationWindow returns the first window where #getOwner == null. This is especially a problem for apps with multiple frames. To display a perspective for a specified window it is highly recommended to use #reload(Window w) instead of #reload() which is the same as DockingManager#restoreLayout(). You can use #restoreLayout when the application does not need multiple independent docking windows.
      • reload

        public void reload​(java.awt.Window w,
                           boolean reset)
      • reload

        public void reload()
      • loadPerspective

        public void loadPerspective()
      • loadPerspectiveAsDefault

        public void loadPerspectiveAsDefault​(java.lang.String perspectiveId)
      • loadPerspectiveAsDefault

        public void loadPerspectiveAsDefault​(java.lang.String perspectiveId,
                                             boolean reset)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId,
                                    boolean reset)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId,
                                    java.awt.Component window)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId,
                                    java.awt.Component window,
                                    boolean reset)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId,
                                    DockingPort rootPort)
      • loadPerspective

        public void loadPerspective​(java.lang.String perspectiveId,
                                    DockingPort rootPort,
                                    boolean reset)
      • isRestoreFloatingOnLoad

        public static boolean isRestoreFloatingOnLoad()
      • setRestoreFloatingOnLoad

        public static void setRestoreFloatingOnLoad​(boolean restoreFloatingOnLoad)
      • getMainApplicationWindow

        public static RootWindow getMainApplicationWindow()
      • getMainDockingPort

        public static DockingPort getMainDockingPort()