edu.udo.cs.yale.gui.templates
Class SaveAsTemplateDialog.TemplateParameterTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by edu.udo.cs.yale.gui.templates.SaveAsTemplateDialog.TemplateParameterTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
SaveAsTemplateDialog

private class SaveAsTemplateDialog.TemplateParameterTableModel
extends javax.swing.table.AbstractTableModel

A table model for operator - parameter pairs.


Field Summary
private  SaveAsTemplateDialog.OperatorParameterPair[] parameters
          0: operator, 1: parameter key
private  boolean[] selection
           
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SaveAsTemplateDialog.TemplateParameterTableModel(SaveAsTemplateDialog.OperatorParameterPair[] parameters)
           
 
Method Summary
 java.lang.Class<?> getColumnClass(int column)
          Makes sure that a checkbox is used for the boolean values.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 java.util.List<java.lang.String[]> getSelectedParameters()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setValueAt(java.lang.Object o, int row, int column)
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

parameters

private SaveAsTemplateDialog.OperatorParameterPair[] parameters
0: operator, 1: parameter key


selection

private boolean[] selection
Constructor Detail

SaveAsTemplateDialog.TemplateParameterTableModel

public SaveAsTemplateDialog.TemplateParameterTableModel(SaveAsTemplateDialog.OperatorParameterPair[] parameters)
Method Detail

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

setValueAt

public void setValueAt(java.lang.Object o,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnClass

public java.lang.Class<?> getColumnClass(int column)
Makes sure that a checkbox is used for the boolean values.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel


getSelectedParameters

public java.util.List<java.lang.String[]> getSelectedParameters()


Copyright © 2001-2006