public class VariableTableModel extends SortableListTableModel implements ChangeListener
Modifier and Type | Field and Description |
---|---|
static int |
NAME |
static int |
UNIT |
static int |
VALUE |
keys
listenerList
Constructor and Description |
---|
VariableTableModel() |
VariableTableModel(List variables) |
Modifier and Type | Method and Description |
---|---|
protected void |
changed() |
protected int |
compareKeys(Object key1,
Object key2,
int col,
boolean ascending) |
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
boolean |
isCellEditable(int row,
int col) |
void |
setValueAt(Object value,
int row,
int col) |
void |
setVariables(List newVariableList) |
void |
stateChanged(ChangeEvent event) |
fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnCount, getColumnName, getKeys, getSortOnColumn, isSortAscending, setKeys, sort
addTableModelListener, findColumn, fireTableChanged, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, removeTableModelListener
public static final int NAME
public static final int VALUE
public static final int UNIT
public VariableTableModel()
public VariableTableModel(List variables)
public void setVariables(List newVariableList)
public int getRowCount()
getRowCount
in interface TableModel
getRowCount
in class SortableListTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
protected int compareKeys(Object key1, Object key2, int col, boolean ascending)
compareKeys
in class SortableListTableModel
protected void changed()
public void stateChanged(ChangeEvent event)
stateChanged
in interface ChangeListener
Copyright © 1996-2014 FreeHEP. All Rights Reserved.