org.opensha.sha.cybershake.gui
Class PeakAmpsTableModel

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

public class PeakAmpsTableModel
extends AbstractTableModel

See Also:
Serialized Form

Field Summary
static int NUM_COLUMNS
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PeakAmpsTableModel(DBAccess db)
           
 
Method Summary
 int deleteAmps(CybershakeRun record)
           
 CybershakeRun getAmpsAtRow(int row)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 void loadCount(int row)
           
 void reloadAmps()
           
 
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

PeakAmpsTableModel

public PeakAmpsTableModel(DBAccess db)
Method Detail

reloadAmps

public void reloadAmps()

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

loadCount

public void loadCount(int row)

deleteAmps

public int deleteAmps(CybershakeRun record)

getColumnName

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

getAmpsAtRow

public CybershakeRun getAmpsAtRow(int row)

getValueAt

public Object getValueAt(int row,
                         int col)