|
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.ItemEvent
com.ehsbe.commons.action.ManagedItemEvent
public class ManagedItemEvent
Helper to let listeners better handle cascaded events.
Field Summary |
---|
Fields inherited from class java.awt.event.ItemEvent |
---|
DESELECTED, ITEM_FIRST, ITEM_LAST, ITEM_STATE_CHANGED, SELECTED |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ManagedItemEvent(ItemEvent e,
Action action)
Create a new managed item event. |
Method Summary | |
---|---|
boolean |
dispatchable()
Hint for dispatchers, whether they should further dispatch this event. |
Action |
getAction()
Get the action, which triggered this event. |
ItemEvent |
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.ItemEvent |
---|
getItem, getItemSelectable, getStateChange, 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 ManagedItemEvent(ItemEvent e, Action action)
e
- the original event used to create this one. All properties of
the original ItemEvent gets copied to this one incl. the ID.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 ManagedActionEventMethod Detail |
---|
public ItemEvent getOriginalEvent()
getOriginalEvent
in interface ManagedEvent
public void stopDispatching()
stopDispatching
in interface ManagedEvent
public boolean dispatchable()
dispatchable
in interface ManagedEvent
true
, 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 |