mome
Interface XCommandListener
- All Known Implementing Classes:
- AntTestRunner, MIDletTestRunner, MoXMIDlet
public interface XCommandListener
Inter face XCommandListener is generalization of LCDUI CommandListener
interfaces. It consists of one method
public void xCommandAction(Object cmd, Object src)
that takes two parameters cmd
and src
:
cmd
is an object identifying the command not necessarily
Command
. This simplify construction of user commands. Implementation
of this method should test specific commands based on identity not equality
of course.
src
An object on which event has occurred. It can be
Displayable or Item or any other object, that we want to associate with
command. Can be used even as a complementary argument for a command.
- Version:
- 1.0
- Author:
- Sergio Morozov
xCommandAction
void xCommandAction(Object cmd,
Object src)
- Indicates that a command event has occurred.
- Parameters:
cmd
- An object identifying the command. This can be any object.
Implementation should test on specific command by identity not
equality.src
- An object on which this event has occurred. Either
Displayable
or Item
or can be used even as a
complementary argument for any user command.- Since:
- 1.0