org.biomoby.service.dashboard.treetable
Class TreeTableModelAdapter
java.lang.Object
javax.swing.table.AbstractTableModel
org.biomoby.service.dashboard.treetable.TreeTableModelAdapter
- All Implemented Interfaces:
- Serializable, TableModel
public class TreeTableModelAdapter
- extends AbstractTableModel
This is a wrapper class that takes a TreeTableModel and implements
the table model interface. The implementation is trivial, with all
of the event dispatching support provided by the superclass: the
AbstractTableModel.
Inspired by http://java.sun.com/products/jfc/tsc/articles/treetable1/index.html.
- Version:
- $Id: TreeTableModelAdapter.java,v 1.4 2006/02/04 09:24:42 senger Exp $
- Author:
- Philip Milne, Scott Violet, Martin Senger
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
TreeTableModelAdapter
public TreeTableModelAdapter(TreeTableModel treeTableModel,
JTree tree)
getColumnCount
public int getColumnCount()
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
getColumnClass
public Class getColumnClass(int column)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
getRowCount
public int getRowCount()
nodeForRow
public Object nodeForRow(int row)
getValueAt
public Object getValueAt(int row,
int column)
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
setValueAt
public void setValueAt(Object value,
int row,
int column)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010