org.jfree.ui.tabbedui
public abstract class AbstractTabbedUI extends JComponent
Nested Class Summary | |
---|---|
protected class | AbstractTabbedUI.ExitAction
An exit action. |
Field Summary | |
---|---|
static String | GLOBAL_MENU_PROPERTY The global menu property. |
static String | JMENUBAR_PROPERTY The menu bar property key. |
Constructor Summary | |
---|---|
AbstractTabbedUI()
Default constructor. |
Method Summary | |
---|---|
void | addRootEditor(RootEditor rootPanel)
Adds a root editor.
|
protected abstract void | attempExit()
Attempts to exit. |
protected Action | createCloseAction()
Creates a close action.
|
Action | getCloseAction()
Returns the close action.
|
JMenuBar | getJMenuBar()
Returns the menu bar.
|
protected abstract JMenu[] | getPostfixMenus()
The postfix menus.
|
protected abstract JMenu[] | getPrefixMenus()
Returns the prefix menus.
|
RootEditor | getRootEditor(int pos)
Returns the specified editor.
|
int | getRootEditorCount()
Returns the number of root editors.
|
int | getSelectedEditor()
Returns the selected editor.
|
protected JTabbedPane | getTabbedPane()
Returns the tabbed pane.
|
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.
|
void | setGlobalMenu(boolean globalMenu)
Sets the global menu flag.
|
protected void | setJMenuBar(JMenuBar menuBar)
Sets the menu bar.
|
void | setSelectedEditor(int selectedEditor)
Sets the selected editor.
|
protected void | updateRootEditorEnabled(RootEditor editor)
Update handler for the enable state of the root editor.
|
Parameters: rootPanel the root panel.
Returns: A close action.
Returns: The close action.
Returns: The menu bar.
Returns: The postfix menus.
Returns: The prefix menus.
Parameters: pos the position index.
Returns: The editor at the given position.
Returns: The count.
Returns: The selected editor.
Returns: The tabbed pane.
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.
Parameters: globalMenu the flag.
Parameters: menuBar the menu bar.
Parameters: selectedEditor the selected editor.
Parameters: editor the editor.