Package noaa.coastwatch.gui.open
Class DataVariableTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
noaa.coastwatch.gui.open.DataVariableTableModel
- All Implemented Interfaces:
Serializable
,TableModel
Deprecated.
The
DataVariableTableModel
class models the
information in a list of DataVariable
objects. It contains a number of columns including the variable
name and units.- Since:
- 3.2.0
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new table model with no data.DataVariableTableModel
(List<DataVariable> variableList) Deprecated.Creates a new table model using the varible list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.Clears the variable list so that no data is contained.int
Deprecated.Gets the number of table columns.getColumnName
(int column) Deprecated.Gets the table column name.int
Deprecated.Gets the number of table rows.getValueAt
(int row, int column) Deprecated.Gets the table data value.getVariable
(int row) Deprecated.Gets the variable at the specified row.static void
Deprecated.Tests this class.void
setVariableList
(List<DataVariable> variableList) Deprecated.Sets the variable list for this model.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
DataVariableTableModel
public DataVariableTableModel()Deprecated.Creates a new table model with no data. -
DataVariableTableModel
Deprecated.Creates a new table model using the varible list.
-
-
Method Details
-
clear
public void clear()Deprecated.Clears the variable list so that no data is contained. -
setVariableList
Deprecated.Sets the variable list for this model. -
getRowCount
public int getRowCount()Deprecated.Gets the number of table rows. -
getColumnCount
public int getColumnCount()Deprecated.Gets the number of table columns. -
getValueAt
Deprecated.Gets the table data value. -
getVariable
Deprecated.Gets the variable at the specified row. -
getColumnName
Deprecated.Gets the table column name.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
main
Deprecated.Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-