borland Packages  Class Hierarchy  jbcl.util Package  Index 

FocusMulticaster class

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

About the FocusMulticaster class

Properties  Methods  

Implements FocusListener, EventListener

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

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


FocusMulticaster properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

FocusMulticaster methods

Methods implemented in this class

Methods implemented in java.lang.Object


FocusMulticaster methods

add(java.awt.event.FocusListener)

  public final synchronized void add(java.awt.event.FocusListener listener)
Adds an object to the array of listeners.

Parameters:

listener
The object that is added to the list of listeners for focus events.

dispatch(java.awt.event.FocusEvent)

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

Parameters:

e
The focus event sent to all listeners.

find(java.awt.event.FocusListener)

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

remove(java.awt.event.FocusListener)

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

Parameters:

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