borland Packages Class Hierarchy jbcl.util Package Index
java.lang.Object +----borland.jbcl.util.ItemMulticaster
Properties Methods
Implements ItemListener, EventListener
A class that dispatches item events to multiple listeners. ItemSelectable objects fire item events when an item is selected or unselected. ItemMulticaster maintains an array of listeners. The add(), remove(), and find() methods maintain this list.
The hasListeners() method determines whether any objects are listening for item events. The dispatch() method sends an item event to all listeners.
public final synchronized void add(java.awt.event.ItemListener listener)Adds an object to the array of listeners.
Parameters:
public final void dispatch(java.awt.event.ItemEvent e)Sends an item event to all listeners. The method is a high-speed dispatcher that does not need to be synchronized.
Parameters:
public int find(java.awt.event.ItemListener listener)Searches for the specified listener among the array of listening objects.
Parameters:
public final boolean hasListeners()Determines if there are any listeners for item events. If the method returns true, one or more listeners are present.
public final synchronized void remove(java.awt.event.ItemListener listener)Removes the specified listening object from the array of listeners for item events.
Parameters: