|
intarsys runtime library | |||||||||
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 | |
---|---|
static EventType |
ID
|
static Object |
ID_ALL
|
Constructor Summary | |
---|---|
Event(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. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.intarsys.tools.event.IEvent |
---|
getSource |
Field Detail |
---|
public static final Object ID_ALL
public static final EventType ID
Constructor Detail |
---|
public Event(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 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
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |