Interface Table
public interface Table
Interface for a Table with multiple rows/columns.
-
Method Summary
Modifier and Type Method Description TableRow
addRow(int row)
Adds a new, empty row at the given indexvoid
deleteRow(int row)
Deletes the row at the given indexint
getColumnCount()
Returns the total number of columns in the tableTableRow
getRow(int row)
Returns an object containing all values for the row at the given indexint
getRowCount()
Returns the total number of rows in the tableTableMetaData
getTableMetaData()
Returns an object which describes the fields/etc for this tablejava.lang.Object
getValue(int row, int col)
Returns the value located at the given column & rowvoid
setValue(int row, int col, java.lang.Object value)
Sets the value located at the given column & row
-
Method Details
-
getValue
java.lang.Object getValue(int row, int col)Returns the value located at the given column & row- Parameters:
row
- row index (starts with zero)col
- column index (starts with zero)- Returns:
- value
-
setValue
void setValue(int row, int col, java.lang.Object value)Sets the value located at the given column & row- Parameters:
row
- row index (starts with zero)col
- column index (starts with zero)
-
getRowCount
int getRowCount()Returns the total number of rows in the table -
getColumnCount
int getColumnCount()Returns the total number of columns in the table -
getRow
Returns an object containing all values for the row at the given index- Parameters:
row
- row index (starts with zero)- Returns:
- corresponding row
-
addRow
Adds a new, empty row at the given index- Parameters:
row
- row index (starts with zero)- Returns:
- row which was added so the client can set values
-
deleteRow
void deleteRow(int row)Deletes the row at the given index- Parameters:
row
- row index (starts with zero)
-
getTableMetaData
TableMetaData getTableMetaData()Returns an object which describes the fields/etc for this table
-