borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.util 

PropertyChangeMulticaster class

java.lang.Object
   +----borland.jbcl.util.PropertyChangeMulticaster

About the PropertyChangeMulticaster class

Properties  Methods  

Implements PropertyChangeListener, EventListener

A class 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.

See also: Standard Java events, Events in JBCL


PropertyChangeMulticaster properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

PropertyChangeMulticaster methods

Methods implemented in this class

Methods implemented in java.lang.Object


PropertyChangeMulticaster methods

add(java.beans.PropertyChangeListener)

  public final synchronized void add(java.beans.PropertyChangeListener listener)
Adds an object to the array of listeners.

Parameters:

listener
The object that is added to the list of listeners for property-change events.

dispatch(java.beans.PropertyChangeEvent)

  public final void dispatch(java.beans.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
The property-change event sent to all listeners.

find(java.beans.PropertyChangeListener)

  public int find(java.beans.PropertyChangeListener listener)
Searches for the specified listener among the array of listening objects.

Parameters:

listener
The object you are searching for in the list of listeners.

hasListeners()

  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.

remove(java.beans.PropertyChangeListener)

  public final synchronized void remove(java.beans.PropertyChangeListener listener)
Removes the specified listening object from the array of listeners for property-change events.

Parameters:

listener
The listening object that is removed from the array of listeners.