Interface ScriptTableModel
- All Superinterfaces:
TableModel
- All Known Implementing Classes:
AbstractScriptTableModel,ListScriptTableModel,ResultListingDataSource,ResultListingTableModel
Model for a scripted table. The values for each
column are controlled by a script.
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> getColumnClass(int col) Get the class for the specified columnintReturn the number of columnsgetColumnName(int col) Get the name of the specified columngetColumnScript(int col) Get the script for the given column.getMappingsAt(int row, int col) Variable mapping for the given cell.intReturn the number of rowsgetValueAt(int row, int col) Get value at given row,colMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
getRowCount
int getRowCount()Return the number of rows- Specified by:
getRowCountin interfaceTableModel- Returns:
- number of row in the table
-
getColumnCount
int getColumnCount()Return the number of columns- Specified by:
getColumnCountin interfaceTableModel- Returns:
- number of columns
-
getColumnClass
Get the class for the specified column- Specified by:
getColumnClassin interfaceTableModel- Parameters:
col- the column index- Returns:
- the class for the specified column
-
getColumnName
Get the name of the specified column- Specified by:
getColumnNamein interfaceTableModel- Parameters:
col- the column index- Returns:
- the title of the specified column.
-
getColumnScript
Get the script for the given column.- Parameters:
col-- Returns:
- script for the specified column index
-
getValueAt
Get value at given row,col- Specified by:
getValueAtin interfaceTableModel- Parameters:
row-col-- Returns:
- value for the specified cell
-
getMappingsAt
-