uk.ac.starlink.table.gui
Class MapGroupTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--uk.ac.starlink.table.gui.MapGroupTableModel
- All Implemented Interfaces:
- Serializable, TableModel
- public class MapGroupTableModel
- extends AbstractTableModel
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.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapGroupTableModel
public MapGroupTableModel(MapGroup mapgroup)
- Constructs a TableModel from a given MapGroup.
- Parameters:
mapgroup
- group to snapshot
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getValueAt
public Object getValueAt(int irow,
int icol)
getColumnName
public String getColumnName(int icol)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel