public abstract class AbstractChainChangeListener<T> extends Object implements ChangeListener<T>, ChangeGenerator<T>, org.apache.commons.collections.Transformer
ChangeListener
sModifier and Type | Field and Description |
---|---|
protected List<ChangeListener<T>> |
listeners |
Constructor and Description |
---|
AbstractChainChangeListener() |
AbstractChainChangeListener(List<ChangeListener<T>> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener<T> changeListener)
Allow Notify all
ChangeListener s about a change |
List |
getListeners()
Get list directly.
|
void |
notifyAllListeners(T object)
Whenever a node is selected/updated, it also notifies its listeners.
|
abstract void |
onChange(ChangeGenerator<T> changeGenerator,
T modelObject) |
void |
setListeners(List listeners)
Set list directly.
|
Object |
transform(Object input) |
protected transient List<ChangeListener<T>> listeners
public AbstractChainChangeListener()
public AbstractChainChangeListener(List<ChangeListener<T>> listeners)
public void addChangeListener(ChangeListener<T> changeListener)
ChangeGenerator
ChangeListener
s about a changeaddChangeListener
in interface ChangeGenerator<T>
public void notifyAllListeners(T object)
ChangeGenerator
notifyAllListeners
in interface ChangeGenerator<T>
public List getListeners()
ChangeGenerator
getListeners
in interface ChangeGenerator<T>
public void setListeners(List listeners)
ChangeGenerator
setListeners
in interface ChangeGenerator<T>
public abstract void onChange(ChangeGenerator<T> changeGenerator, T modelObject)
onChange
in interface ChangeListener<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.