API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. PropertyChangeSupport View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      PropertyChangeSupport
Implements
 Serializable
Subclasses
Description
public class PropertyChangeSupport
  This is a utility class that can be used by beans that support bound properties.
See also:   
Constructors
public PropertyChangeSupport (Object sourceBean)
  Constructs a PropertyChangeSupport object.
Methods
Hide/Show inherited methods
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener)
  Add a PropertyChangeListener to the listener list.
publicsynchronized void addPropertyChangeListener (String propertyName, PropertyChangeListener listener)
  Add a PropertyChangeListener for a specific property.
public void fireIndexedPropertyChange (String propertyName, int index, boolean oldValue, boolean newValue)
  Report a boolean bound indexed property update to any registered listeners.
public void fireIndexedPropertyChange (String propertyName, int index, int oldValue, int newValue)
  Report an int bound indexed property update to any registered listeners.
public void fireIndexedPropertyChange (String propertyName, int index, Object oldValue, Object newValue)
  Report a bound indexed property update to any registered listeners.
public void firePropertyChange (PropertyChangeEvent evt)
  Fire an existing PropertyChangeEvent to any registered listeners.
public void firePropertyChange (String propertyName, boolean oldValue, boolean newValue)
  Report a boolean bound property update to any registered listeners.
public void firePropertyChange (String propertyName, int oldValue, int newValue)
  Report an int bound property update to any registered listeners.
public void firePropertyChange (String propertyName, Object oldValue, Object newValue)
  Report a bound property update to any registered listeners.
publicsynchronized PropertyChangeListener getPropertyChangeListeners ()
  Returns an array of all the listeners that were added to the PropertyChangeSupport object with addPropertyChangeListener().
publicsynchronized PropertyChangeListener getPropertyChangeListeners (String propertyName)
  Returns an array of all the listeners which have been associated with the named property.
publicsynchronized boolean hasListeners (String propertyName)
  Check if there are any listeners for a specific property, including those registered on all properties.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener)
  Remove a PropertyChangeListener from the listener list.
publicsynchronized void removePropertyChangeListener (String propertyName, PropertyChangeListener listener)
  Remove a PropertyChangeListener for a specific property.
Fields
Hide/Show inherited fields
pack-privatefinalstatic long serialVersionUID = "6401253773779951803"
Serialization version ID, so we're compatible with JDK 1.1
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar