Interface SoftKeyCallback


public interface SoftKeyCallback

This interface represents a function prototype for soft key bindings. Soft keys are multi-purpose keys located usually near the screen of the device.

If a soft key callback function is not specified the default Script.getSoftKey(Shell, Component, int) is called.

See Also:
Shell.setSoftKeyHandler(SoftKeyCallback), Callbacks

Method Summary
 MenuItem getSoftKey(Shell shell, Component focused, int key)
          Called when system wants to get a binding for soft key.
 

Method Detail

getSoftKey

MenuItem getSoftKey(Shell shell,
                    Component focused,
                    int key)
Called when system wants to get a binding for soft key.

Parameters:
shell - Source shell
focused - Source component
key - Either SOFTKEY_OK, SOFTKEY_MIDDLE or SOFTKEY_BACK
See Also:
MenuItem