public class SynchronousChangeListener<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 event it was listening to. During the propagation,
onChange(ChangeGenerator, Object)
will propagate the origin ChangeGenerator
.
Constructor and Description |
---|
SynchronousChangeListener() |
SynchronousChangeListener(List<ChangeListener<T>> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
onChange(ChangeGenerator<T> changeGenerator,
T modelObject) |
addChangeListener, getListeners, notifyAllListeners, setListeners, transform
public SynchronousChangeListener()
public SynchronousChangeListener(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.