hep.wired.variable
Class VariableTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by hep.wired.util.SortableListTableModel
          extended by hep.wired.variable.VariableTableModel
All Implemented Interfaces:
Serializable, EventListener, ChangeListener, TableModel, org.freehep.swing.table.SortableTableModel

public class VariableTableModel
extends SortableListTableModel
implements ChangeListener

Version:
$Id: VariableTableModel.java 13931 2012-02-09 00:58:03Z onoprien $
Author:
Mark Donszelmann
See Also:
Serialized Form

Field Summary
static int NAME
           
static int UNIT
           
static int VALUE
           
 
Fields inherited from class hep.wired.util.SortableListTableModel
keys
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Fields inherited from interface org.freehep.swing.table.SortableTableModel
UNSORTED
 
Constructor Summary
VariableTableModel()
           
VariableTableModel(List variables)
           
 
Method Summary
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)
           
 
Methods inherited from class hep.wired.util.SortableListTableModel
fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnCount, getColumnName, getKeys, getSortOnColumn, isSortAscending, setKeys, sort
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
 

Field Detail

NAME

public static final int NAME
See Also:
Constant Field Values

VALUE

public static final int VALUE
See Also:
Constant Field Values

UNIT

public static final int UNIT
See Also:
Constant Field Values
Constructor Detail

VariableTableModel

public VariableTableModel()

VariableTableModel

public VariableTableModel(List variables)
Method Detail

setVariables

public void setVariables(List newVariableList)

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class SortableListTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

compareKeys

protected int compareKeys(Object key1,
                          Object key2,
                          int col,
                          boolean ascending)
Specified by:
compareKeys in class SortableListTableModel

changed

protected void changed()

stateChanged

public void stateChanged(ChangeEvent event)
Specified by:
stateChanged in interface ChangeListener


Copyright © 1996-2013 FreeHEP. All Rights Reserved.