public class Command extends EventGenerator
This class defines constants for a set of basic commands. The commands defined in this class are typical application-level effects of input events. The advantage of using commands rather than specific input events in an application is that the application can be more portable: it is not tied to specific input devices.
| Modifier and Type | Field and Description | 
|---|---|
| static int | ANTICLOCKWISEConstant for "anti-clockwise" command. | 
| static int | BACKConstant for "back" command. | 
| static int | CANCELConstant for "cancel" command. | 
| static int | CLOCKWISEConstant for "clockwise" command. | 
| static int | COPYConstant for "copy" command. | 
| static int | CUTConstant for "cut" command. | 
| static int | DISPLAYConstant for "display" command. | 
| static int | DOWNConstant for "down" command. | 
| static int | ESCConstant for "escape" command. | 
| static int | EVENT_TYPEThe COMMAND event type returned by  getEventType(). | 
| static int | EXITConstant for "exit" command. | 
| static int | HELPConstant for "help" command. | 
| static int | LEFTConstant for "left" command. | 
| static int | MENUConstant for "menu" command. | 
| static int | NEXTConstant for "next" command. | 
| static int | PASTEConstant for "paste" command. | 
| static int | PAUSEConstant for "pause" command. | 
| static int | PREVIOUSConstant for "previous" command. | 
| static int | RESUMEConstant for "resume" command. | 
| static int | RIGHTConstant for "right" command. | 
| static int | SELECTConstant for "select" command. | 
| static int | STARTConstant for "start" command. | 
| static int | STOPConstant for "stop" command. | 
| static int | UPConstant for "up" command. | 
| Constructor and Description | 
|---|
| Command()Creates a new command event generator. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | buildEvent(int command)Builds a MicroUI event for the given command. | 
| int | getEventType()Gets the event generator's type. | 
| void | send(int command)Sends the given command to the event generator's listener | 
addToSystemPool, get, get, get, getEventHandler, getId, removeFromSystemPool, sendEvent, setEventHandlerpublic static final int ANTICLOCKWISE
public static final int BACK
public static final int CANCEL
public static final int CLOCKWISE
public static final int COPY
public static final int CUT
public static final int DISPLAY
public static final int DOWN
public static final int ESC
public static final int EVENT_TYPE
getEventType().public static final int EXIT
public static final int HELP
public static final int LEFT
public static final int MENU
public static final int NEXT
public static final int PASTE
public static final int PAUSE
public static final int PREVIOUS
public static final int RESUME
public static final int RIGHT
public static final int SELECT
public static final int START
public static final int STOP
public static final int UP
public int buildEvent(int command)
command - the command to be sentpublic int getEventType()
EVENT_TYPE.getEventType in class EventGeneratorpublic void send(int command)
command - the command to be sent