Class AbstractSignal
java.lang.Object
dev.pfaff.altargui.util.listenable.AbstractSignal
- All Implemented Interfaces:
Signal
- Direct Known Subclasses:
AbstractValue
,BooleanSignal
,EventListenable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
forEachListener
(Consumer<Object> consumer) protected final boolean
final ListenerDisposer
Adds a listener.protected final void
protected final void
removeListener
(Object listener)
-
Constructor Details
-
AbstractSignal
public AbstractSignal()
-
-
Method Details
-
listen
-
removeListener
-
forEachListener
-
notifyListenersAsRunnable
protected final void notifyListenersAsRunnable() -
listen
Description copied from interface:Signal
Adds a listener. The listener may not be added again if already added. When added, it is guaranteed to be invoked immediately.
-