Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. and Motorola, Inc. All rights reserved.

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 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 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 ItemCommandListener.commandAction(Command c, Item item)
          Called by the system to indicate that a command has been invoked on a particular item.
 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 Gauge.addCommand(Command cmd)
          Adds a context sensitive Command to the item.
 void Gauge.setDefaultCommand(Command cmd)
          Sets default Command for this Item.
 void Displayable.addCommand(Command cmd)
          Adds a command to the Displayable.
 void Displayable.removeCommand(Command cmd)
          Removes a command from the Displayable.
 void CommandListener.commandAction(Command c, Displayable d)
          Indicates that a command event has occurred on Displayable d.
 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

Copyright © 2006 Sun Microsystems, Inc. and Motorola, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 118 specification.