org.opensha.sha.cybershake.gui
Class SitesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.opensha.sha.cybershake.gui.SitesTableModel
All Implemented Interfaces:
Serializable, TableModel

public class SitesTableModel
extends AbstractTableModel

See Also:
Serialized Form

Field Summary
static int NUM_COLUMNS
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SitesTableModel(DBAccess db)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int col)
           
 int getRowCount()
           
 CybershakeSite getSiteAtRow(int row)
           
 Object getValueAt(int row, int col)
           
 void reloadSites()
           
 
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
 

Field Detail

NUM_COLUMNS

public static int NUM_COLUMNS
Constructor Detail

SitesTableModel

public SitesTableModel(DBAccess db)
Method Detail

reloadSites

public void reloadSites()

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int col)

getSiteAtRow

public CybershakeSite getSiteAtRow(int row)