Package ca.phon.script.scripttable
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 columnint
Return 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.int
Return 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:
getRowCount
in interfaceTableModel
- Returns:
- number of row in the table
-
getColumnCount
int getColumnCount()Return the number of columns- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- number of columns
-
getColumnClass
Get the class for the specified column- Specified by:
getColumnClass
in interfaceTableModel
- Parameters:
col
- the column index- Returns:
- the class for the specified column
-
getColumnName
Get the name of the specified column- Specified by:
getColumnName
in 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:
getValueAt
in interfaceTableModel
- Parameters:
row
-col
-- Returns:
- value for the specified cell
-
getMappingsAt
Variable mapping for the given cell.- Parameters:
row
-col
-- Returns:
- the column mapping for the specified cell
-