borland Packages  Class Hierarchy  jbcl.model Package  Index 

MatrixSelectionMulticaster class

java.lang.Object
   +----borland.jbcl.model.MatrixSelectionMulticaster

About the MatrixSelectionMulticaster class

Properties  Methods  

Implements MatrixSelectionListener, EventListener

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

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


MatrixSelectionMulticaster properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

MatrixSelectionMulticaster methods

Methods implemented in this class

Methods implemented in java.lang.Object


MatrixSelectionMulticaster methods

add(borland.jbcl.model.MatrixSelectionListener)

  public final synchronized void add(borland.jbcl.model.MatrixSelectionListener listener)
Adds an object to the array of listeners.

Parameters:

listener
The object that is added to the list of listeners for matrix-selection events.

dispatch(borland.jbcl.model.MatrixSelectionEvent)

  public final void dispatch(borland.jbcl.model.MatrixSelectionEvent e)
Sends a matrix-model event to all listeners. It is a high-speed dispatcher that does not need to be synchronized. If the event ID is ITEM_CHANGE, it calls the selectionItemChanged method of the matrix-selection listeners. If the event ID is RANGE_CHANGE, it calls the selectionRangeChanged method of the matrix-selection listeners. If the event ID is SELECTION_CHANGE, it calls the selectionChanged method of the matrix-selection listeners.

Parameters:

e
The matrix-model event sent to all listeners.

find(borland.jbcl.model.MatrixSelectionListener)

  public int find(borland.jbcl.model.MatrixSelectionListener 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 matrix-selection events. If the method returns true, one or more listeners are present.

remove(borland.jbcl.model.MatrixSelectionListener)

  public final synchronized void remove(borland.jbcl.model.MatrixSelectionListener listener)
Removes the specified listening object from the array of listeners for matrix-selection events.

Parameters:

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