| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jadex.util.jtable.ObjectTableModel
The object table model has associated an object with each row.
| Constructor Summary | |
| ObjectTableModel()Create a new object table model. | |
| ObjectTableModel(String[] colnames)Create a new object table model. | |
| Method Summary | |
|  void | addRow(ArrayList row,
       Object object)Add a row to the model. | 
|  void | addRow(Object[] row,
       Object object)Add a row to the model. | 
|  void | addRow(Object row,
       Object object)Add a row to the model. | 
|  Class | getColumnClass(int idx)Get the class of the column. | 
|  int | getColumnCount() | 
|  String | getColumnName(int column)Get a column name | 
|  Object | getObjectForRow(int rowcnt)Get the associated object for a row. | 
|  int | getRowCount() | 
|  Object | getValueAt(int row,
           int column)Get the value from a field. | 
|  void | insertRow(int rowcnt,
          List row,
          Object object)Insert a row at a position. | 
|  void | insertRow(int rowcnt,
          Object[] row,
          Object object)Insert a row at a position. | 
|  void | removeAllRows()Remove all rows from the model. | 
|  void | removeRow(int cnt)Remove a row from the model. | 
|  void | removeRow(Object object)Remove a row from the model. | 
|  void | setColumnClass(Class clazz,
               int idx)Set the class of the column. | 
| Methods inherited from class javax.swing.table.AbstractTableModel | 
| addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public ObjectTableModel()
public ObjectTableModel(String[] colnames)
| Method Detail | 
public void addRow(Object row,
                   Object object)
row - The row data.object - The associated object.
public void addRow(ArrayList row,
                   Object object)
row - The row data.object - The associated object.
public void addRow(Object[] row,
                   Object object)
row - The row data.object - The associated object.
public void insertRow(int rowcnt,
                      Object[] row,
                      Object object)
rowcnt - The row cnt.row - The row data.object - The object.
public void insertRow(int rowcnt,
                      List row,
                      Object object)
rowcnt - The row cnt.row - The row data.object - The object.public void removeRow(Object object)
object - The associated object.public void removeRow(int cnt)
cnt - The row number.public void removeAllRows()
public Object getObjectForRow(int rowcnt)
rowcnt - The row ccount.
public String getColumnName(int column)
column - The number of the column.
public Class getColumnClass(int idx)
idx - the column being queried
public void setColumnClass(Class clazz,
                           int idx)
clazz - The class.idx - the column being queriedpublic int getRowCount()
public int getColumnCount()
public Object getValueAt(int row,
                         int column)
row - The row index.column - The column index.
| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.