Package uk.ac.starlink.vo
Class CapabilityTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
uk.ac.starlink.vo.CapabilityTableModel
- All Implemented Interfaces:
Serializable,TableModel
TableModel in which each row is a
RegCapabilityInterface.- Since:
- 18 Dec 2008
- Author:
- Mark Taylor
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data array for this table.intgetColumnName(int icol) intgetValueAt(int irow, int icol) voidSets the data for this table.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
CapabilityTableModel
public CapabilityTableModel()Constructor.
-
-
Method Details
-
getColumnCount
public int getColumnCount() -
getRowCount
public int getRowCount() -
getValueAt
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
setCapabilities
Sets the data for this table.- Parameters:
caps- capability array
-
getCapabilities
Returns the data array for this table.- Returns:
- capability array
-