public abstract class IndexedChangeHub extends Object implements ChangeHub
Modifier and Type | Class and Description |
---|---|
protected class |
IndexedChangeHub.ListenerMemento |
Constructor and Description |
---|
IndexedChangeHub() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(Object key,
ChangeListener listener,
ChangeType ct)
add a ChangeListener associated with given key.
|
protected void |
diddleQueue() |
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.
|
protected abstract boolean |
isMyChangeEvent(ChangeEvent cev,
IndexedChangeHub.ListenerMemento lm) |
void |
removeListener(Object key,
ChangeListener listener,
ChangeType ct)
remove a ChangeListener associated with given key.
|
public IndexedChangeHub()
protected abstract boolean isMyChangeEvent(ChangeEvent cev, IndexedChangeHub.ListenerMemento lm)
public void addListener(Object key, ChangeListener listener, ChangeType ct)
ChangeHub
addListener
in interface ChangeHub
public void removeListener(Object key, ChangeListener listener, ChangeType ct)
ChangeHub
removeListener
in interface ChangeHub
public void firePreChange(Object key, ChangeEvent cev) throws ChangeVetoException
ChangeHub
firePreChange
in interface ChangeHub
ChangeVetoException
public void firePostChange(Object key, ChangeEvent cev)
ChangeHub
firePostChange
in interface ChangeHub
protected void diddleQueue()
Copyright © 2014 BioJava. All rights reserved.