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 index
    void deleteRow​(int row)
    Deletes the row at the given index
    int getColumnCount()
    Returns the total number of columns in the table
    TableRow getRow​(int row)
    Returns an object containing all values for the row at the given index
    int getRowCount()
    Returns the total number of rows in the table
    TableMetaData getTableMetaData()
    Returns an object which describes the fields/etc for this table
    java.lang.Object getValue​(int row, int col)
    Returns the value located at the given column & row
    void 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

      TableRow getRow​(int row)
      Returns an object containing all values for the row at the given index
      Parameters:
      row - row index (starts with zero)
      Returns:
      corresponding row
    • addRow

      TableRow addRow​(int row)
      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