Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MID Profile
PREV NEXT | FRAMES NO FRAMES

## 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| MID Profile
PREV NEXT | FRAMES NO FRAMES

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.