Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jorphan.gui » [javadoc | source]
org.apache.jorphan.gui
public class: ObjectTableModel [javadoc | source]
java.lang.Object
   javax.swing.table.AbstractTableModel
      javax.swing.table.DefaultTableModel
         org.apache.jorphan.gui.ObjectTableModel

All Implemented Interfaces:
    Serializable, TableModel

The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
Fields inherited from javax.swing.table.DefaultTableModel:
dataVector,  columnIdentifiers
Fields inherited from javax.swing.table.AbstractTableModel:
listenerList
Constructor:
 public ObjectTableModel(String[] headers,
    Functor[] readFunctors,
    Functor[] writeFunctors,
    Class[] editorClasses) 
    The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
    Parameters:
    headers - - Column names
    readFunctors - - used to get the values
    writeFunctors - - used to set the values
    editorClasses - - class for each column
 public ObjectTableModel(String[] headers,
    Class _objClass,
    Functor[] readFunctors,
    Functor[] writeFunctors,
    Class[] editorClasses) 
    The ObjectTableModel is a TableModel whose rows are objects; columns are defined as Functors on the object.
    Parameters:
    headers - - Column names
    _objClass - - Object class that will be used
    readFunctors - - used to get the values
    writeFunctors - - used to set the values
    editorClasses - - class for each column
Method from org.apache.jorphan.gui.ObjectTableModel Summary:
addRow,   checkFunctors,   clearData,   getColumnClass,   getColumnCount,   getColumnName,   getRowCount,   getValueAt,   insertRow,   isCellEditable,   iterator,   moveRow,   removeRow,   setValueAt
Methods from 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,   setValueAt
Methods from javax.swing.table.AbstractTableModel:
addTableModelListener,   findColumn,   fireTableCellUpdated,   fireTableChanged,   fireTableDataChanged,   fireTableRowsDeleted,   fireTableRowsInserted,   fireTableRowsUpdated,   fireTableStructureChanged,   getColumnClass,   getColumnName,   getListeners,   getTableModelListeners,   isCellEditable,   removeTableModelListener,   setValueAt
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jorphan.gui.ObjectTableModel Detail:
 public  void addRow(Object value) 
 public boolean checkFunctors(Object _value,
    Class caller) 
    Check all registered functors.

    ** only for use in unit test code **

 public  void clearData() 
 public Class getColumnClass(int arg0) 
 public int getColumnCount() 
 public String getColumnName(int col) 
 public int getRowCount() 
 public Object getValueAt(int row,
    int col) 
 public  void insertRow(Object value,
    int index) 
 public boolean isCellEditable(int arg0,
    int arg1) 
 public Iterator iterator() 
 public  void moveRow(int start,
    int end,
    int to) 
 public  void removeRow(int row) 
 public  void setValueAt(Object cellValue,
    int row,
    int col)