public class AsynchronousChangeListener<T> extends AbstractChainChangeListener<T>
ChangeListener
and Transformer
that in turn executes other ChangeListener
s, listening to it.
Hence making it also an intermediate ChangeGenerator
that propagates the even it was listening to. During the propagation,
onChange(ChangeGenerator, Object)
will propagate the origin ChangeGenerator
.
AbstractChainChangeListener.listeners
will be executed by a loop in one asynchronous Thread.listeners
Constructor and Description |
---|
AsynchronousChangeListener() |
AsynchronousChangeListener(List<ChangeListener<T>> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
onChange(ChangeGenerator<T> changeGenerator,
T modelObject) |
addChangeListener, getListeners, notifyAllListeners, setListeners, transform
public AsynchronousChangeListener()
public AsynchronousChangeListener(List<ChangeListener<T>> listeners)
public void onChange(ChangeGenerator<T> changeGenerator, T modelObject)
onChange
in interface ChangeListener<T>
onChange
in class AbstractChainChangeListener<T>
changeGenerator
- as the generator that caused the change. Specially useful if the Listener is subscribing to multiple ChangeGenerator
smodelObject
- as the model change communicatedCopyright © 2018. All rights reserved.