org.jfree.ui.tabbedui
Class AbstractTabbedUI
JComponent
org.jfree.ui.tabbedui.AbstractTabbedUI
A tabbed GUI. All views on the data are contained in tabs.
JMENUBAR_PROPERTY
public static final String JMENUBAR_PROPERTY
The menu bar property key.
attempExit
protected abstract void attempExit()
Attempts to exit.
getCloseAction
public Action getCloseAction()
Returns the close action.
getJMenuBar
public JMenuBar getJMenuBar()
Returns the menu bar.
getPostfixMenus
protected abstract JMenu[] getPostfixMenus()
The postfix menus.
getPrefixMenus
protected abstract JMenu[] getPrefixMenus()
Returns the prefix menus.
getRootEditor
public RootEditor getRootEditor(int pos)
Returns the specified editor.
pos
- the position index.
- The editor at the given position.
getTabbedPane
protected JTabbedPane getTabbedPane()
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.
- true, if global menus should be used, false otherwise.
setGlobalMenu
public void setGlobalMenu(boolean globalMenu)
Sets the global menu flag.
setJMenuBar
protected void setJMenuBar(JMenuBar menuBar)
Sets the menu bar.
setSelectedEditor
public void setSelectedEditor(int selectedEditor)
Sets the selected editor.
selectedEditor
- the selected editor.