protected class MergeAnnotation.PropertyForwarder extends ChangeForwarder
ChangeForwarder.Retyper
ChangeListener.AlwaysVetoListener, ChangeListener.ChangeEventRecorder, ChangeListener.LoggingListener
ALWAYS_VETO, LOG_TO_OUT
Constructor and Description |
---|
MergeAnnotation.PropertyForwarder(Object source,
ChangeSupport cs)
Create a new forwarder on behalf of a source using the change support.
|
Modifier and Type | Method and Description |
---|---|
ChangeEvent |
generateEvent(ChangeEvent ce)
Return the new event to represent the originating event ce.
|
changeSupport, getSource, postChange, preChange
public MergeAnnotation.PropertyForwarder(Object source, ChangeSupport cs)
source
- the new source of eventscs
- the ChangeSupport used to manage listenerspublic ChangeEvent generateEvent(ChangeEvent ce)
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 ChangeEventCopyright © 2014 BioJava. All rights reserved.