|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used by applications which need to receive high-level events
concerning a Menu
. An instance of MenuListener
is specified
to a Menu
using the setListener
method in Menu
.
Method Summary | |
void |
actionCalled(MenuPage page,
PageItem item,
ItemAction action)
Called when an ItemAction is invoked. |
void |
itemSelected(MenuPage page,
PageItem oldItem,
PageItem newItem)
Called when a item is selected in a page. |
void |
newPage(MenuPage fromPage,
MenuPage toPage,
boolean back)
Called when a new page is shown. |
void |
transitionStarted(MenuPage fromPage,
MenuPage toPage,
long delay,
int frames,
boolean back)
Called when a transition is started on a new page selection. |
void |
transitionStopped(MenuPage fromPage,
MenuPage toPage)
Called when a transition is finished. |
Method Detail |
public void newPage(MenuPage fromPage, MenuPage toPage, boolean back)
fromPage
- Old page or null.toPage
- New page.back
- true if user steps back, false if active choice forwards.public void itemSelected(MenuPage page, PageItem oldItem, PageItem newItem)
page
- The page in which the item is selected.oldItem
- The item that is deselected or null if no such item.newItem
- The item that is selected.public void actionCalled(MenuPage page, PageItem item, ItemAction action)
page
- The page in which the action was invoked.item
- The item the action belongs to.action
- The action.public void transitionStarted(MenuPage fromPage, MenuPage toPage, long delay, int frames, boolean back)
fromPage
- Old page or null.toPage
- New page.delay
- Delay between each transition frame in milliseconds.frames
- Number of frames in this transition.back
- True if this is transition back to a previous page.public void transitionStopped(MenuPage fromPage, MenuPage toPage)
fromPage
- Old page or null.toPage
- New page.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |