borland Packages  Class Hierarchy  jbcl.model Package  Index 

MultiRowMatrixSelection component

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

About the MultiRowMatrixSelection component

Constructors  Properties  Methods  Event Listeners

Implements MatrixSelection, WritableMatrixSelection, Serializable

MultiRowMatrixSelection implements WritableMatrixSelection and allows a multiple rows to be selected at a time.

All of the selected locations are contained in the all property and the number of selected locations are held in the count property. The maxColumns property contains the maximum number of columns the selection can contain.


MultiRowMatrixSelection constructors

MultiRowMatrixSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

MultiRowMatrixSelection methods

Methods implemented in this class

Methods implemented in java.lang.Object

MultiRowMatrixSelection event listeners


MultiRowMatrixSelection constructors

MultiRowMatrixSelection()

  public MultiRowMatrixSelection()
Creates a MultiRowMatrixSelection class.

MultiRowMatrixSelection(int)

  public MultiRowMatrixSelection(int maxColumns)
Creates a MultiRowMatrixSelection class that contains a maximum number of columns.

Parameters:

maxColumns
The maximum number of columns you want selectable in the matrix.

MultiRowMatrixSelection(int, borland.jbcl.model.MatrixLocation[])

  public MultiRowMatrixSelection(int maxColumns, borland.jbcl.model.MatrixLocation[] selection)
Creates a MultiRowMatrixSelection class that specifies a maximum number of columns that can be selected and an array of selected matrix locations.

Parameters:

maxColumns
The maximum number of columns that can be selected.
selection
The array of selected cells in the matrix.

MultiRowMatrixSelection(int, int[])

  public MultiRowMatrixSelection(int maxColumns, int[] rows)
Creates a MultiRowMatrixSelection class that contains a maximum number of columns that can be selected and an array of selected rows.

Parameters:

maxColumns
The maximum number of columns that can be selected.
rows
The array of selected rows in the matrix.

MultiRowMatrixSelection properties

all

 public MatrixLocation[] getAll()
Returns all the selected cells as an array of MatrixLocations.

count

 public int getCount()
Returns the number of selected cells.

maxColumns

 public int getMaxColumns()
 public void setMaxColumns(int maxColumns)
Determines the maximum number of selectable columns in the matrix and sends a SelectionEvent.SELECTION_CHANGED event to all listeners.

MultiRowMatrixSelection methods

processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent)

  protected void processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent e)
Sends SelectionEvent.SELECTION_CHANGED to all registered listeners for this event.

MultiRowMatrixSelection 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)