public interface ChangeHub
Listeners are indexed with a key and when an event is fired, only listeners with the same key are invoked. The class manages the mapping between key and listener. It is the users responsibility to compute the key.
Modifier and Type | Method and Description |
---|---|
void |
addListener(Object key,
ChangeListener listener,
ChangeType ct)
add a ChangeListener associated with given key.
|
void |
firePostChange(Object key,
ChangeEvent cev)
invoke the firePostChangeEvent on all ChangeListeners associated with
a specific key.
|
void |
firePreChange(Object key,
ChangeEvent cev)
invoke the firePreChangeEvent on all ChangeListeners associated with
a specific key.
|
void |
removeListener(Object key,
ChangeListener listener,
ChangeType ct)
remove a ChangeListener associated with given key.
|
void addListener(Object key, ChangeListener listener, ChangeType ct)
void removeListener(Object key, ChangeListener listener, ChangeType ct)
void firePreChange(Object key, ChangeEvent cev) throws ChangeVetoException
ChangeVetoException
void firePostChange(Object key, ChangeEvent cev)
Copyright © 2014 BioJava. All rights reserved.