dsto.dfc.swt.util
Class PropertyChangeListeners

java.lang.Object
  extended by dsto.dfc.swt.util.PropertyChangeListeners
All Implemented Interfaces:
Copyable, Serializable, Cloneable

public class PropertyChangeListeners
extends Object
implements Serializable, Copyable

Basis property event listener list for SWT/JFace. In order to provide property change notification classes may either simply extend this class (use by inheritance) or create a standalone instance and forward methods to it (use by composition) with the event source set to be the containing instance.

NOTE: in the use by composition case, it is the client clone () method's responsibility to update the event source correctly.

Version:
$Revision$
See Also:
Serialized Form

Constructor Summary
protected PropertyChangeListeners()
           
  PropertyChangeListeners(Object source)
           
 
Method Summary
 void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener l)
           
 Object clone()
          Create a completely separate copy of this object and any mutable objects owned by the object.
 void firePropertyChange(String propertyName, boolean newValue)
           
 void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
           
 void firePropertyChange(String propertyName, char oldValue, char newValue)
           
 void firePropertyChange(String propertyName, double oldValue, double newValue)
           
 void firePropertyChange(String propertyName, float oldValue, float newValue)
           
 void firePropertyChange(String propertyName, int oldValue, int newValue)
           
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
 void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener l)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChangeListeners

protected PropertyChangeListeners()

PropertyChangeListeners

public PropertyChangeListeners(Object source)
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener l)

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from interface: Copyable
Create a completely separate copy of this object and any mutable objects owned by the object.

NOTE: subclasses should not remove the CloneNotSupportedException throws clause if they themselves support subclassing: removing the CloneNotSupportedException declaration stops subclasses from indicating that a clone was not possible.

Specified by:
clone in interface Copyable
Overrides:
clone in class Object
Throws:
CloneNotSupportedException - if the clone failed or is not possible.

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               boolean newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               int oldValue,
                               int newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               float oldValue,
                               float newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               double oldValue,
                               double newValue)

firePropertyChange

public void firePropertyChange(String propertyName,
                               char oldValue,
                               char newValue)


Copyright © 2008 Commonwealth of Australia