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

ItemCommandListener

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()}.
since
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.

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