borland Packages  Class Hierarchy  jbcl.model Package  Index 

MultiColumnMatrixSelection component

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

About the MultiColumnMatrixSelection component

Constructors  Properties  Methods  Event Listeners

Implements MatrixSelection, WritableMatrixSelection, Serializable

MultiColumnMatrixSelection implements WritableMatrixSelection allowing multiple columns 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 maxRows property contains the maximum number of rows the selection can contain.


MultiColumnMatrixSelection constructors

MultiColumnMatrixSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

MultiColumnMatrixSelection methods

Methods implemented in this class

Methods implemented in java.lang.Object

MultiColumnMatrixSelection event listeners


MultiColumnMatrixSelection constructors

MultiColumnMatrixSelection()

  public MultiColumnMatrixSelection()
Creates a MultiColumnMatrixSelection class.

MultiColumnMatrixSelection(int)

  public MultiColumnMatrixSelection(int maxRows)
Creates a MultiColumnMatrixSelection class that contains a maximum number of rows.

Parameters:

maxRows
The maximum number of rows you want selectable in the matrix.

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

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

Parameters:

maxRows
The maximum number of rows that can be selected.
selection
The array of selected cells in the matrix.

MultiColumnMatrixSelection(int, int[])

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

Parameters:

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

MultiColumnMatrixSelection 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.

maxRows

 public int getMaxRows()
 public void setMaxRows(int maxRows)
Determines the maximum number of selectable rows in the matrix and sends a SelectionEvent.SELECTION_CHANGED event to all listeners.

MultiColumnMatrixSelection 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.

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