Package de.intarsys.tools.event
Class Event
java.lang.Object
java.util.EventObject
de.intarsys.tools.event.Event
- All Implemented Interfaces:
IEvent,Serializable
- Direct Known Subclasses:
ActivatedEvent,AttributeChangedEvent,CancelEvent,CancelRequestedEvent,CreatedEvent,DeactivatedEvent,DestroyedEvent,OkEvent,OkRequestedEvent,PreferencesChangeEvent,RequestEvent,ResumedEvent,SelectionEvent,StartedEvent,StoppedEvent,StopRequestedEvent,SuspendedEvent
Abstract superclass for event implementations.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag if the event is already handled.static final EventTypestatic final Objectprotected booleanFlag if execution of the action that is announced by the event is interrupted by one of the listeners.Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()Indicate that this event does not need to be propagated any further as it is already processed by some listener.A type for this event.getName()A name for this event.booleangetRc()booleantrueif this event is already consumed by some listener.booleanisVetoed()trueif this event is already vetoed by some listener.voidsetRc(boolean value) voidsetVeto(boolean value) voidveto()Indicate that the behavior associated with this event should not be performed by the source.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ID_ALL
-
ID
-
consumed
protected boolean consumedFlag if the event is already handled. -
veto
protected boolean vetoFlag if execution of the action that is announced by the event is interrupted by one of the listeners.
-
-
Constructor Details
-
Event
Create a new event object.- Parameters:
source- The object that created the event.
-
-
Method Details
-
consume
public void consume()Description copied from interface:IEventIndicate that this event does not need to be propagated any further as it is already processed by some listener. -
getEventType
Description copied from interface:IEventA type for this event.- Specified by:
getEventTypein interfaceIEvent- Returns:
- A type for this event.
-
getName
Description copied from interface:IEventA name for this event. -
getRc
public boolean getRc() -
isConsumed
public boolean isConsumed()Description copied from interface:IEventtrueif this event is already consumed by some listener.- Specified by:
isConsumedin interfaceIEvent- Returns:
trueif this event is already consumed by some listener.
-
isVetoed
public boolean isVetoed()Description copied from interface:IEventtrueif this event is already vetoed by some listener. -
setRc
public void setRc(boolean value) -
setVeto
public void setVeto(boolean value) -
veto
public void veto()Description copied from interface:IEventIndicate that the behavior associated with this event should not be performed by the source.
-