|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColumnTemplateTableInterface
Defines an interface for modifying column template tables. Column template tables are tables where the set of row classes defines a template for each column. In other words, the class of each cell is restricted to the class, or a subclass, of its corresponding row. A transposed SAS data set is an example of such a table.
RowTemplateTableInterface
,
FreeformTableInterface
Field Summary | |
---|---|
static int |
DEFAULT_INDEX
Default index constant. |
Method Summary | |
---|---|
void |
addColumn(int index)
Adds a default column. |
void |
addColumn(int index,
java.lang.Object[] values)
Adds a column. |
void |
addRow(int index,
java.lang.Class cellClass,
java.lang.Object defaultValue)
Adds a row. |
void |
deleteColumn(int index)
Deletes a column. |
void |
deleteRow(int index)
Deletes a row. |
java.lang.Object |
getRowDefaultValue(int index)
Returns the default value associated with a row. |
java.lang.Object[] |
getRowDefaultValues(int startIndex,
int count)
Returns the default values associated with a range of rows. |
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. |
boolean |
isRowsRedefinable()
Returns the value of the rowsRedefinable property. |
void |
setRowClass(int index,
java.lang.Class newValue)
Sets the class of a row. |
void |
setRowDefaultValue(int index,
java.lang.Object newValue)
Sets the default value associated with a row. |
Methods inherited from interface com.sas.table.StaticColumnTemplateTableInterface |
---|
getRowClass, getRowClasses |
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 |
Field Detail |
---|
static final int DEFAULT_INDEX
Method Detail |
---|
void addColumn(int index) throws com.sas.table.TableException
Some implementations may not allow columns to be added. This can be determined through isColumnsExtendable. Some implementations may allow columns to be added, but not inserted; check isColumnsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the column; columns already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new column is
implementation defined, but should be at the end if possible.
TableException
- Provides a catch-all for all non-RuntimeExceptions.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. Some implementations may allow columns to be added, but not inserted; check isColumnsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the column; columns already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new column is
implementation defined, but should be at the end if possible.values
- The values for each of the column's cells. If values is null, each
cell will be assigned its corresponding row's default value.
TableException
- Provides a catch-all for all non-RuntimeExceptions.void addRow(int index, java.lang.Class cellClass, java.lang.Object defaultValue) throws com.sas.table.TableException
Some implementations may not allow rows to be added. This can be determined through isRowsExtendable. Some implementations may allow rows to be added, but not inserted; check isRowsInsertable. If this is the case, only DEFAULT_INDEX can be specified for index.
index
- The one-based position at which to insert the row; rows already
at or above that position will be shifted-up.
If DEFAULT_INDEX is specified the position of the new row is
implementation defined, but should be at the end if possible.cellClass
- The class of the row's cells.defaultValue
- The default value for 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.java.lang.Object getRowDefaultValue(int index) throws com.sas.table.TableException
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.java.lang.Object[] getRowDefaultValues(int startIndex, int count) throws com.sas.table.TableException
startIndex
- A one-based index which identifies the start of the range.count
- The number of default values to return; defines the extent of the
range.
TableException
- Provides a catch-all for all non-RuntimeExceptions.
java.lang.IndexOutOfBoundsException
- Thrown if startIndex or count is negative, zero, or greater than the
number of rows except when getRowCount has returned -1. In
that case, the implementation should return an array whose length
is less than count and the caller should be prepared for this.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.boolean isRowsRedefinable() throws com.sas.table.TableException
TableException
- Provides a catch-all for all non-RuntimeExceptions.void setRowDefaultValue(int index, java.lang.Object newValue) throws com.sas.table.TableException
index
- A one-based index that identifies the row.newValue
- The new defaultValue to associate with 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.void setRowClass(int index, java.lang.Class newValue) throws com.sas.table.TableException
Some implementations may not allow rows to be redefined. This can be determined through isRowsRedefinable.
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.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |