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