Interface ScriptTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
AbstractScriptTableModel, ListScriptTableModel, ResultListingDataSource, ResultListingTableModel

public interface ScriptTableModel extends TableModel
Model for a scripted table. The values for each column are controlled by a script.
  • Method Details

    • getRowCount

      int getRowCount()
      Return the number of rows
      Specified by:
      getRowCount in interface TableModel
      Returns:
      number of row in the table
    • getColumnCount

      int getColumnCount()
      Return the number of columns
      Specified by:
      getColumnCount in interface TableModel
      Returns:
      number of columns
    • getColumnClass

      Class<?> getColumnClass(int col)
      Get the class for the specified column
      Specified by:
      getColumnClass in interface TableModel
      Parameters:
      col - the column index
      Returns:
      the class for the specified column
    • getColumnName

      String getColumnName(int col)
      Get the name of the specified column
      Specified by:
      getColumnName in interface TableModel
      Parameters:
      col - the column index
      Returns:
      the title of the specified column.
    • getColumnScript

      PhonScript getColumnScript(int col)
      Get the script for the given column.
      Parameters:
      col -
      Returns:
      script for the specified column index
    • getValueAt

      Object getValueAt(int row, int col)
      Get value at given row,col
      Specified by:
      getValueAt in interface TableModel
      Parameters:
      row -
      col -
      Returns:
      value for the specified cell
    • getMappingsAt

      Map<String,Object> getMappingsAt(int row, int col)
      Variable mapping for the given cell.
      Parameters:
      row -
      col -
      Returns:
      the column mapping for the specified cell