Package hec.map.inundation
Class InundationGroupTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
rma.swing.table.AbstractRmaTableModel
hec.map.inundation.InundationGroupTableModel
- All Implemented Interfaces:
Serializable
,TableModel
,RmaTableModelInterface
- Direct Known Subclasses:
EditingInundationGroupTableModel
,RenderingInundationGroupTableModel
- See Also:
-
Field Summary
Fields inherited from class rma.swing.table.AbstractRmaTableModel
m_columnNames, m_displayUnitSystem, m_gmtOffset, m_unitSystem
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
Fields inherited from interface rma.swing.table.RmaTableModelInterface
UNDEF_COLUMN_PARAM_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass
(int columnIndex) int
Returns the number of row in the table model.getValueAt
(int rowIndex, int columnIndex) Returns the value at a given row/column location.protected abstract void
boolean
isCellEditable
(int rowIndex, int columnIndex) abstract void
saveData()
abstract void
void
abstract void
setValueAt
(Object aValue, int rowIndex, int columnIndex) Methods inherited from class rma.swing.table.AbstractRmaTableModel
addColumn, addColumn, addRow, clearAll, deleteRow, getColumnCount, getColumnName, getColumnParameter, getDataVector, getDisplayUnitSystem, getGmtOffset, getRow, getUnitSystem, insertRow, insertRows, resetRowEnabled, setColEnabled, setColumnClass, setColumnNames, setColumnNames, setColumnParameters, setDisplayUnitsSystem, setRowEnabled, setUnitSystem
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
Methods inherited from interface rma.swing.table.RmaTableModelInterface
setCellEnabled
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
Constructor Details
-
InundationGroupTableModel
-
-
Method Details
-
getInundationGroup
-
setData
-
saveData
public abstract void saveData() -
setInundationGroup
-
initializeComponents
protected abstract void initializeComponents() -
getValueAt
Description copied from class:AbstractRmaTableModel
Returns the value at a given row/column location. The default method returns null. Needs to be overrridden- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classAbstractRmaTableModel
- Parameters:
rowIndex
- the row to look for the value in.columnIndex
- the column to look for the value in.
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractRmaTableModel
-
getRowCount
public int getRowCount()Description copied from class:AbstractRmaTableModel
Returns the number of row in the table model. The default method always returns 0, so this method must be overridden to return a row count other than 0.- Specified by:
getRowCount
in interfaceTableModel
- Overrides:
getRowCount
in classAbstractRmaTableModel
- Returns:
- the row count.
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractRmaTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractRmaTableModel
-