Public Member Functions | |
void | menuItemHasChanged (Object sender, MenuItem item) |
void | managerWillStart () |
void | managerWillStop () |
MenuManager listeners get notification when any menu item has changed, this works by the menuItemHasChanged
method being called for each change. Further to this, you can also mark any method in your class with @MenuCallback(id=n)
where n is the menu ID of the item you are interested in, then this callback method will be called in addition to the global menu callback. If you use designer UI, it will create such a method for each callback function.
List selection notifications have a special form @MenuCallback(id=n, listResult=true)
that takes an extra parameter for the list response.
ScrollChoiceMenuItem value retrievers can also be added ScrollChoiceValueRetriever, these will be called whenever a value is needed for a scroll choice item,
void com.thecoderscorner.menu.mgr.MenuManagerListener.managerWillStart | ( | ) |
Indicates that the manager (and therefore the application) is about to start. You can do any tasks that are needed at start up here. For example loading state back from storage
void com.thecoderscorner.menu.mgr.MenuManagerListener.menuItemHasChanged | ( | Object | sender, |
MenuItem | item | ||
) |
Called whenever there is a change in any menu item, it will indicate if the change is local or remote.
sender | the sender of the event |
item | the item ID |