borland Packages  Class Hierarchy  jbcl.model Package  Index 

RowMatrixSelection component

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

About the RowMatrixSelection component

Constructors  Properties  Methods  Event Listeners

Implements MatrixSelection, WritableMatrixSelection, Serializable

RowMatrixSelection implements the WritableMatrixSelection interface, allowing a single row 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.


RowMatrixSelection constructors

RowMatrixSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

RowMatrixSelection methods

Methods implemented in this class

Methods implemented in java.lang.Object

RowMatrixSelection event listeners


RowMatrixSelection constructors

RowMatrixSelection()

  public RowMatrixSelection()
Constructs a RowMatrixSelection object.

RowMatrixSelection(int)

  public RowMatrixSelection(int maxColumns)
Constructs a RowMatrixSelection object and specifies the maximum number of columns that can be selected within the row.

Parameters:

maxColumns
The maximum number of columns that can be selected in the row.

RowMatrixSelection(int, int)

  public RowMatrixSelection(int maxColumns, int row)
Constructs a RowMatrixSelection object, specifying the specifc row in the matrix and the maximum number of columns that can be selected in that row.

Parameters:

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

RowMatrixSelection properties

all

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

count

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

maxColumns

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

Parameters:

maxColumns
The maximum number of columns that can be selected in the row.

RowMatrixSelection methods

processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent)

  protected void processSelectionEvent(borland.jbcl.model.MatrixSelectionEvent e)
If a row-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.

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