Interface ActionCallback


public interface ActionCallback

This interface represents a function prototype for a user interface action.

If action callback is not specified the default Script.actionPerformed(Shell, Component, int) is called.

See Also:
Callback, Shell.setActionHandler(ActionCallback)

Method Summary
 void actionPerformed(Shell shell, Component source, int action)
          Called when specified action has occurred.
 

Method Detail

actionPerformed

void actionPerformed(Shell shell,
                     Component source,
                     int action)
Called when specified action has occurred. Action is one of

Parameters:
shell - Source shell
source - Source component
action - Action code
See Also:
Component.setAction(int), Component.getAction(), Menu, MenuItem, OPEN_MENU, FOCUS_CHANGED, ITEM_CHANGED, OPEN_LINK, SHELL_OPENED, SHELL_CLOSED, VIEWPORT_CHANGED, FOCUSED, BLURRED