Interface MenuCallback


public interface MenuCallback

This interface represents a function prototype for acquiring the Menu instance.

A custom callback function can be given to for example Shell.setMenuHandler(MenuCallback).

If the callback is not specified the default Script.getMenu(Shell, Component) is called.

See Also:
Shell.setMenuHandler(MenuCallback), Callbacks

Method Summary
 Menu getMenu(Shell shell, Component focused)
          Called when user has requested menu to be opened.
 

Method Detail

getMenu

Menu getMenu(Shell shell,
             Component focused)
Called when user has requested menu to be opened.

Parameters:
shell - Source shell
focused - Source component
Returns:
Menu object, or null if no menu is available.
See Also:
OPEN_MENU, Menu, MenuItem