|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ActionEvent
com.ehsbe.commons.action.ManagedActionEvent
public class ManagedActionEvent
Helper to let listeners better handle cascaded events.
| Field Summary |
|---|
| Fields inherited from class java.awt.event.ActionEvent |
|---|
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ManagedActionEvent(ActionEvent e,
Action action)
Create a new managed action event. |
|
| Method Summary | |
|---|---|
boolean |
dispatchable()
Hint for dispatchers, whether they should further dispatch this event. |
Action |
getAction()
Get the action, which triggered this event. |
ActionEvent |
getOriginalEvent()
Get the original event, i.e. the event from which this one has been created. |
void |
stopDispatching()
Set a flag for dispatchers, to not continue dispatching this event. |
| Methods inherited from class java.awt.event.ActionEvent |
|---|
getActionCommand, getModifiers, getWhen, paramString |
| Methods inherited from class java.awt.AWTEvent |
|---|
consume, getID, isConsumed, setSource, toString |
| 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 |
| Constructor Detail |
|---|
public ManagedActionEvent(ActionEvent e,
Action action)
e - the original event used to create this one. All properties of
the original ActionEvent gets copied to this one incl. the ID,
but not properties from derived or super classes.action - the action, which triggered this event.
NullPointerException - if the given event is null
IllegalArgumentException - if the given action is null and the event is not
a ManagedActionEvent| Method Detail |
|---|
public ActionEvent getOriginalEvent()
getOriginalEvent in interface ManagedEventpublic void stopDispatching()
stopDispatching in interface ManagedEventpublic boolean dispatchable()
dispatchable in interface ManagedEventtrue, if the event should be dispatched.public Action getAction()
getAction in interface ManagedEvent
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||