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 TypeMethodDescriptionvoid
consume()
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.boolean
true
if this event is already consumed by some listener.boolean
isVetoed()
true
if this event is already vetoed by some listener.void
veto()
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()true
if this event is already consumed by some listener.- Returns:
true
if this event is already consumed by some listener.
-
isVetoed
boolean isVetoed()true
if this event is already vetoed by some listener.- Returns:
true
if 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.
-