net.kbox
Interface Action


public interface Action

An Action is an adapter between the command or keyboard event and the corresponding business logic that should be executed to process this request. The controller (RequestProcessor) will select an appropriate Action for each request, create an instance, and call the execute method.

Author:
blackBox

Method Summary
 void execute(KCommand cmd, javax.microedition.lcdui.Item item, javax.microedition.lcdui.Displayable display, ActionForward forward, java.util.Hashtable parameters)
          Process the specified request, and create a corresponding GUI component (or forward to another action), with provision for handling exceptions thrown by the business logic.
 

Method Detail

execute

void execute(KCommand cmd,
             javax.microedition.lcdui.Item item,
             javax.microedition.lcdui.Displayable display,
             ActionForward forward,
             java.util.Hashtable parameters)
             throws java.lang.Exception
Process the specified request, and create a corresponding GUI component (or forward to another action), with provision for handling exceptions thrown by the business logic.

Parameters:
cmd - The KCommand from a command or keyboard event.
item - The item which trigger a event
display - The component which trigger a event or contain the item
forward - The destination component.
parameters - The parameters from configuration file.
Throws:
java.lang.Exception - If the application business logic throws an exception