BatchPropertyChangeSupport Class
com.bea.ide.util
BatchPropertyChangeSupport Class
- public class BatchPropertyChangeSupport
extends Object
implements PropertyChangeListener
Implements a property change listener that batches up all property change
events so that they can be processed together once all updating is
completed.
Note that this is intended to be used in AWT/Swing. Specifically, it is
assumed that the changes to batch are occuring on the AWT thread.
To use this class, create an instance, add it as a property change
listener on the objects of interest, and add your listener on this.
-
Hierarchy
-
Object
BatchPropertyChangeSupport
-
All Implemented Interfaces
-
EventListener
, PropertyChangeListener
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchPropertyChangeSupport
public BatchPropertyChangeSupport()
- Creates a new property change batcher.
BatchPropertyChangeSupport
public BatchPropertyChangeSupport(PropertyChangeListener
listener)
- Creates a new property change batcher and adds the given listener.
addPropertyChangeListener(PropertyChangeListener) Method
public void addPropertyChangeListener(PropertyChangeListener
listener)
Adds the given listener for batch property change events.
disable() Method
public void disable()
Turns off listening for property changes.
enable() Method
public void enable()
Turns on listening for property changes.
getChangeEvents(PropertyChangeEvent) Method
public static Iterator
getChangeEvents(PropertyChangeEvent
e)
Retrieves the list of events from a batch event.
getSources(PropertyChangeEvent) Method
public static Iterator
getSources(PropertyChangeEvent
e)
Returns a list of the sources that changed.
propertyChange(PropertyChangeEvent) Method
public void propertyChange(PropertyChangeEvent
change)
Adds the given change into the batch.
removePropertyChangeListener(PropertyChangeListener) Method
public void removePropertyChangeListener(PropertyChangeListener
listener)
Removes the given listener for batch property change events.