public static class ChangeListener.ChangeEventRecorder extends ChangeAdapter
ChangeListener.AlwaysVetoListener, ChangeListener.ChangeEventRecorder, ChangeListener.LoggingListener
ALWAYS_VETO, LOG_TO_OUT
Constructor and Description |
---|
ChangeEventRecorder() |
Modifier and Type | Method and Description |
---|---|
ChangeEvent |
getEvent() |
void |
preChange(ChangeEvent cev)
Called before a change takes place.
|
postChange
public ChangeEventRecorder()
public ChangeEvent getEvent()
public void preChange(ChangeEvent cev) throws ChangeVetoException
ChangeListener
Called 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 ChangeListener
preChange
in class ChangeAdapter
cev
- An event encapsulating the change which is about
to take place.ChangeVetoException
- Description of ExceptionCopyright © 2020 BioJava. All rights reserved.