Package ca.phon.script.scripttable
Class ListScriptTableModel<T>
java.lang.Object
javax.swing.table.AbstractTableModel
ca.phon.script.scripttable.AbstractScriptTableModel
ca.phon.script.scripttable.ListScriptTableModel<T>
- All Implemented Interfaces:
ScriptTableModel
,Serializable
,TableModel
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:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMappingsAt
(int row, int col) Variable mapping for the given cell.int
Return the number of rowsReturn row dataMethods inherited from class ca.phon.script.scripttable.AbstractScriptTableModel
createCellScope, getColumnClass, getColumnCount, getColumnName, getColumnScript, getValueAt, readXML, removeAllColumns, setColumnMappings, setColumnScript, setColumnScript, writeXML
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
ListScriptTableModel
-
-
Method Details
-
getRowCount
public int getRowCount()Description copied from interface:ScriptTableModel
Return the number of rows- Returns:
- number of row in the table
-
getMappingsAt
Description copied from interface:ScriptTableModel
Variable mapping for the given cell.- Specified by:
getMappingsAt
in interfaceScriptTableModel
- Overrides:
getMappingsAt
in classAbstractScriptTableModel
- Returns:
- the column mapping for the specified cell
-
getRowData
Return row data- Returns:
- row data
-