MIDP3.0

Uses of Class
javax.microedition.lcdui.Command

Packages that use Command
javax.microedition.lcdui The APIs in the LCDUI package provide a set of features for implementing user interfaces in MIDP applications. 
 

Uses of Command in javax.microedition.lcdui
 

Fields in javax.microedition.lcdui declared as Command
static Command FileSelector.CANCEL_COMMAND
          A Command delivered to a listener to indicate that user has dismissed the FileSelector without selecting any file.
static Command Alert.DISMISS_COMMAND
          A Command delivered to a listener to indicate that the Alert has been dismissed.
static Command FileSelector.OK_COMMAND
           The OK Command delivered to a command listener indicates that a file has been selected from FileSelector.
static Command List.SELECT_COMMAND
          The default select command for IMPLICIT Lists.
 

Methods in javax.microedition.lcdui that return Command
 Command Menu.getCommand(int index)
          Gets the command at index.
 Command Displayable.getCommand(int placement)
          Gets the Command at the given placement.
 Command[] Item.getCommands()
          Gets the set of commands that has been added to the Item.
 Command[] Displayable.getCommands()
          Gets the set of commands that has been added to the Displayable.
 

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 Item.addCommand(Command cmd)
          Adds a context sensitive Command to the item.
 void FileSelector.addCommand(Command cmd)
          FileSelector has two fixed, built-in Commands: OK_COMMAND and CANCEL_COMMAND.
 void Displayable.addCommand(Command cmd)
          Adds a command to the Displayable.
 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.
 int Menu.append(Command cmd)
          Appends a Command to the Menu.
 void CommandListener.commandAction(Command c, Displayable d)
          Indicates that a command event has occurred on Displayable d.
 void ItemCommandListener.commandAction(Command c, Item item)
          Called by the system to indicate that a command has been invoked on a particular item.
 void Menu.insert(int index, Command cmd)
          Inserts a Command into the Menu just prior to the element specified.
 void Menu.remove(Command cmd)
          Removes a command from the menu.
 void List.removeCommand(Command cmd)
          The same as Displayable.removeCommand but with the following additional semantics.
 void Item.removeCommand(Command cmd)
          Removes the context sensitive command from item.
 void FileSelector.removeCommand(Command cmd)
          FileSelector does not allow Commands to be removed.
 void Displayable.removeCommand(Command cmd)
          Removes a command from the Displayable.
 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.
 void Item.setCommand(Command cmd, int placement)
          Adds or sets a Command to the Item at the given placement.
 void FileSelector.setCommand(Command cmd, int placement)
          FileSelector has two fixed, built-in Commands: OK_COMMAND and CANCEL_COMMAND.
 void Displayable.setCommand(Command cmd, int placement)
          Adds or sets a Command to the Displayable at the given placement.
 void Spacer.setDefaultCommand(Command cmd)
          Spacers are restricted from having Commands, so this method will always throw IllegalStateException whenever it is called.
 void Item.setDefaultCommand(Command cmd)
          Sets default Command for this Item.
 void List.setSelectCommand(Command command)
          Sets the Command to be used for an IMPLICIT List selection action.
 


MIDP3.0

Send a comment or suggestionVersion 3.0 of Mobile Information Device Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-2009 Motorola Inc. Portions copyright 1993-2002 Sun Microsystems, Inc. and Motorola, Inc. All Rights Reserved.