-
Notifications
You must be signed in to change notification settings - Fork 26
MenuManager
Alessandro Febretti edited this page Feb 8, 2014
·
4 revisions
Offers a simple to use menu system to control applications.
Method(s) | Description |
---|---|
static MenuManager createAndInitialize()
|
Creates a new instance of the MenManager and initializes it |
Menu createMenu(name) |
Creates a new menu and returns it. See Menu. |
setMainMenu(Menu menu) , Menu getMainMenu()
|
Gets or Sets the main menu (it will be opened when a system-specific key or button will be pressed). See Menu |
# Create an empty menu and set it as the main menu
mm = MenuManager.createAndInitialize()
menu = mm.createMenu('menu')
mm.setMainMenu(menu)