public interface TableDataSource
The entire contents of a table can be completely represented by implementations of this interface.
Modifier and Type | Method and Description |
---|---|
TObject |
getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
SelectableScheme |
getColumnScheme(int column)
Returns the SelectableScheme that we use as an index for rows in the
given column of this source.
|
DataTableDef |
getDataTableDef()
Returns a DataTableDef object that defines the layout of the table that
this data is in.
|
int |
getRowCount()
Returns the number of rows in this data source.
|
TransactionSystem |
getSystem()
Returns the TransactionSystem object that describes global properties
about the data source that generated this object.
|
RowEnumeration |
rowEnumeration()
Returns an iterator that is used to sequentually step through all valid
rows in this source.
|
TransactionSystem getSystem()
DataTableDef getDataTableDef()
This may return 'null' if there is no table definition.
int getRowCount()
NOTE: Returns 'n' - getCellContents(column, row) is not necessarily valid for row = [0..n]. Use 'rowEnumerator' to generate an iterator for valid row values over this data source.
RowEnumeration rowEnumeration()
Note that this object is only defined if entries in the table are not added/remove during the lifetime of this iterator. If entries are added or removed from the table while this iterator is open, then calls to 'nextRowIndex' will be undefined.
SelectableScheme getColumnScheme(int column)
ISSUE: The scheme returned here should not have the 'insert' or 'remove' methods called (ie. it should be considered immutable). Perhaps we should make a MutableSelectableScheme interface to guarentee this constraint.
TObject getCellContents(int column, int row)
Copyright © 2015. All rights reserved.