Package org.apache.wicket
Interface IEventDispatcher
-
- All Known Implementing Classes:
FrameworkSettings
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IEventDispatcher
Delivers an event to a component. Developers can implement and register their dispatchers inFrameworkSettings
to create custom strategies for how events get delivered to components- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
IEventSink
,IComponentAwareEventSink
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispatchEvent(Object sink, IEvent<?> event, Component component)
Dispatches the even to the target component
-
-
-
Method Detail
-
dispatchEvent
void dispatchEvent(Object sink, IEvent<?> event, Component component)
Dispatches the even to the target component- Parameters:
sink
- the sink for the event. Sinks usually implementIEventSink
orIComponentAwareEventSink
. See thecomponent
parameter described below.event
-component
- provides context to the sink. Some sinks are owned by the component, egBehavior
s, and thus it is useful for them to have a reference to their owning component. If this method is notnull
the dispatcher should try to look for an alternative sink method which takes a component reference as an additional parameter, one such implementation isIComponentAwareEventSink
.
-
-