Eclipse Platform
Release 3.6

org.eclipse.core.databinding.property
Class NativePropertyListener

java.lang.Object
  extended by org.eclipse.core.databinding.property.NativePropertyListener
All Implemented Interfaces:
INativePropertyListener

public abstract class NativePropertyListener
extends Object
implements INativePropertyListener

Abstract INativePropertyListener implementation

Since:
1.2

Constructor Summary
NativePropertyListener(IProperty property, ISimplePropertyListener listener)
          Constructs a NativePropertyListener with the specified arguments
 
Method Summary
 void addTo(Object source)
          Adds the receiver as a listener for property events on the specified property source.
protected abstract  void doAddTo(Object source)
           
protected abstract  void doRemoveFrom(Object source)
           
protected  void fireChange(Object source, IDiff diff)
          Notifies the listener that a property change occured on the source object.
protected  void fireStale(Object source)
          Notifies the listener that the property became stale on the source object.
 void removeFrom(Object source)
          Removes the receiver as a listener for property events on the specified property source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativePropertyListener

public NativePropertyListener(IProperty property,
                              ISimplePropertyListener listener)
Constructs a NativePropertyListener with the specified arguments

Parameters:
property - the property that this listener listens to
listener - the listener to receive property change notifications
Method Detail

addTo

public final void addTo(Object source)
Description copied from interface: INativePropertyListener
Adds the receiver as a listener for property events on the specified property source.

Specified by:
addTo in interface INativePropertyListener
Parameters:
source - the property source (may be null)

doAddTo

protected abstract void doAddTo(Object source)

removeFrom

public final void removeFrom(Object source)
Description copied from interface: INativePropertyListener
Removes the receiver as a listener for property events on the specified property source.

Specified by:
removeFrom in interface INativePropertyListener
Parameters:
source - the property source (may be null)

doRemoveFrom

protected abstract void doRemoveFrom(Object source)

fireChange

protected void fireChange(Object source,
                          IDiff diff)
Notifies the listener that a property change occured on the source object.

Parameters:
source - the source object whose property changed
diff - a diff describing the change in state

fireStale

protected void fireStale(Object source)
Notifies the listener that the property became stale on the source object.

Parameters:
source - the source object whose property became stale

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.