Class ListScriptTableModel<T>

All Implemented Interfaces:
ScriptTableModel, Serializable, TableModel

public class ListScriptTableModel<T> extends AbstractScriptTableModel
A table model that uses a list of object as row data. The following properties are supplied to each column script: * row - integer for the current row * col - integer for the current column * rowValue - value of data for row
See Also:
  • Constructor Details

    • ListScriptTableModel

      public ListScriptTableModel(List<T> rowData)
  • Method Details

    • getRowCount

      public int getRowCount()
      Description copied from interface: ScriptTableModel
      Return the number of rows
      Returns:
      number of row in the table
    • getMappingsAt

      public Map<String,Object> getMappingsAt(int row, int col)
      Description copied from interface: ScriptTableModel
      Variable mapping for the given cell.
      Specified by:
      getMappingsAt in interface ScriptTableModel
      Overrides:
      getMappingsAt in class AbstractScriptTableModel
      Parameters:
      row -
      col -
      Returns:
      the column mapping for the specified cell
    • getRowData

      public List<T> getRowData()
      Return row data
      Returns:
      row data