Class NativePropertyListener<S,D extends IDiff>
java.lang.Object
org.eclipse.core.databinding.property.NativePropertyListener<S,D>
- Type Parameters:
S- type of the source objectD- type of the diff handled by this listener
- All Implemented Interfaces:
INativePropertyListener<S>
public abstract class NativePropertyListener<S,D extends IDiff>
extends Object
implements INativePropertyListener<S>
Abstract INativePropertyListener implementation
- Since:
- 1.2
-
Constructor Summary
ConstructorsConstructorDescriptionNativePropertyListener(IProperty property, ISimplePropertyListener<S, D> listener) Constructs a NativePropertyListener with the specified arguments -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds the receiver as a listener for property events on the specified property source.protected abstract voidprotected abstract voiddoRemoveFrom(S source) protected voidfireChange(S source, D diff) Notifies the listener that a property change occurred on the source object.protected voidNotifies the listener that the property became stale on the source object.final voidremoveFrom(S source) Removes the receiver as a listener for property events on the specified property source.
-
Constructor Details
-
NativePropertyListener
Constructs a NativePropertyListener with the specified arguments- Parameters:
property- the property that this listener listens tolistener- the listener to receive property change notifications
-
-
Method Details
-
addTo
Description copied from interface:INativePropertyListenerAdds the receiver as a listener for property events on the specified property source.- Specified by:
addToin interfaceINativePropertyListener<S>- Parameters:
source- the property source (may be null)
-
doAddTo
-
removeFrom
Description copied from interface:INativePropertyListenerRemoves the receiver as a listener for property events on the specified property source.- Specified by:
removeFromin interfaceINativePropertyListener<S>- Parameters:
source- the property source (may be null)
-
doRemoveFrom
-
fireChange
Notifies the listener that a property change occurred on the source object.- Parameters:
source- the source object whose property changeddiff- a diff describing the change in state, ornullfor an auto-generated diff
-
fireStale
Notifies the listener that the property became stale on the source object.- Parameters:
source- the source object whose property became stale
-