borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

VectorSelectionMulticaster class

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

About the VectorSelectionMulticaster class

Properties  Methods  

Implements VectorSelectionListener, EventListener

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

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


VectorSelectionMulticaster properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

VectorSelectionMulticaster methods

Methods implemented in this class

Methods implemented in java.lang.Object


VectorSelectionMulticaster methods

add(borland.jbcl.model.VectorSelectionListener)

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

Parameters:

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

dispatch(borland.jbcl.model.VectorSelectionEvent)

  public final void dispatch(borland.jbcl.model.VectorSelectionEvent e)
Sends a vector-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 vector-selection listeners. If the event ID is RANGE_CHANGE, it calls the selectionRangeChanged method of the vector-selection listeners. If the event ID is SELECTION_CHANGE, it calls the selectionChanged method of the vector-selection listeners.

Parameters:

e
The vector-model event sent to all listeners.

find(borland.jbcl.model.VectorSelectionListener)

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

remove(borland.jbcl.model.VectorSelectionListener)

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

Parameters:

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