|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FreeformTableInterface
Defines an interface for modifying freeform tables. Freeform tables are tables where each cell is independent of every other cell. This independence allows each cell to have its own class and contrasts with traditional database tables, for example (see RowTemplateTableInterface), where the class of each cell is defined by its column. Spreadsheets are often examples of freeform tables.
ColumnTemplateTableInterface
,
RowTemplateTableInterface
Method Summary | |
---|---|
void |
addColumn(int index,
java.lang.Object[] values)
Adds a column. |
void |
addRow(int index,
java.lang.Object[] values)
Adds a row. |
void |
deleteColumn(int index)
Deletes a column. |
void |
deleteRow(int index)
Deletes a row. |
boolean |
isColumnsDeletable()
Returns the value of the columnsDeletable property. |
boolean |
isColumnsExtendable()
Returns the value of the columnsExtendable property. |
boolean |
isColumnsInsertable()
Returns the value of the columnsInsertable property. |
boolean |
isRowsDeletable()
Returns the value of the rowsDeletable property. |
boolean |
isRowsExtendable()
Returns the value of the rowsExtendable property. |
boolean |
isRowsInsertable()
Returns the value of the rowsInsertable property. |
void |
setCellClass(int rowIndex,
int columnIndex,
java.lang.Class newClass)
Sets the class of a cell. |
void |
setCellClasses(int startRowIndex,
int startColumnIndex,
int rowCount,
int columnCount,
java.lang.Class[][] classes)
Sets the classes for a block of cells. |
void |
setSize(int rowCount,
int columnCount)
Sets the size of the table. |
Methods inherited from interface com.sas.table.TableInterface |
---|
isCellsModifiable, isMultipleColumnUpdateSupported, isMultipleRowUpdateSupported, setCell, setCells, setColumn, setRow |
Methods inherited from interface com.sas.table.StaticTableInterface |
---|
countColumns, countRows, getCell, getCellClass, getCellClasses, getCells, getColumn, getColumnCount, getRow, getRowCount |
Method Detail |
---|
void addColumn(int index, java.lang.Object[] values) throws com.sas.table.TableException
Some implementations may not allow columns to be added. This can be determined through isColumnsExtendable.
index
- The one-based position at which to insert the column.values
- The values for each of the column's cells.
TableException
- Provides a catch-all for all non-RuntimeExceptions.void addRow(int index, java.lang.Object[] values) throws com.sas.table.TableException
Some implementations may not allow rows to be added. This can be determined through isRowsExtendable.
index
- The one-based position at which to insert the row.values
- The values for each of the row's cells.
TableException
- Provides a catch-all for all non-RuntimeExceptions.void deleteColumn(int index) throws com.sas.table.TableException
Some implementations may not allow columns to be deleted. This can be determined through isColumnsDeletable.
index
- A one-based index that identifies the column.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of columns.void deleteRow(int index) throws com.sas.table.TableException
Some implementations may not allow rows to be deleted. This can be determined through isRowsDeletable.
index
- A one-based index that identifies the row.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if index is negative, zero, or greater than the number
of rows.boolean isColumnsDeletable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isColumnsExtendable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isColumnsInsertable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isRowsDeletable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isRowsExtendable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.boolean isRowsInsertable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.void setCellClass(int rowIndex, int columnIndex, java.lang.Class newClass) 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.newClass
- The new class to associate with the cell.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
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.void setCellClasses(int startRowIndex, int startColumnIndex, int rowCount, int columnCount, java.lang.Class[][] classes) throws com.sas.table.TableException
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.newClasses
- The new classes to associate with the cells.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if the row range extends beyond the number of available
rows or if the column range extends beyond the number of available
columns.void setSize(int rowCount, int columnCount)
rowCount
- The number of rows to create in the table.columnCount
- The number of columns to create in the table.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |