borland Packages Class Hierarchy jbcl.model Package Index
BasicMatrixSelection component
java.lang.Object
+----borland.jbcl.model.BasicSelection
+----borland.jbcl.model.BasicMatrixSelection
About the BasicMatrixSelection component
Variables Constructors Properties Methods Event Listeners
Implements MatrixSelection, WritableMatrixSelection, Serializable
BasicMatrixSelection provides a simple implementation of the WritableMatrixSelection interface, and provides support for the selection of multiple locations within the matrix.
BasicMatrixSelection variables
BasicMatrixSelection constructors
BasicMatrixSelection properties
*Read-only properties **Write-only properties
Properties implemented in this class
BasicMatrixSelection methods
Methods implemented in this class
- add(borland.jbcl.model.MatrixLocation)
- add(borland.jbcl.model.MatrixLocation[])
- add(int, int)
- addRange(borland.jbcl.model.MatrixLocation, borland.jbcl.model.MatrixLocation)
- addRange(int, int, int, int)
- contains(borland.jbcl.model.MatrixLocation)
- contains(int, int)
- enableSelectionEvents(boolean)
- processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent)
- remove(borland.jbcl.model.MatrixLocation)
- remove(borland.jbcl.model.MatrixLocation[])
- remove(int, int)
- removeAll()
- removeRange(borland.jbcl.model.MatrixLocation, borland.jbcl.model.MatrixLocation)
- removeRange(int, int, int, int)
- set(borland.jbcl.model.MatrixLocation[])
BasicMatrixSelection event listeners
BasicMatrixSelection constructors
BasicMatrixSelection()
public BasicMatrixSelection()
Constructs a BasicMatrixSelection object.
BasicMatrixSelection(borland.jbcl.model.MatrixLocation[])
public BasicMatrixSelection(borland.jbcl.model.MatrixLocation[] newSet)
Constructs a BasicMatrixSelection object using an array of MatrixLocation objects passed to the constructor to set the set of selected locations.
Parameters:
- newSet
- The set of locations that becomes set of selected locations.
BasicMatrixSelection properties
all
public MatrixLocation[] getAll()
Returns all the selected locations in an array of MatrixLocation objects.
BasicMatrixSelection methods
processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent)
protected void processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent e)
If a matrix-selection event has occurred and their are listeners for the event, processSelectionEvent() dispatches the event object to all listeners of matrix-selection events.
Parameters:
- e
- The matrix-selection event object that is passed to the listeners.
BasicMatrixSelection event listeners
This component is a source for the following event sets.
For information on the JBCL event sets, see Events in JBCL.
selection
public void addSelectionListener(borland.jbcl.model.MatrixSelectionListener listener)
public void removeSelectionListener(borland.jbcl.model.MatrixSelectionListener listener)