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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
consume()
Indicate that this event does not need to be propagated any further as it is already processed by some listener.EventType
getEventType()
A type for this event.java.lang.String
getName()
A name for this event.java.lang.Object
getSource()
The object originating the event instance.boolean
isConsumed()
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 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()
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.
-
-