Package ucar.unidata.idv.control
Class SoundingTable.SoundingTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
ucar.unidata.idv.control.SoundingTable.SoundingTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
SoundingTable
The sounding table model class
- Author:
- IDV Development Team
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass
(int c) JTable uses this method to determine the default renderer editor for each cell.int
number of columnsgetColumnName
(int col) Get name of columnint
Get number of rowsgetValueAt
(int row, int col) Get value at column/rowMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
getColumnCount
public int getColumnCount()number of columns- Returns:
- number of columns
-
getRowCount
public int getRowCount()Get number of rows- Returns:
- Number of rows
-
getColumnName
Get name of column- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
col
- column number- Returns:
- name of column
-
getValueAt
Get value at column/row- Parameters:
row
- the rowcol
- the column- Returns:
- the value
-
getColumnClass
JTable uses this method to determine the default renderer editor for each cell.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
c
- column number- Returns:
- the Class
-