| 
 | MIDP3.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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_COMMANDA Command delivered to a listener to indicate that user has dismissed the FileSelector without selecting any file. | 
| static Command | Alert.DISMISS_COMMANDA Commanddelivered to a listener to indicate that theAlerthas been dismissed. | 
| static Command | FileSelector.OK_COMMANDThe OK Command delivered to a command listener indicates that a file has been selected from FileSelector. | 
| static Command | List.SELECT_COMMANDThe default select command for IMPLICITLists. | 
| 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 Commandat the givenplacement. | 
|  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)Spacersare restricted from havingCommands,
 so this method will always throwIllegalStateExceptionwhenever it is called. | 
|  void | Item.addCommand(Command cmd)Adds a context sensitive Commandto the item. | 
|  void | FileSelector.addCommand(Command cmd)FileSelector has two fixed, built-in Commands: OK_COMMANDandCANCEL_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 anAlert,Alert.DISMISS_COMMANDis 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 Commandinto theMenujust 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.removeCommandbut 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 anAlert,Alert.DISMISS_COMMANDis implicitly added. | 
|  void | Item.setCommand(Command cmd,
           int placement)Adds or sets a Commandto theItemat 
 the givenplacement. | 
|  void | FileSelector.setCommand(Command cmd,
           int placement)FileSelector has two fixed, built-in Commands: OK_COMMANDandCANCEL_COMMAND. | 
|  void | Displayable.setCommand(Command cmd,
           int placement)Adds or sets a Commandto theDisplayableat 
 the givenplacement. | 
|  void | Spacer.setDefaultCommand(Command cmd)Spacers are restricted from having Commands, so this
 method will always throwIllegalStateExceptionwhenever it
 is called. | 
|  void | Item.setDefaultCommand(Command cmd)Sets default Commandfor thisItem. | 
|  void | List.setSelectCommand(Command command)Sets the Commandto be used for anIMPLICITListselection action. | 
| 
 | MIDP3.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||