|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.biojava.utils.ChangeListener.AlwaysVetoListener
An implementation that always vetoes everything.
| Nested Class Summary |
| Nested classes inherited from class org.biojava.utils.ChangeListener |
ChangeListener.AlwaysVetoListener, ChangeListener.LoggingListener |
| Field Summary |
| Fields inherited from interface org.biojava.utils.ChangeListener |
ALWAYS_VETO, LOG_TO_OUT |
| Constructor Summary | |
protected |
ChangeListener.AlwaysVetoListener()
Private constructor. |
| Method Summary | |
void |
postChange(ChangeEvent cev)
Called when a change has just taken place. |
void |
preChange(ChangeEvent cev)
Called before a change takes place. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ChangeListener.AlwaysVetoListener()
| Method Detail |
public void preChange(ChangeEvent cev)
throws ChangeVetoException
ChangeListenerCalled before a change takes place.
This is your chance to stop the change by throwing a ChangeVetoException. This method does not indicate that the change will definitely take place, so it is not recomended that you take any positive action within this handler.
preChange in interface ChangeListenercev - An event encapsulating the change which is about
to take place.
ChangeVetoException - Description of Exceptionpublic void postChange(ChangeEvent cev)
ChangeListenerCalled when a change has just taken place.
This method is the place to perform any behavior in response to the change event.
postChange in interface ChangeListenercev - An event encapsulating the change which has
occured.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||