Class AbstractTabbedUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public abstract class AbstractTabbedUI extends JComponent
A tabbed GUI. All views on the data are contained in tabs.
Author:
Thomas Morgner
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getTabbedPane

      Returns the tabbed pane.
      Returns:
      The tabbed pane.
    • isGlobalMenu

      public boolean isGlobalMenu()
      Defines whether to use a global unified menu bar, which contains all menus from all tab-panes or whether to use local menubars.

      From an usability point of view, global menubars should be preferred, as this way users always see which menus are possibly available and do not wonder where the menus are disappearing.

      Returns:
      true, if global menus should be used, false otherwise.
    • setGlobalMenu

      public void setGlobalMenu(boolean globalMenu)
      Sets the global menu flag.
      Parameters:
      globalMenu - the flag.
    • getJMenuBar

      Returns the menu bar.
      Returns:
      The menu bar.
    • setJMenuBar

      protected void setJMenuBar(JMenuBar menuBar)
      Sets the menu bar.
      Parameters:
      menuBar - the menu bar.
    • createCloseAction

      Creates a close action.
      Returns:
      A close action.
    • getCloseAction

      Returns the close action.
      Returns:
      The close action.
    • getPrefixMenus

      protected abstract JMenu[] getPrefixMenus()
      Returns the prefix menus.
      Returns:
      The prefix menus.
    • getPostfixMenus

      protected abstract JMenu[] getPostfixMenus()
      The postfix menus.
      Returns:
      The postfix menus.
    • addRootEditor

      public void addRootEditor(RootEditor rootPanel)
      Adds a root editor.
      Parameters:
      rootPanel - the root panel.
    • getRootEditorCount

      public int getRootEditorCount()
      Returns the number of root editors.
      Returns:
      The count.
    • getRootEditor

      public RootEditor getRootEditor(int pos)
      Returns the specified editor.
      Parameters:
      pos - the position index.
      Returns:
      The editor at the given position.
    • getSelectedEditor

      public int getSelectedEditor()
      Returns the selected editor.
      Returns:
      The selected editor.
    • setSelectedEditor

      public void setSelectedEditor(int selectedEditor)
      Sets the selected editor.
      Parameters:
      selectedEditor - the selected editor.
    • attempExit

      protected abstract void attempExit()
      Attempts to exit.
    • updateRootEditorEnabled

      protected void updateRootEditorEnabled(RootEditor editor)
      Update handler for the enable state of the root editor.
      Parameters:
      editor - the editor.