public class SwingMonochromeMenuBuilder extends SwingMenuBuilder
Constructor and Description |
---|
SwingMonochromeMenuBuilder(AppData appData) |
Modifier and Type | Method and Description |
---|---|
void |
buildMenu(WatchmakerMenuBar menuBar)
Add items to a menu bar.
|
WatchmakerMenu |
buildMutationsMenu()
Build mutations menu
|
void |
cleanMenu(WatchmakerMenuBar menuBar)
Remove items created by buildMenu
|
void |
updateMenu(WatchmakerMenuBar menuBar)
Update the menu bar in response to change in application state.
|
getAppData, setAppData
public SwingMonochromeMenuBuilder(AppData appData)
public void buildMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to add menus to.public WatchmakerMenu buildMutationsMenu()
public void cleanMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to clean.public void updateMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to update.