|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.dtv.lwuit.events.ActionEvent
public class ActionEvent
Event object delivered when an ActionListener
callback is invoked.
Constructor Summary | |
---|---|
ActionEvent(Object source)
Creates a new instance of ActionEvent. |
|
ActionEvent(Object source,
int keyEvent)
Creates a new instance of ActionEvent. |
Method Summary | |
---|---|
void |
consume()
Consume the event indicating that it was handled thus preventing other action listeners from handling/receiving the event. |
Command |
getCommand()
If this event was sent as a result of a command action this method returns that command. |
int |
getKeyEvent()
If this event was triggered by a key press this method will return the appropriate keycode. |
Object |
getSource()
The element that triggered the action event, useful for decoupling event handling code. |
boolean |
isConsumed()
Returns true if the event was consumed thus indicating that it was handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionEvent(Object source)
source
- element for the action eventpublic ActionEvent(Object source, int keyEvent)
source
- element for the action eventkeyEvent
- the key that triggered the eventMethod Detail |
---|
public Object getSource()
public int getKeyEvent()
public Command getCommand()
public void consume()
public boolean isConsumed()
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |