@FunctionalInterface public interface IEventDispatcher
FrameworkSettings
to create custom strategies for
how events get delivered to componentsIEventSink
,
IComponentAwareEventSink
Modifier and Type | Method and Description |
---|---|
void |
dispatchEvent(Object sink,
IEvent<?> event,
Component component)
Dispatches the even to the target component
|
void dispatchEvent(Object sink, IEvent<?> event, Component component)
sink
- the sink for the event. Sinks usually implement IEventSink
or
IComponentAwareEventSink
. See the component
parameter described
below.event
- component
- provides context to the sink. Some sinks are owned by the component, eg
Behavior
s, and thus it is useful for them to have a reference to their
owning component. If this method is not null
the dispatcher should try to
look for an alternative sink method which takes a component reference as an
additional parameter, one such implementation is IComponentAwareEventSink
.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.