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

ActionMulticaster class

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

About the ActionMulticaster class

Properties  Methods  

Implements ActionListener, EventListener

A class that dispatches action events to multiple listeners. ActionMulticaster maintains an array of listeners. The add(), remove(), and find() methods maintain this list.

The hasListeners() method determines whether any objects are listening for action events. The dispatch() method sends an action event to all listeners.

See also: java.awt.event.ActionEvent, Standard Java events, Events in JBCL


ActionMulticaster properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

ActionMulticaster methods

Methods implemented in this class

Methods implemented in java.lang.Object


ActionMulticaster methods

add(java.awt.event.ActionListener)

  public final synchronized void add(java.awt.event.ActionListener 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.awt.event.ActionEvent)

  public final void dispatch(java.awt.event.ActionEvent e)
Sends an action event to all listeners. The method is a high-speed dispatcher that does not need to be synchronized.

Parameters:

e
The action event sent to all listeners.

find(java.awt.event.ActionListener)

  public int find(java.awt.event.ActionListener 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 action events. If the method returns true, one or more listeners are present.

remove(java.awt.event.ActionListener)

  public final synchronized void remove(java.awt.event.ActionListener listener)
Removes the specified listening object from the array of listeners for action events.

Parameters:

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