ucar.unidata.view.sounding
Class AerologicalReadoutTable.MyTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ucar.unidata.view.sounding.AerologicalReadoutTable.MyTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
AerologicalReadoutTable

protected class AerologicalReadoutTable.MyTableModel
extends AbstractTableModel

Provides support for the data model behind the table.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AerologicalReadoutTable.MyTableModel()
          Constructs from nothing.
 
Method Summary
 void addRowEntry(AerologicalReadoutTable.RowEntry entry)
          Adds a row to the model.
 int getColumnCount()
          Returns the number of columns.
 int getRowCount()
          Returns the number of rows.
 Object getValueAt(int row, int column)
          Returns the value of a cell.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AerologicalReadoutTable.MyTableModel

public AerologicalReadoutTable.MyTableModel()
Constructs from nothing.

Method Detail

getRowCount

public int getRowCount()
Returns the number of rows.

Returns:
The number of rows.

getColumnCount

public int getColumnCount()
Returns the number of columns.

Returns:
The number of columns.

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value of a cell.

Parameters:
row - The row index.
column - The column index.
Returns:
The value of the given cell.

addRowEntry

public void addRowEntry(AerologicalReadoutTable.RowEntry entry)
Adds a row to the model.

Parameters:
entry - The row to be added.