| javax.microedition.lcdui.CommandListener
All known Subclasses: com.sun.midp.chameleon.layers.SoftButtonLayer, examples.SipPushTest, com.sun.midp.appmanager.AppSettings, com.sun.midp.appmanager.MIDletSelector, com.sun.midp.installer.GraphicalInstaller, com.sun.midp.installer.SuiteVerifier, com.sun.midp.installer.DiscoveryApp, com.sun.midp.appmanager.AppManagerUI, com.sun.midp.installer.AutoTesterBase, com.sun.midp.main.DummyNamsMIDlet, javax.microedition.lcdui.DateEditor, com.sun.midp.demos.manyballs.ManyBalls, com.sun.midp.main.NamsManager, com.sun.midp.main.HeadlessAlert, com.sun.satsa.acl.PINEntryDialog, com.sun.midp.appmanager.MIDletSwitcher, com.sun.satsa.pki.Dialog, com.sun.midp.lcdui.SystemAlert,
CommandListener | public interface CommandListener (Code) | | This interface is used by applications which need to receive
high-level events from the implementation. An application will
provide an implementation of a CommandListener
(typically by using
a nested class or an inner class) and will then provide the
instance to the addCommand method on a
Displayable in
order to receive high-level events on that screen.
The specification does not require the platform to create several
threads for the event delivery.
Thus, if a CommandListener method does not return
or the return is
not delayed, the system may be blocked. So, there is the following note to
application developers:
- the
CommandListener method should return
immediately.
See Also: javax.microedition.lcdui.Displayable.setCommandListener since: MIDP 1.0 |
Method Summary | |
void | commandAction(Command c, Displayable d) Indicates that a command event has occurred on
Displayable d .
Parameters: c - a Command object identifying thecommand. |
commandAction | void commandAction(Command c, Displayable d)(Code) | | Indicates that a command event has occurred on
Displayable d .
Parameters: c - a Command object identifying thecommand. This is either one of theapplications have been added to Displayable with Displayable.addCommand(Command)addCommand(Command) or is the implicit List.SELECT_COMMAND SELECT_COMMAND ofList . Parameters: d - the Displayable on which this eventhas occurred |
|
|