DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class Command

java.lang.Object
  |
  +--javax.microedition.lcdui.Command

public class Command
extends Object

The command class is used to setup soft buttons


Field Summary
static int BACK
          Return to the previous screen
static int CANCEL
          Cancel the current screen
static int EXIT
          Exit the application
static int HELP
          Ask for help
static int ITEM
          Item specific command
static int OK
           
static int SCREEN
          A screen specific command
static int STOP
          Stop the current action
 
Constructor Summary
Command(java.lang.String label, int type, int priority)
          Create a new command
 
Method Summary
 int getCommandType()
          Get the type
 java.lang.String getLabel()
          Get the label
 int getPriority()
          Get the priority
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACK

public static final int BACK
Return to the previous screen

See Also:
Constant Field Values

CANCEL

public static final int CANCEL
Cancel the current screen

See Also:
Constant Field Values

EXIT

public static final int EXIT
Exit the application

See Also:
Constant Field Values

HELP

public static final int HELP
Ask for help

See Also:
Constant Field Values

ITEM

public static final int ITEM
Item specific command

See Also:
Constant Field Values

OK

public static final int OK
See Also:
Constant Field Values

SCREEN

public static final int SCREEN
A screen specific command

See Also:
Constant Field Values

STOP

public static final int STOP
Stop the current action

See Also:
Constant Field Values
Constructor Detail

Command

public Command(java.lang.String label,
               int type,
               int priority)
Create a new command

Parameters:
label - The label
type - The type
priority -
Method Detail

getCommandType

public int getCommandType()
Get the type

Returns:
the type

getLabel

public java.lang.String getLabel()
Get the label

Returns:
the label

getPriority

public int getPriority()
Get the priority

Returns:
priority

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification