com.ptc.wgmecad.table
Class DesignExTableModel

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

public class DesignExTableModel
extends TableMdl

See Also:
Serialized Form

Field Summary
private  CCAWGMMain ccawgm
           
private static Class[] colClass
           
private  Grid grid
           
(package private) static org.apache.log4j.Logger logger
           
 
Fields inherited from class com.ptc.wgmecad.table.TableMdl
argReg
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DesignExTableModel(CCAWGMMain ccawgm, ArgumentRegister argReg, Grid grid)
           
DesignExTableModel(CCAWGMMain ccawgm, ArgumentRegister argReg, Grid grid, DesignAll[] designs)
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
private static Object[][] getExpandedQueryResults(DesignAll[] queryDsns)
           
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.TableMdl
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

colClass

private static final Class[] colClass

ccawgm

private CCAWGMMain ccawgm

grid

private Grid grid

logger

static org.apache.log4j.Logger logger
Constructor Detail

DesignExTableModel

public DesignExTableModel(CCAWGMMain ccawgm,
                          ArgumentRegister argReg,
                          Grid grid,
                          DesignAll[] designs)
                   throws WindchillServerNotSpecifiedException,
                          UnableToCreateClientInterfaceException,
                          QueryDesignFailureException

DesignExTableModel

public DesignExTableModel(CCAWGMMain ccawgm,
                          ArgumentRegister argReg,
                          Grid grid)
Method Detail

getExpandedQueryResults

private static Object[][] getExpandedQueryResults(DesignAll[] queryDsns)

onTableModelUpdate

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

getColumnClass

public Class getColumnClass(int columnIndex)

updateArgumentMapFromModel

public void updateArgumentMapFromModel()
Description copied from class: TableMdl
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 TableMdl