jbcl.util Package
java.lang.Object +----com.borland.jbcl.util.PropertyChangeMulticaster
Properties Methods
Implements PropertyChangeListener, EventListener
A component that dispatches property-change events to multiple listeners. Property-change events occur when the value of a bound property is modified. PropertyChangeMulticaster
maintains an array of listeners. The add()
, remove()
, and find()
methods maintain this list.
The hasListeners()
method determines whether any objects are listening for property-change events. The dispatch()
method sends a property-change event to all listeners.
public final synchronized void add(PropertyChangeListener listener)Adds an object to the array of listeners.
Parameters:
listener
public final void dispatch(PropertyChangeEvent event)Sends a property-change event to all listeners. The method is a high-speed dispatcher that does not need to be synchronized.
Parameters:
e
public int find(PropertyChangeListener listener)Searches for the specified listener among the array of listening objects.
Parameters:
listener
public final boolean hasListeners()Determines if there are any listeners for property-change events. If the method returns true, one or more listeners are present.
public final synchronized void remove(PropertyChangeListener listener)Removes the specified listening object from the array of listeners for property-change events.
Parameters:
listener