MID Profile

Uses of Class
javax.microedition.lcdui.Command

Packages that use Command
javax.microedition.lcdui The UI API provides a set of features for implementation of user interfaces for MIDP applications. 
 

Uses of Command in javax.microedition.lcdui
 

Fields in javax.microedition.lcdui declared as Command
static Command List.SELECT_COMMAND
          The default select command for IMPLICIT Lists.
static Command Alert.DISMISS_COMMAND
          A Command delivered to a listener to indicate that the Alert has been dismissed.
 

Methods in javax.microedition.lcdui with parameters of type Command
 void CommandListener.commandAction(Command c, Displayable d)
          Indicates that a command event has occurred on Displayable d.
 void Displayable.addCommand(Command cmd)
          Adds a command to the Displayable.
 void Displayable.removeCommand(Command cmd)
          Removes a command from the Displayable.
 void Item.addCommand(Command cmd)
          Adds a context sensitive Command to the item.
 void Item.removeCommand(Command cmd)
          Removes the context sensitive command from item.
 void Item.setDefaultCommand(Command cmd)
          Sets default Command for this Item.
 void List.removeCommand(Command cmd)
          The same as Displayable.removeCommand but with the following additional semantics.
 void List.setSelectCommand(Command command)
          Sets the Command to be used for an IMPLICIT List selection action.
 void Spacer.addCommand(Command cmd)
          Spacers are restricted from having Commands, so this method will always throw IllegalStateException whenever it is called.
 void Spacer.setDefaultCommand(Command cmd)
          Spacers are restricted from having Commands, so this method will always throw IllegalStateException whenever it is called.
 void ItemCommandListener.commandAction(Command c, Item item)
          Called by the system to indicate that a command has been invoked on a particular item.
 void Gauge.addCommand(Command cmd)
          Adds a context sensitive Command to the item.
 void Gauge.setDefaultCommand(Command cmd)
          Sets default Command for this Item.
 void Alert.addCommand(Command cmd)
          Similar to Displayable.addCommand(javax.microedition.lcdui.Command), however when the application first adds a command to an Alert, Alert.DISMISS_COMMAND is implicitly removed.
 void Alert.removeCommand(Command cmd)
          Similar to Displayable.removeCommand(javax.microedition.lcdui.Command), however when the application removes the last command from an Alert, Alert.DISMISS_COMMAND is implicitly added.
 


MID Profile

Submit a comment or suggestion Version 2.0 of MID Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.