ItemCommandListener.javaAPI DocJ2ME MIDP 2.01098Thu Nov 07 12:02:28 GMT 2002javax.microedition.lcdui


public interface ItemCommandListener
A listener type for receiving notification of commands that have been invoked on {@link Item} objects. An Item can have Commands associated with it. When such a command is invoked, the application is notified by having the {@link #commandAction commandAction()} method called on the ItemCommandListener that had been set on the Item with a call to {@link Item#setItemCommandListener setItemCommandListener()}.
MIDP 2.0

Fields Summary
Constructors Summary
Methods Summary
public voidcommandAction(Command c, Item item)
Called by the system to indicate that a command has been invoked on a particular item.

c the Command that was invoked
item the Item on which the command was invoked