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
ConstructorDescriptionNativePropertyListener
(IProperty property, ISimplePropertyListener<S, D> listener) Constructs a NativePropertyListener with the specified arguments -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Adds the receiver as a listener for property events on the specified property source.protected abstract void
protected abstract void
doRemoveFrom
(S source) protected void
fireChange
(S source, D diff) Notifies the listener that a property change occurred on the source object.protected void
Notifies the listener that the property became stale on the source object.final void
removeFrom
(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:INativePropertyListener
Adds the receiver as a listener for property events on the specified property source.- Specified by:
addTo
in interfaceINativePropertyListener<S>
- Parameters:
source
- the property source (may be null)
-
doAddTo
-
removeFrom
Description copied from interface:INativePropertyListener
Removes the receiver as a listener for property events on the specified property source.- Specified by:
removeFrom
in 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, ornull
for 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
-