tcMenuJavaAPI
Public Member Functions | List of all members
com.thecoderscorner.menu.mgr.MenuManagerListener Interface Reference

Public Member Functions

void menuItemHasChanged (Object sender, MenuItem item)
 
void managerWillStart ()
 
void managerWillStop ()
 

Detailed Description

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,

See also
MenuCallback
ScrollChoiceValueRetriever

Member Function Documentation

◆ managerWillStart()

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

◆ menuItemHasChanged()

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.

Parameters
senderthe sender of the event
itemthe item ID

The documentation for this interface was generated from the following file: