com.jmex.bui.event
Class ActionEvent
java.lang.Object
java.util.EventObject
com.jmex.bui.event.BEvent
com.jmex.bui.event.InputEvent
com.jmex.bui.event.ActionEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ActionEvent
- extends InputEvent
Dispatched by a component when some sort of component-specific action has occurred.
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
_action
|
| Fields inherited from class com.jmex.bui.event.BEvent |
_when |
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ActionEvent(java.lang.Object source,
long when,
int modifiers,
java.lang.String action)
|
|
Method Summary |
void |
dispatch(ComponentListener listener)
Instructs this event to notify the supplied listener if they implement an interface appropriate to this event. |
java.lang.String |
getAction()
Returns the action 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). |
protected void |
toString(java.lang.StringBuffer buf)
|
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_action
protected java.lang.String _action
ActionEvent
public ActionEvent(java.lang.Object source,
long when,
int modifiers,
java.lang.String action)
getAction
public java.lang.String getAction()
- Returns the action associated with this event.
dispatch
public void dispatch(ComponentListener listener)
- Description copied from class:
BEvent
- Instructs this event to notify the supplied listener if they implement an interface appropriate to this event.
- Overrides:
dispatch in class BEvent
propagateUpHierarchy
public boolean propagateUpHierarchy()
- Description copied from class:
BEvent
- 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 BEvent
toString
protected void toString(java.lang.StringBuffer buf)
- Overrides:
toString in class InputEvent
Copyright © 2011 Michael Bayne.
All Rights Reserved.