Class SoundingTable.SoundingTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
ucar.unidata.idv.control.SoundingTable.SoundingTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
SoundingTable

public class SoundingTable.SoundingTableModel extends AbstractTableModel
The sounding table model class
Author:
IDV Development Team
See Also:
  • 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

      public String getColumnName(int col)
      Get name of column
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      col - column number
      Returns:
      name of column
    • getValueAt

      public Object getValueAt(int row, int col)
      Get value at column/row
      Parameters:
      row - the row
      col - the column
      Returns:
      the value
    • getColumnClass

      public Class getColumnClass(int c)
      JTable uses this method to determine the default renderer editor for each cell.
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
      Parameters:
      c - column number
      Returns:
      the Class