org.opensha.refFaultParamDb.gui.addEdit.deformationModel
Class DeformationModelTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by org.opensha.refFaultParamDb.gui.addEdit.deformationModel.DeformationModelTableModel
All Implemented Interfaces:
Serializable, TableModel

public class DeformationModelTableModel
extends DefaultTableModel

Deformation model table model

Author:
vipingupta
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DeformationModelTableModel(DB_AccessAPI dbConnection)
           
 
Method Summary
 Class getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 int getdeformationModelId()
           
 int getFaultSectionId(int row)
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 Object getValueForSlipAndAseismicFactor(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setDeformationModel(int deformationModelId, ArrayList faultSectionIdList)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeformationModelTableModel

public DeformationModelTableModel(DB_AccessAPI dbConnection)
Method Detail

setDeformationModel

public void setDeformationModel(int deformationModelId,
                                ArrayList faultSectionIdList)

getdeformationModelId

public int getdeformationModelId()

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel
Overrides:
getColumnCount in class DefaultTableModel

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class DefaultTableModel

getColumnName

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

getFaultSectionId

public int getFaultSectionId(int row)

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel
Overrides:
getValueAt in class DefaultTableModel

getValueForSlipAndAseismicFactor

public Object getValueForSlipAndAseismicFactor(int row,
                                               int col)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel