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 boolean
Flag if the event is already handled.static final EventType
static final Object
protected boolean
Flag 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 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.boolean
getRc()
boolean
true
if this event is already consumed by some listener.boolean
isVetoed()
true
if this event is already vetoed by some listener.void
setRc
(boolean value) void
setVeto
(boolean value) void
veto()
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:IEvent
Indicate that this event does not need to be propagated any further as it is already processed by some listener. -
getEventType
Description copied from interface:IEvent
A type for this event.- Specified by:
getEventType
in interfaceIEvent
- Returns:
- A type for this event.
-
getName
Description copied from interface:IEvent
A name for this event. -
getRc
public boolean getRc() -
isConsumed
public boolean isConsumed()Description copied from interface:IEvent
true
if this event is already consumed by some listener.- Specified by:
isConsumed
in interfaceIEvent
- Returns:
true
if this event is already consumed by some listener.
-
isVetoed
public boolean isVetoed()Description copied from interface:IEvent
true
if 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:IEvent
Indicate that the behavior associated with this event should not be performed by the source.
-