jbcl.model Package
BasicMatrixSelection component
java.lang.Object
+----com.borland.jbcl.model.BasicSelection
+----com.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(com.borland.jbcl.model.MatrixLocation)
- add(com.borland.jbcl.model.MatrixLocation[])
- add(int, int)
- addRange(com.borland.jbcl.model.MatrixLocation, com.borland.jbcl.model.MatrixLocation)
- addRange(int, int, int, int)
- contains(com.borland.jbcl.model.MatrixLocation)
- contains(int, int)
- enableSelectionEvents(boolean)
- processSelectionEvent(com.borland.jbcl.model.MatrixSelectionEvent)
- remove(com.borland.jbcl.model.MatrixLocation)
- remove(com.borland.jbcl.model.MatrixLocation[])
- remove(int, int)
- removeAll()
- removeRange(com.borland.jbcl.model.MatrixLocation, com.borland.jbcl.model.MatrixLocation)
- removeRange(int, int, int, int)
- set(com.borland.jbcl.model.MatrixLocation[])
BasicMatrixSelection event listeners
BasicMatrixSelection constructors
BasicMatrixSelection()
public BasicMatrixSelection()
Constructs a BasicMatrixSelection
object.
BasicMatrixSelection(com.borland.jbcl.model.MatrixLocation[])
public BasicMatrixSelection(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(com.borland.jbcl.model.MatrixSelectionEvent)
protected void processSelectionEvent(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.
selection
public void addSelectionListener(MatrixSelectionListener listener)
public void removeSelectionListener(MatrixSelectionListener listener)