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 IEvent
An object indicating an event.
-
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.The object originating the event instance.booleantrueif 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 Details
-
consume
void consume()Indicate that this event does not need to be propagated any further as it is already processed by some listener. -
getName
String getName()A name for this event.- Returns:
- A name for this event.
-
getSource
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.
-