|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.metamorphosis.MenuBarView
final class MenuBarView
Builds a menu bar that demonstrates a bunch of menus with a mix different menu items and menu item states.
Field Summary | |
---|---|
private JMenuBar |
menuBar
Holds the lazily created menu bar. |
Constructor Summary | |
---|---|
MenuBarView()
|
Method Summary | |
---|---|
(package private) void |
addCheckMenuItems(JMenu menu)
Builds and answers a menu with different JCheckBoxMenuItems. |
(package private) void |
addRadioMenuItems(JMenu menu)
Builds and answers a menu with different JRadioButtonMenuItems. |
(package private) JMenu |
buildFileMenu()
Builds and answers the file menu. |
private JMenuBar |
buildMenuBar()
Builds and returns the menu bar. |
private JMenu |
buildStubMenu(String name,
char mnemonic)
Creates and answer a stub menu for the given name. |
private JCheckBoxMenuItem |
createCheckItem(boolean enabled,
boolean selected)
Creates and answers a check box with the given enablement and selection state. |
private JRadioButtonMenuItem |
createRadioItem(boolean enabled,
boolean selected)
Creates and answers a radio button with the given enablement and selection state. |
(package private) JMenuBar |
getMenuBar()
Lazily builds and returns this view's menu bar. |
private String |
getToggleLabel(boolean enabled,
boolean selected)
Return a string label for the given enablement and selection state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JMenuBar menuBar
Constructor Detail |
---|
MenuBarView()
Method Detail |
---|
JMenuBar getMenuBar()
private JMenuBar buildMenuBar()
JMenu buildFileMenu()
private JMenu buildStubMenu(String name, char mnemonic)
void addRadioMenuItems(JMenu menu)
void addCheckMenuItems(JMenu menu)
private JRadioButtonMenuItem createRadioItem(boolean enabled, boolean selected)
private JCheckBoxMenuItem createCheckItem(boolean enabled, boolean selected)
private String getToggleLabel(boolean enabled, boolean selected)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |