com.threerings.opengl.gui.event
Class ActionEvent
java.lang.Object
java.util.EventObject
com.threerings.opengl.gui.event.Event
com.threerings.opengl.gui.event.InputEvent
com.threerings.opengl.gui.event.ActionEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CommandEvent
public class ActionEvent
- extends InputEvent
Dispatched by a component when some sort of component-specific action
has occurred.
- See Also:
- Serialized Form
|
Method Summary |
void |
dispatch(ComponentListener listener)
Instructs this event to notify the supplied listener if they
implement an interface appropriate to this event. |
String |
getAction()
Returns the action associated with this event. |
Object |
getArgument()
Returns the argument associated with this event. |
boolean |
propagateUpHierarchy()
Returns true if this event should be propagated up the interface
hierarchy (input events) or false if it should be considered processed
once it is dispatched on its originating component (derivative events
like action or text events). |
ActionEvent
public ActionEvent(Object source,
long when,
int modifiers,
String action)
ActionEvent
public ActionEvent(Object source,
long when,
int modifiers,
String action,
Object argument)
getAction
public String getAction()
- Returns the action associated with this event.
getArgument
public Object getArgument()
- Returns the argument associated with this event.
dispatch
public void dispatch(ComponentListener listener)
- Description copied from class:
Event
- Instructs this event to notify the supplied listener if they
implement an interface appropriate to this event.
- Overrides:
dispatch in class Event
propagateUpHierarchy
public boolean propagateUpHierarchy()
- Description copied from class:
Event
- Returns true if this event should be propagated up the interface
hierarchy (input events) or false if it should be considered processed
once it is dispatched on its originating component (derivative events
like action or text events).
- Overrides:
propagateUpHierarchy in class Event
Copyright © 2011. All Rights Reserved.