public class Grid
extends java.lang.Object
Constructor and Description |
---|
Grid(GridEditorInput input)
The default constructor for a Grid model.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Cell> |
getCells()
Gets the list of Cells in the grid.
|
java.lang.String |
getColumnLabel(int column)
Gets the column label for a particular column.
|
int |
getColumns()
Gets the number of columns in the grid.
|
java.lang.String |
getRowLabel(int row)
Gets the row label for a particular row.
|
int |
getRows()
Gets the number of rows in the grid.
|
java.util.BitSet |
getSelectedCells()
Gets the set of selected Cells in the grid.
|
public Grid(GridEditorInput input)
input
- A GridEditorInput used to validate the parameters for the
creation of a Grid model.public java.util.List<Cell> getCells()
public int getRows()
public int getColumns()
public java.lang.String getRowLabel(int row)
row
- The index of the row in question.public java.lang.String getColumnLabel(int column)
column
- The index of the column in question.public java.util.BitSet getSelectedCells()