public class SnailMenuBuilder extends SwingMenuBuilder
Constructor and Description |
---|
SnailMenuBuilder(AppData swingAppData) |
Modifier and Type | Method and Description |
---|---|
WatchmakerMenu |
buildAnimalMenu()
Animal (Customise, Snail, Turritella, Bivalve, Ammonite, Nautilus,
Brachiopod, Cone, Whelk, Scallop, Eloise, Gallagher's, Rapa, Lightning,
Sundial, Fig, Tun, Razor Shell, Japanese Wonder)
|
void |
buildMenu(WatchmakerMenuBar menuBar)
Add items to a menu bar.
|
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 SnailMenuBuilder(AppData swingAppData)
public void buildMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to add menus to.public WatchmakerMenu buildAnimalMenu()
public void cleanMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to clean.public void updateMenu(WatchmakerMenuBar menuBar)
MenuBuilder
menuBar
- the menu bar to update.