com.ptc.wgmecad.table
Class ExternalFunctionTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjavax.swing.table.DefaultTableModel
          extended bycom.ptc.wgmecad.table.TableMdlSR
              extended bycom.ptc.wgmecad.table.ExternalFunctionTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ExternalFunctionTableModel
extends TableMdlSR

See Also:
Serialized Form

Field Summary
static int ACTION_COL
           
private static Class[] colClass
           
private static String[] colNames
           
static int ENABLE_COL
           
static int EXE_COL
           
static int HOOKARG_COL
           
(package private) static org.apache.log4j.Logger logger
           
static int WHEN_COL
           
 
Fields inherited from class com.ptc.wgmecad.table.TableMdlSR
argReg
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ExternalFunctionTableModel(SecondaryArgumentRegister sargReg)
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
protected  void onTableModelUpdate(TableModelEvent e)
           
 void updateArgumentMapFromModel()
          removes all current hook arguments from the arg map, and dumps the current contens of the table model into the map.
 
Methods inherited from class com.ptc.wgmecad.table.TableMdlSR
setValueAt
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger

colNames

private static final String[] colNames

colClass

private static final Class[] colClass

ENABLE_COL

public static final int ENABLE_COL
See Also:
Constant Field Values

ACTION_COL

public static final int ACTION_COL
See Also:
Constant Field Values

WHEN_COL

public static final int WHEN_COL
See Also:
Constant Field Values

EXE_COL

public static final int EXE_COL
See Also:
Constant Field Values

HOOKARG_COL

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

ExternalFunctionTableModel

public ExternalFunctionTableModel(SecondaryArgumentRegister sargReg)
Method Detail

getColumnClass

public Class getColumnClass(int columnIndex)

onTableModelUpdate

protected void onTableModelUpdate(TableModelEvent e)
Specified by:
onTableModelUpdate in class TableMdlSR

updateArgumentMapFromModel

public void updateArgumentMapFromModel()
removes all current hook arguments from the arg map, and dumps the current contens of the table model into the map. This assumes that the EXE_COL contains the correct hook arguments. Note that this removes any persistence data for the hook arguments - they will all be persisted. The rationale is that once the user messes with it in the GUI, they are setting up longer term settings.

Specified by:
updateArgumentMapFromModel in class TableMdlSR