public static class ChangeForwarder.Retyper extends ChangeForwarder
ChangeForwarder.Retyper
ChangeListener.AlwaysVetoListener, ChangeListener.ChangeEventRecorder, ChangeListener.LoggingListener
ALWAYS_VETO, LOG_TO_OUT
Constructor and Description |
---|
ChangeForwarder.Retyper(Object source,
ChangeSupport changeSupport,
ChangeType type)
Create a new Retyper for forwarding events.
|
Modifier and Type | Method and Description |
---|---|
protected ChangeEvent |
generateEvent(ChangeEvent ce)
Return the new event to represent the originating event ce.
|
ChangeType |
getType() |
changeSupport, getSource, postChange, preChange
public ChangeForwarder.Retyper(Object source, ChangeSupport changeSupport, ChangeType type)
source
- the new source ObjectchangeSupport
- the ChangeSupport managing the listenerstype
- the new ChangeTypepublic ChangeType getType()
protected ChangeEvent generateEvent(ChangeEvent ce) throws ChangeVetoException
ChangeForwarder
Return the new event to represent the originating event ce.
The returned ChangeEvent is the event that will be fired, and should be built from information in the original event. If it is null, then no event will be fired.
The default implementation just constructs a ChangeEvent of the same type that chains back to ce.
generateEvent
in class ChangeForwarder
ce
- the originating ChangeEventChangeVetoException
- if for any reason this event can't be handledCopyright © 2014 BioJava. All rights reserved.