borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----borland.jbcl.model.MatrixModelMulticaster
Properties Methods
Implements MatrixModelListener, EventListener
A class that dispatches matrix-model events to multiple listeners. MatrixModelMulticaster maintains an array of listeners. The add(), remove(), and find() methods are used to manage this list.
The hasListeners() method determines whether any objects are listening for matrix-model events. The dispatch() method sends a matrix-model event to all listeners.
MatrixModelMulticaster is not required to synchronize its access of the array of listeners because all changes are made to a copy of the original list.
public final synchronized void add(borland.jbcl.model.MatrixModelListener listener)Adds an object to the array of listeners.
Parameters:
public final void dispatch(borland.jbcl.model.MatrixModelEvent e)Sends a matrix-model event to all listeners. This is a high-speed dispatcher that does not need to be synchronized. If the event ID is CONTENT_CHANGED, it calls the modelContentChanged() method of the matrix-model listeners. If the event ID is STRUCTURE_CHANGED, it calls the modelStructureChanged() method of the matrix-model listeners.
Parameters:
public int find(borland.jbcl.model.MatrixModelListener listener)Searches for the specified listener among the array of listening objects.
Parameters:
public final boolean hasListeners()Determines if there are any listeners for matrix-model events. If the method returns true, one or more listeners are present.
public final synchronized void remove(borland.jbcl.model.MatrixModelListener listener)Removes the specified listening object from the array of listeners for matrix-model events.
Parameters: