borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

ColumnMatrixSelection component

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

About the ColumnMatrixSelection component

Constructors  Properties  Methods  Event Listeners

Implements MatrixSelection, WritableMatrixSelection

ColumnMatrixSelection implements the WritableMatrixSelection interface, allowing a single column to be selected at a time.


ColumnMatrixSelection constructors

ColumnMatrixSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

ColumnMatrixSelection methods

Methods implemented in this class

Methods implemented in java.lang.Object

ColumnMatrixSelection event listeners


ColumnMatrixSelection constructors

ColumnMatrixSelection()

  public ColumnMatrixSelection()
Constructs a ColumnMatrixSelection object.

ColumnMatrixSelection(int)

  public ColumnMatrixSelection(int maxRows)
Constructs a ColumnMatrixSelection object and specifies the maximum number of rows that can be selected.

Parameters:

maxRows
The maximum number of rows that can be selected in the column.

ColumnMatrixSelection(int, int)

  public ColumnMatrixSelection(int maxRows, int column)
Constructs a ColumnMatrixSelection object, specifying the specifc column in the matrix and the maximum number of rows that can be selected in that column.

Parameters:

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

ColumnMatrixSelection properties

all

 public MatrixLocation[] getAll()
A read-only property that returns the locations within the selected column to an array of MatrixLocation objects.

count

 public int getCount()
Returns the number of selected locations within the column.

maxRows

 public int getMaxRows()
 public void setMaxRows(int maxRows)
Used to obtain and set the maximum number of rows in the selected column. When maxRows is set, the processSelectEvent() method is called.

Parameters:

maxRows
The maximum number of rows that can be selected in the column.

ColumnMatrixSelection methods

processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent)

  protected void processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent e)
If a column-matrix event occurred and there are listeners for matrix-selection events, the event object is sent to the listening objects.

Parameters:

e
The matrix-selection event object.

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