DESY ACOP Beans Home

com.cosylab.util
Class PropertyChangeHelper

java.lang.Object
  extended by com.cosylab.util.PropertyChangeHelper

public class PropertyChangeHelper
extends java.lang.Object

A support class that acts as a java.beans.PropertyChangeSupport with the ability to be extended by classes that need PropertyChange events and an internal map-like store for property values which automatically fires PropertyChangeEvents

Author:
Miha Kadunc (miha.kadunc@cosylab.com

Constructor Summary
PropertyChangeHelper()
           
PropertyChangeHelper(java.lang.Object source)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void firePropertyChange(java.beans.PropertyChangeEvent evt)
           
 void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
           
 void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
           
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
 java.lang.Object getClientProperty(java.lang.String propertyName)
           
 java.beans.PropertyChangeListener[] getPropertyChangeListeners()
           
 java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)
           
 int hashCode()
           
 boolean hasListeners(java.lang.String propertyName)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void setClientProperty(java.lang.String propertyName, java.lang.Object propertyValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyChangeHelper

public PropertyChangeHelper()

PropertyChangeHelper

public PropertyChangeHelper(java.lang.Object source)
Method Detail

setClientProperty

public void setClientProperty(java.lang.String propertyName,
                              java.lang.Object propertyValue)

getClientProperty

public java.lang.Object getClientProperty(java.lang.String propertyName)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)

firePropertyChange

public void firePropertyChange(java.beans.PropertyChangeEvent evt)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               boolean oldValue,
                               boolean newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               int oldValue,
                               int newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)

getPropertyChangeListeners

public java.beans.PropertyChangeListener[] getPropertyChangeListeners()

getPropertyChangeListeners

public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

hasListeners

public boolean hasListeners(java.lang.String propertyName)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.