Package hec.map.inundation
Class EditingInundationGroupTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
rma.swing.table.AbstractRmaTableModel
hec.map.inundation.InundationGroupTableModel
hec.map.inundation.EditingInundationGroupTableModel
- All Implemented Interfaces:
InundationConst
,Serializable
,TableModel
,RmaTableModelInterface
public class EditingInundationGroupTableModel
extends InundationGroupTableModel
implements InundationConst
- 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 hec.map.inundation.InundationConst
DEFAULT_EXCEEDENCE_PROBABILITIES, EXCEEDENCE_PROBABILITY, MINIMUM_NUMBER_OF_EXCEEDENCE_PROBABILITIES, REQUIRED_EXCEEDENCE_PROBABILITIES, REQUIRED_PARAMETERS, WATER_SURFACE_ELEVATION
Fields inherited from interface rma.swing.table.RmaTableModelInterface
UNDEF_COLUMN_PARAM_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValueAt
(int rowIndex, int columnIndex) Returns the value at a given row/column location.protected void
boolean
isCellEditable
(int rowIndex, int columnIndex) boolean
removeExceedenceProbability
(int rowIdx) void
saveData()
void
void
setValueAt
(Object aValue, int rowIndex, int columnIndex) Methods inherited from class hec.map.inundation.InundationGroupTableModel
getColumnClass, getInundationGroup, getRowCount, setInundationGroup
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
-
EditingInundationGroupTableModel
-
-
Method Details
-
setData
- Specified by:
setData
in classInundationGroupTableModel
-
saveData
public void saveData()- Specified by:
saveData
in classInundationGroupTableModel
-
initializeComponents
protected void initializeComponents()- Specified by:
initializeComponents
in classInundationGroupTableModel
-
addExceedenceProbability
-
removeExceedenceProbability
public boolean removeExceedenceProbability(int rowIdx) -
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 classInundationGroupTableModel
- Parameters:
rowIndex
- the row to look for the value in.columnIndex
- the column to look for the value in.
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classInundationGroupTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Specified by:
setValueAt
in classInundationGroupTableModel
-