|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableInterface
Defines an interface for modifying a table's cells.
ColumnLabelInterface
,
RowLabelInterface
Method Summary | |
---|---|
boolean |
isCellsModifiable()
Indicates whether cells can be modified. |
boolean |
isMultipleColumnUpdateSupported()
Indicates whether more than one column can be simultaneously updated. |
boolean |
isMultipleRowUpdateSupported()
Indicates whether more than one row can be simultaneously updated. |
void |
setCell(int rowIndex,
int columnIndex,
java.lang.Object value)
Specifies the value of a cell. |
void |
setCells(int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount,
java.lang.Object[][] values)
Specifies the values for a block of cells. |
void |
setColumn(int index,
java.lang.Object[] values)
Specifies the values of all the cells in a column. |
void |
setRow(int index,
java.lang.Object[] values)
Specifies the values of all the cells in a row. |
Methods inherited from interface com.sas.table.StaticTableInterface |
---|
countColumns, countRows, getCell, getCellClass, getCellClasses, getCells, getColumn, getColumnCount, getRow, getRowCount |
Method Detail |
---|
boolean isCellsModifiable()
true
if cells can be modified,
and false
otherwise.boolean isMultipleRowUpdateSupported()
false
, setColumn() can not be used, nor can setCells()
be called with a range that spans multiple rows.
true
if multiple rows can be simultaneously updated,
and false
otherwise.boolean isMultipleColumnUpdateSupported()
false
, setRow() can not be used, nor can setCells()
be called with a range that spans multiple columns.
true
if multiple columns can be simultaneously updated,
and false
otherwise.void setCell(int rowIndex, int columnIndex, java.lang.Object value) throws com.sas.table.TableException
rowIndex
- A one-based index that identifies the cell's row.columnIndex
- A one-based index that identifies the cell's column.value
- The cell's new value.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException
- Thrown if rowIndex is negative, zero, or greater than the
number of rows.
Thrown if columnIndex is negative, zero, or greater than the
number of columns.setCells(int, int, int, int, java.lang.Object[][])
,
setColumn(int, java.lang.Object[])
,
setRow(int, java.lang.Object[])
void setCells(int startRowIndex, int startColumnIndex, int rowCount, int columnCount, java.lang.Object[][] values) throws com.sas.table.TableException
new Object[rowCount][colCount]
, with
values[0][0]
containing the value of the cell at
(startRowIndex, startColumnIndex).
Usually, the implementation will require that the class of each
new value match what's returned by getCellClass() for the corresponding
cell, but a common exception to
this will be implementations that allow values to be instances of
com.sas.MissingValues.
startRowIndex
- A one-based index that identifies the start of the row range.startColumnIndex
- A one-based index that identifies the start of the column range.rowCount
- The number of rows in the row range.columnCount
- The number of columns in the column range.values
- The new values for each cell in the block.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException
- Thrown if startRowIndex or rowCount is negative,
zero, or greater than the number of rows.
Thrown if startColumnIndex or columnCount is negative,
zero, or greater than the number of columns.setCell(int, int, java.lang.Object)
void setColumn(int index, java.lang.Object[] values) throws com.sas.table.TableException
index
- A one-based index that identifies the column.values
- The new values for each cell in the column.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of columns.setCell(int, int, java.lang.Object)
void setRow(int index, java.lang.Object[] values) throws com.sas.table.TableException
index
- A one-based index that identifies the row.values
- The new values for each cell in the row.
TableException
- Thrown if the query can not be satisfied (e.g. i/o-failure).
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of rows.setCell(int, int, java.lang.Object)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |