Class AbstractWorkspacePanel

    • Field Detail

      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_TitleGenerator

        protected TitleGenerator m_TitleGenerator
        for generating the title.
    • Constructor Detail

      • AbstractWorkspacePanel

        public AbstractWorkspacePanel()
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • finishInit

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

        public void close()
        Closes the dialog.
      • getMenuBar

        public abstract JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        Returns:
        the menu bar
      • update

        public void update()
        Updates title and menu items.
      • getTitleGenerator

        public TitleGenerator getTitleGenerator()
        Returns the title generator in use.
        Returns:
        the generator
      • updateTitle

        protected abstract void updateTitle()
        Updates the title of the dialog.
      • updateMenu

        protected abstract void updateMenu()
        updates the enabled state of the menu items.
      • getDefaultTitle

        protected abstract String getDefaultTitle()
        Returns the default title.
        Returns:
        the default title
      • setTitle

        public void setTitle​(String value)
        Sets the base title to use for the title generator.
        Parameters:
        value - the title to use
        See Also:
        m_TitleGenerator
      • getTitle

        public String getTitle()
        Returns the base title in use by the title generator.
        Returns:
        the title in use
        See Also:
        m_TitleGenerator
      • logMessage

        public void logMessage​(Throwable t)
        Logs the exception with no dialog.
        Parameters:
        t - the exception
      • logMessage

        public abstract void logMessage​(String msg)
        Logs the message.
        Parameters:
        msg - the log message
      • logError

        public void logError​(String msg,
                             Throwable t,
                             String title)
        Logs the exception and also displays an error dialog.
        Parameters:
        msg - the log message
        t - the exception
        title - the title for the dialog
      • logError

        public void logError​(Throwable t,
                             String title)
        Logs the exception and also displays an error dialog.
        Parameters:
        t - the exception
        title - the title for the dialog
      • logError

        public abstract void logError​(String msg,
                                      String title)
        Logs the error message and also displays an error dialog.
        Parameters:
        msg - the error message
        title - the title for the dialog
      • cleanUp

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