Package org.flasby.swing
Class MenuBar.Menu
java.lang.Object
org.flasby.swing.MenuBar.Menu
- Enclosing class:
MenuBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(String id, MenuBar.Action<JMenuItem> action) addCheckbox
(String id, Subject<Boolean> subject) adds a checkbox item to the menubar.addCheckbox
(String id, MenuBar.Action<JCheckBoxMenuItem> action)
-
Constructor Details
-
Menu
-
-
Method Details
-
add
-
add
-
addCheckbox
-
addCheckbox
adds a checkbox item to the menubar. This is a live object, it publishes it's state changes over the Pagebus using the Subject. It also reacts to publications made to the Subject and changes it's state accordingly.- Parameters:
id
-subject
-- Returns:
-