Class AbstractWorkspaceManagerPanel<T extends AbstractWorkspacePanel>

    • Field Detail

      • m_SplitPane

        protected BaseSplitPane m_SplitPane
        the split pane for the components.
      • m_PanelWorkspace

        protected BasePanel m_PanelWorkspace
        the actual panel for displaying the other panels.
      • m_PanelHistory

        protected BasePanel m_PanelHistory
        the history panel.
      • m_PanelButtons

        protected BasePanel m_PanelButtons
        the panel for the buttons.
      • m_ButtonAdd

        protected BaseFlatButton m_ButtonAdd
        the button for adding a panel.
      • m_ButtonRemove

        protected BaseFlatButton m_ButtonRemove
        the button for removing a panel.
    • Constructor Detail

      • AbstractWorkspaceManagerPanel

        public AbstractWorkspaceManagerPanel()
    • Method Detail

      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • getDefaultWorkspaceName

        protected abstract String getDefaultWorkspaceName()
        The default name for a workspace.
        Returns:
        the default
      • newWorkspace

        protected abstract T newWorkspace​(boolean init)
        Returns a new workspace instance.
        Parameters:
        init - whether to initialize the workspace
        Returns:
        the workspace
      • clear

        public void clear()
        Removes all panels.
      • count

        public int count()
        Returns the number of experimenter panels.
        Returns:
        the number of panels
      • newWorkspaceList

        protected abstract AbstractWorkspaceListPanel<T> newWorkspaceList()
        Instantiates a new panel for workspaces.
        Returns:
        the list panel
      • addPanel

        public void addPanel​(T panel,
                             String name)
        Adds the given experimenter panel.
        Parameters:
        panel - the panel to add
        name - the name for the panel
      • removePanel

        public boolean removePanel​(String name)
        Removes the panel with the given name.
        Parameters:
        name - the name of the panel to remove
        Returns:
        true if successfully removed
      • removePanel

        public boolean removePanel​(int index)
        Removes the panel at the specified index.
        Parameters:
        index - the index of the panel to remove
        Returns:
        true if successfully removed
      • getPanel

        public T getPanel​(int index)
        Returns the panel with at the specified index.
        Parameters:
        index - the index of the panel to retrieved
        Returns:
        the panel, null if not found
      • getPanel

        public T getPanel​(String name)
        Returns the panel with the specified name.
        Parameters:
        name - the name of the panel to retrieve
        Returns:
        the panel, null if not found
      • getCurrentPanel

        public T getCurrentPanel()
        Returns the currently selected panel, if any.
        Returns:
        the panel, null if none available
      • getEntryPanel

        public AbstractWorkspaceListPanel getEntryPanel()
        Returns the panel with the workspace entries.
        Returns:
        the panel entries
      • updateButtons

        protected void updateButtons()
        Updates the buttons.
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler