|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The TabularData interface is implemented by classes that contain some tabular data and a table description that describes the table from which the data came.
The TabularDataTableModel
class can be used to adapt classes that implement this interface to Swing's
TableModel
interface, and they can then be used as the basis
of JTables.
LICENSE: This code is released to the public domain and may be used for any purpose whatsoever without permission or acknowledgment.
Method Summary | |
int |
getNumRows()
Returns the number of rows in the dataset. |
TableDescription |
getTableDescription()
Returns the description of the table from which the dataset came. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value at the specified row and column in the dataset. |
Method Detail |
public int getNumRows()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- The row to return data from.columnIndex
- The column to return data from.
public TableDescription getTableDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |