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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MapGroupTableModel(MapGroup mapgroup)
          Constructs a TableModel from a given MapGroup.
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int icol)
           
 int getRowCount()
           
 Object getValueAt(int irow, int icol)
           
 
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
 

Constructor Detail

MapGroupTableModel

public MapGroupTableModel(MapGroup mapgroup)
Constructs a TableModel from a given MapGroup.

Parameters:
mapgroup - group to snapshot
Method Detail

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

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.