Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util.swing
Class TreeTableModelAdapter

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by cytoscape.util.swing.TreeTableModelAdapter
All Implemented Interfaces:
Serializable, TableModel

public class TreeTableModelAdapter
extends AbstractTableModel

This is a wrapper class 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.

Version:
1.2 10/27/98
Author:
Philip Milne, Scott Violet
See Also:
Serialized Form

Constructor Summary
TreeTableModelAdapter(TreeTableModel treeTableModel, JTree tree)
          Creates a new TreeTableModelAdapter object.
 
Method Summary
 Class getColumnClass(int column)
          DOCUMENT ME!
 int getColumnCount()
          DOCUMENT ME!
 String getColumnName(int column)
          DOCUMENT ME!
 int getRowCount()
          DOCUMENT ME!
 Object getValueAt(int row, int column)
          DOCUMENT ME!
 boolean isCellEditable(int row, int column)
          DOCUMENT ME!
 void setValueAt(Object value, int row, int column)
          DOCUMENT ME!
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeTableModelAdapter

public TreeTableModelAdapter(TreeTableModel treeTableModel,
                             JTree tree)
Creates a new TreeTableModelAdapter object.

Parameters:
treeTableModel - DOCUMENT ME!
tree - DOCUMENT ME!
Method Detail

getColumnCount

public int getColumnCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getColumnName

public String getColumnName(int column)
DOCUMENT ME!

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel
Parameters:
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumnClass

public Class getColumnClass(int column)
DOCUMENT ME!

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel
Parameters:
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRowCount

public int getRowCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValueAt

public Object getValueAt(int row,
                         int column)
DOCUMENT ME!

Parameters:
row - DOCUMENT ME!
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

isCellEditable

public boolean isCellEditable(int row,
                              int column)
DOCUMENT ME!

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel
Parameters:
row - DOCUMENT ME!
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)
DOCUMENT ME!

Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel
Parameters:
value - DOCUMENT ME!
row - DOCUMENT ME!
column - DOCUMENT ME!

www.cytoscape.org