-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.jfx.events.generic.EventDispatcher
public abstract class AbstractEventDispatcher<T extends TriggerAction, E extends Event> implements EventDispatcher<T, E>
A generic event dispatcher that implements action management.
-
-
Field Summary
Fields Modifier and Type Field Description private final ActionListener<T, E>listener
-
Constructor Summary
Constructors Constructor Description AbstractEventDispatcher()
-
Method Summary
Modifier and Type Method Description abstract ActionListener<T, E>getListener()The listener bound to this dispatcher. Unitset(T trigger, Function1<E, Unit> job)Adds a job to be performed whenever an event triggers the dispatcher through the listener. -
-
Method Detail
-
getListener
abstract ActionListener<T, E> getListener()
The listener bound to this dispatcher.
-
-
-
-