org.afcs.warts.db
Interface TabularData

All Known Implementing Classes:
DataComparison, DataSet, TableHighBitAnalysis

public interface TabularData

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.

Version:
Last Modified 17 September 2003
Author:
Warren Hedley ( whedley at sdsc dot edu )

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

getNumRows

public int getNumRows()
Returns the number of rows in the dataset.

Returns:
The number of rows in the dataset.

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Returns the value at the specified row and column in the dataset.

Parameters:
rowIndex - The row to return data from.
columnIndex - The column to return data from.
Returns:
The value at the specified row and column in the dataset.

getTableDescription

public TableDescription getTableDescription()
Returns the description of the table from which the dataset came. From this description it should be possible to obtain the number of columns, and the name of each column.

Returns:
The description of the table from which the dataset came.