| javax.swing.table.DefaultTableModel org.apache.jorphan.gui.ObjectTableModel
Constructor Summary | |
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. | 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. |
ObjectTableModel | public ObjectTableModel(String[] headers, Class _objClass, Functor[] readFunctors, Functor[] writeFunctors, Class[] editorClasses)(Code) | | The ObjectTableModel is a TableModel whose rows are objects;
columns are defined as Functors on the object.
Parameters: headers - - Column names Parameters: _objClass - - Object class that will be used Parameters: readFunctors - - used to get the values Parameters: writeFunctors - - used to set the values Parameters: editorClasses - - class for each column |
ObjectTableModel | public ObjectTableModel(String[] headers, Functor[] readFunctors, Functor[] writeFunctors, Class[] editorClasses)(Code) | | The ObjectTableModel is a TableModel whose rows are objects;
columns are defined as Functors on the object.
Parameters: headers - - Column names Parameters: readFunctors - - used to get the values Parameters: writeFunctors - - used to set the values Parameters: editorClasses - - class for each column |
checkFunctors | public boolean checkFunctors(Object _value, Class caller)(Code) | | Check all registered functors.
** only for use in unit test code **
Parameters: _value - - an instance of the table model row data item (if null, use the class passed to the constructor). Parameters: caller - - class of caller. false if at least one Functor cannot be found. |
clearData | public void clearData()(Code) | | |
insertRow | public void insertRow(Object value, int index)(Code) | | |
Methods inherited from javax.swing.table.DefaultTableModel | public void addColumn(Object columnName)(Code)(Java Doc) public void addColumn(Object columnName, Vector columnData)(Code)(Java Doc) public void addColumn(Object columnName, Object[] columnData)(Code)(Java Doc) public void addRow(Vector rowData)(Code)(Java Doc) public void addRow(Object[] rowData)(Code)(Java Doc) protected static Vector convertToVector(Object[] anArray)(Code)(Java Doc) protected static Vector convertToVector(Object[][] anArray)(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) public String getColumnName(int column)(Code)(Java Doc) public Vector getDataVector()(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public Object getValueAt(int row, int column)(Code)(Java Doc) public void insertRow(int row, Vector rowData)(Code)(Java Doc) public void insertRow(int row, Object[] rowData)(Code)(Java Doc) public boolean isCellEditable(int row, int column)(Code)(Java Doc) public void moveRow(int start, int end, int to)(Code)(Java Doc) public void newDataAvailable(TableModelEvent event)(Code)(Java Doc) public void newRowsAdded(TableModelEvent e)(Code)(Java Doc) public void removeRow(int row)(Code)(Java Doc) public void rowsRemoved(TableModelEvent event)(Code)(Java Doc) public void setColumnCount(int columnCount)(Code)(Java Doc) public void setColumnIdentifiers(Vector columnIdentifiers)(Code)(Java Doc) public void setColumnIdentifiers(Object[] newIdentifiers)(Code)(Java Doc) public void setDataVector(Vector dataVector, Vector columnIdentifiers)(Code)(Java Doc) public void setDataVector(Object[][] dataVector, Object[] columnIdentifiers)(Code)(Java Doc) public void setNumRows(int rowCount)(Code)(Java Doc) public void setRowCount(int rowCount)(Code)(Java Doc) public void setValueAt(Object aValue, int row, int column)(Code)(Java Doc)
|
|
|