-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.jfx.events.generic.EventDispatcher
public abstract class PersistentEventDispatcher<T extends TriggerAction, E extends Event> extends AbstractEventDispatcher<T, E>
An event dispatcher which doesn't overwrite its triggers when set is called on an already existing trigger.
-
-
Field Summary
Fields Modifier and Type Field Description private final ActionListener<T, E>listener
-
Constructor Summary
Constructors Constructor Description PersistentEventDispatcher()
-
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.
-
-
-
-