Package de.intarsys.tools.event
Interface IEvent
-
- All Known Subinterfaces:
IRequestEvent
- All Known Implementing Classes:
AbstractEventFacade,ActivatedEvent,AttributeChangedEvent,CancelEvent,CancelRequestedEvent,CreatedEvent,DeactivatedEvent,DestroyedEvent,Event,OkEvent,OkRequestedEvent,PreferencesChangeEvent,RequestEvent,RequestEventFacade,ResumedEvent,SelectionEvent,StartedEvent,StoppedEvent,StopRequestedEvent,SuspendedEvent
public interface IEventAn object indicating an event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsume()Indicate that this event does not need to be propagated any further as it is already processed by some listener.EventTypegetEventType()A type for this event.java.lang.StringgetName()A name for this event.java.lang.ObjectgetSource()The object originating the event instance.booleanisConsumed()trueif this event is already consumed by some listener.booleanisVetoed()trueif this event is already vetoed by some listener.voidveto()Indicate that the behavior associated with this event should not be performed by the source.
-
-
-
Method Detail
-
consume
void consume()
Indicate that this event does not need to be propagated any further as it is already processed by some listener.
-
getName
java.lang.String getName()
A name for this event.- Returns:
- A name for this event.
-
getSource
java.lang.Object getSource()
The object originating the event instance.- Returns:
- The object originating the event instance.
-
getEventType
EventType getEventType()
A type for this event.- Returns:
- A type for this event.
-
isConsumed
boolean isConsumed()
trueif this event is already consumed by some listener.- Returns:
trueif this event is already consumed by some listener.
-
isVetoed
boolean isVetoed()
trueif this event is already vetoed by some listener.- Returns:
trueif this event is already vetoed by some listener.
-
veto
void veto()
Indicate that the behavior associated with this event should not be performed by the source.
-
-