borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.util
java.lang.Object +----borland.jbcl.util.MouseMulticaster
Properties Methods
Implements MouseListener, EventListener
A class that dispatches mouse events to multiple mouse listeners. MouseMulticaster maintains an array of listeners. The add(), remove(), and find() methods maintain this list.
The hasListeners() method determines whether any objects are listening for mouse events. The dispatch() method sends a mouse event to all listeners.
See also: Standard Java events, Events in JBCL
public final synchronized void add(java.awt.event.MouseListener listener)Adds an object to the array of listeners.
Parameters:
public final void dispatch(java.awt.event.MouseEvent e)Sends a mouse event to all listeners. Which method is called in the listener depends on the type of mouse event. For example, a MouseEvent.MOUSE_CLICKED event results in a call to the mouseClicked event in the listening object. This method is a high-speed dispatcher that does not need to be synchronized.
Parameters:
public int find(java.awt.event.MouseListener listener)Searches for the specified listener among the array of listening objects.
Parameters:
public final boolean hasListeners()Determines if there are any listeners for mouse events. If the method returns true, one or more listeners are present.
public final synchronized void remove(java.awt.event.MouseListener listener)Removes the specified listening object from the array of listeners for mouse events.
Parameters: