Package uk.ac.starlink.table.gui
Class MapGroupTableModel<K,V>
java.lang.Object
javax.swing.table.AbstractTableModel
uk.ac.starlink.table.gui.MapGroupTableModel<K,V>
- All Implemented Interfaces:
Serializable,TableModel
Provides a TableModel view of a MapGroup object.
For performance reasons this implementation takes a snapshot of
the MapGroup at construction time rather than treating it as a
live object.
- Author:
- Mark Taylor (Starlink)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionMapGroupTableModel(uk.ac.starlink.util.MapGroup<K, V> mapgroup) Constructs a TableModel from a given MapGroup. -
Method Summary
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
-
MapGroupTableModel
Constructs a TableModel from a given MapGroup.- Parameters:
mapgroup- group to snapshot
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-