Base class for FX events. Each FX event has associated an event source,
event target and an event type. The event source specifies for an event
handler the object on which that handler has been registered and which sent
the event to it. The event target defines the path through which the event
will travel when posted. The event type provides additional classification
to events of the same Event class.
Construct a new Event with the specified event source, target
and type. If the source or target is set to null, it is replaced
by the NULL_SOURCE_TARGET value.
Parameters:
source - the event source which sent the event
target - the event target to associate with the event
Gets the event type of this event. Objects of the same Event
class can have different event types. These event types further specify
what kind of event occurred.
Creates and returns a copy of this event with the specified event source
and target. If the source or target is set to null, it is
replaced by the NULL_SOURCE_TARGET value.
Parameters:
newSource - the new source of the copied event
newTarget - the new target of the copied event
Returns:
the event copy with the new source and target
isConsumed
public boolean isConsumed()
Indicates whether this Event has been consumed by any filter or
handler.
Returns:
true if this Event has been consumed,
false otherwise
consume
public void consume()
Marks this Event as consumed. This stops its further propagation.