PenProfile 2.x

com.livescribe.ext.ui
Interface Menu.MenuAction

Enclosing class:
Menu

public static interface Menu.MenuAction

This interface provides a way for menu selection to trigger an action. The action is executed when a menu item is selected by the NavPlus forward arrow. Note that the action will be executed whether there is a submenu or not, and before any new menu is shown.

This provides an alternative to Menu.MenuListener.itemSelected(Menu, int) by allowing an action to be tied to a specific menu item as opposed to the whole menu.

See Also:
Menu.MenuListener.itemSelected(Menu, int)

Method Summary
 void execute(Menu menu, int index)
          The specified menu and menu selection index was just selected.
 

Method Detail

execute

void execute(Menu menu,
             int index)
The specified menu and menu selection index was just selected.

Parameters:
menu - the menu
index - the menu's selection index

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.