|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.looks.demo.MenuBarView
public class MenuBarView
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.
Constructor Summary | |
---|---|
MenuBarView()
|
Method Summary | |
---|---|
(package private) 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. the OS X application menu. |
protected boolean |
isQuitInOSMenu()
Checks and answers whether the quit action has been moved to an operating system specific menu, e.g. the OS X application menu. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuBarView()
Method Detail |
---|
JMenuBar buildMenuBar(Settings settings, ActionListener helpActionListener, ActionListener aboutActionListener)
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 JCheckBoxMenuItem createCheckBoxMenuItem(String text, boolean selected)
protected boolean isQuitInOSMenu()
protected boolean isAboutInOSMenu()
protected String getToggleLabel(boolean enabled, boolean selected)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |