public class DataVariableTableModel
extends javax.swing.table.AbstractTableModel
DataVariableTableModel
class models the
information in a list of DataVariable
objects. It contains a number of columns including the variable
name and units.Constructor and Description |
---|
DataVariableTableModel()
Creates a new table model with no data.
|
DataVariableTableModel(java.util.List variableList)
Creates a new table model using the varible list.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the variable list so that no data is contained.
|
int |
getColumnCount()
Gets the number of table columns.
|
java.lang.String |
getColumnName(int column)
Gets the table column name.
|
int |
getRowCount()
Gets the number of table rows.
|
java.lang.Object |
getValueAt(int row,
int column)
Gets the table data value.
|
DataVariable |
getVariable(int row)
Gets the variable at the specified row.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
void |
setVariableList(java.util.List variableList)
Sets the variable list for this model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public DataVariableTableModel()
public DataVariableTableModel(java.util.List variableList)
public void clear()
public void setVariableList(java.util.List variableList)
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
public DataVariable getVariable(int row)
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception