| java.lang.Object com.jgoodies.looks.demo.MenuBarView
MenuBarView | public class MenuBarView (Code) | | Builds the menu bar and pull-down menus in the Simple Looks Demo.
Demonstrates and tests different multi-platform issues.
This class provides a couple of factory methods that create
menu items, check box menu items, and radio button menu items.
The full JGoodies Looks Demo overrides these methods to vend
components from the JGoodies UI framework that better handle
different platforms.
author: Karsten Lentzsch version: $Revision: 1.5 $ |
Method Summary | |
JMenuBar | buildMenuBar(Settings settings, ActionListener helpActionListener, ActionListener aboutActionListener) Builds, configures, and returns the menubar. | protected JCheckBoxMenuItem | createCheckBoxMenuItem(String text, boolean selected) | protected JMenu | createMenu(String text, char mnemonic) | protected JMenuItem | createMenuItem(String text) | protected JMenuItem | createMenuItem(String text, char mnemonic) | protected JMenuItem | createMenuItem(String text, char mnemonic, KeyStroke key) | protected JMenuItem | createMenuItem(String text, Icon icon) | protected JMenuItem | createMenuItem(String text, Icon icon, char mnemonic) | protected JMenuItem | createMenuItem(String text, Icon icon, char mnemonic, KeyStroke key) | protected JRadioButtonMenuItem | createRadioButtonMenuItem(String text, boolean selected) | protected String | getToggleLabel(boolean enabled, boolean selected) Returns an appropriate label for the given enablement and selection state. | protected boolean | isAboutInOSMenu() Checks and answers whether the about action has been moved to an
operating system specific menu, e.g. | protected boolean | isQuitInOSMenu() Checks and answers whether the quit action has been moved to an
operating system specific menu, e.g. |
buildMenuBar | JMenuBar buildMenuBar(Settings settings, ActionListener helpActionListener, ActionListener aboutActionListener)(Code) | | Builds, configures, and returns the menubar. Requests HeaderStyle,
look-specific BorderStyles, and Plastic 3D hint from Launcher.
|
getToggleLabel | protected String getToggleLabel(boolean enabled, boolean selected)(Code) | | Returns an appropriate label for the given enablement and selection state.
|
isAboutInOSMenu | protected boolean isAboutInOSMenu()(Code) | | Checks and answers whether the about action has been moved to an
operating system specific menu, e.g. the OS X application menu.
true if the about action is in an OS-specific menu |
isQuitInOSMenu | protected boolean isQuitInOSMenu()(Code) | | Checks and answers whether the quit action has been moved to an
operating system specific menu, e.g. the OS X application menu.
true if the quit action is in an OS-specific menu |
|
|