public interface CompositeCallback extends Callback
Callback
can hold more callbacks which allows to form callback trees where events are passed to
sub-callbacks. Events can be filtered using FilterCallback
which may be set up to pass only specific
events under certain circumstances.
This can be configured via Manager configuration facility. (Configuration part is still rather WIP.)
Callback tree has no correlation with Simon tree in the Manager
).Callback.Event
Modifier and Type | Method and Description |
---|---|
void |
addCallback(Callback callback)
Adds another callback as a child to this callback.
|
List<Callback> |
callbacks()
Returns the list of all child-callbacks.
|
void |
removeAllCallbacks()
Removes all callbacks from this callback.
|
void |
removeCallback(Callback callback)
Removes specified callback from this callback.
|
cleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onManagerMessage, onManagerWarning, onSimonCreated, onSimonDestroyed, onStopwatchAdd, onStopwatchStart, onStopwatchStop
void addCallback(Callback callback)
callback
- added callbackvoid removeCallback(Callback callback)
callback
- removed child-callbackvoid removeAllCallbacks()
Copyright © 2019. All rights reserved.