borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----borland.jbcl.model.RowMatrixSelection
Constructors Properties Methods Event Listeners
Implements MatrixSelection, WritableMatrixSelection
RowMatrixSelection implements the WritableMatrixSelection interface, allowing a single row to be selected at a time.
public RowMatrixSelection()Constructs a RowMatrixSelection object.
public RowMatrixSelection(int maxColumns)Constructs a RowMatrixSelection object and specifies the maximum number of columns that can be selected within the row.
Parameters:
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:
public MatrixLocation[] getAll()A read-only property that returns the locations within the selected row to an array of MatrixLocation objects.
public int getCount()Returns the number of selected locations within the row.
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:
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:
public void addSelectionListener(borland.jbcl.model.MatrixSelectionListener listener) public void removeSelectionListener(borland.jbcl.model.MatrixSelectionListener listener)