Cytoscape 2.8.0 API

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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TreeTableModelAdapter(TreeTableModel treeTableModel, JTree tree)
          Creates a new TreeTableModelAdapter object.
 
Method Summary
protected  void delayedFireTableDataChanged()
          Invokes fireTableDataChanged after all the pending events have been processed.
 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!
protected  Object nodeForRow(int row)
           
 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
clone, equals, finalize, 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!

nodeForRow

protected Object nodeForRow(int row)

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!

delayedFireTableDataChanged

protected void delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been processed. SwingUtilities.invokeLater is used to handle this.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.