-
- All Implemented Interfaces:
public interface EventDispatcher<T extends TriggerAction, E extends Event>An event dispatcher.
-
-
Method Summary
Modifier and Type Method Description abstract Unitset(T trigger, Function1<E, Unit> job)Adds a job to be performed whenever an event triggers the dispatcher through the listener. abstract ActionListener<T, E>getListener()The listener bound to this dispatcher. -
-
Method Detail
-
set
abstract Unit set(T trigger, Function1<E, Unit> job)
Adds a job to be performed whenever an event triggers the dispatcher through the listener.
- Parameters:
trigger- the type of the job that needs to occur.job- the job that will happen whenever the given job occurs.
-
getListener
abstract ActionListener<T, E> getListener()
The listener bound to this dispatcher.
-
-
-
-