|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
de.intarsys.tools.event.Event
public class Event
Abstract superclass for event implementations.
Field Summary | |
---|---|
protected boolean |
consumed
Flag if the event is already handled. |
static EventType |
ID
|
static java.lang.Object |
ID_ALL
|
protected boolean |
veto
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 | |
---|---|
Event(java.lang.Object source)
Create a new event object. |
Method Summary | |
---|---|
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. |
boolean |
getRc()
|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.intarsys.tools.event.IEvent |
---|
getSource |
Field Detail |
---|
public static final java.lang.Object ID_ALL
public static final EventType ID
protected boolean consumed
protected boolean veto
Constructor Detail |
---|
public Event(java.lang.Object source)
source
- The object that created the event.Method Detail |
---|
public void consume()
IEvent
consume
in interface IEvent
public EventType getEventType()
IEvent
getEventType
in interface IEvent
public java.lang.String getName()
IEvent
getName
in interface IEvent
public boolean getRc()
public boolean isConsumed()
IEvent
true
if this event is already consumed by some listener.
isConsumed
in interface IEvent
true
if this event is already consumed by some
listener.public boolean isVetoed()
IEvent
true
if this event is already vetoed by some listener.
isVetoed
in interface IEvent
true
if this event is already vetoed by some
listener.public void setRc(boolean value)
public void setVeto(boolean value)
public void veto()
IEvent
veto
in interface IEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |