public interface Changeable
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener cl)
Deprecated.
use addChangeListener(cl, ChangeType.UNKNOWN)
|
void |
addChangeListener(ChangeListener cl,
ChangeType ct)
Add a listener that will be informed of changes of a given type.
|
boolean |
isUnchanging(ChangeType ct)
A particular ChangeType can never be raised by this Changeable.
|
void |
removeChangeListener(ChangeListener cl)
Deprecated.
use removeChangeListener(cl, ChangeType.UNKNOWN)
|
void |
removeChangeListener(ChangeListener cl,
ChangeType ct)
Remove a listener that was interested in a specific types of changes.
|
void addChangeListener(ChangeListener cl)
cl
- the ChangeListener to addvoid addChangeListener(ChangeListener cl, ChangeType ct)
cl
- the ChangeListenerct
- the ChangeType it is to be informed ofvoid removeChangeListener(ChangeListener cl)
cl
- a ChangeListener to removevoid removeChangeListener(ChangeListener cl, ChangeType ct)
cl
- a ChangeListener to removect
- the ChangeType that it was interested inboolean isUnchanging(ChangeType ct)
A particular ChangeType can never be raised by this Changeable.
If this returns true, then it is guaranteed that change events of this type (and all child types) can never under any circumstances be fired by this Changeable instance. If it returns false, that does not mean that this type of event will or even can be raised, but that it is worth registering listeners incase.
ct
- the ChangeType to checkCopyright © 2014 BioJava. All rights reserved.