com.puppycrawl.tools.checkstyle.gui

Class TreeTableModelAdapter


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
Authors:
Philip Milne
Scott Violet

Constructor Summary

TreeTableModelAdapter(TreeTableModel aTreeTableModel, JTree aTree)

Method Summary

protected void
delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been processed.
Class
getColumnClass(int column)
int
getColumnCount()
String
getColumnName(int column)
int
getRowCount()
Object
getValueAt(int row, int column)
boolean
isCellEditable(int row, int column)
protected Object
nodeForRow(int row)
void
setValueAt(Object value, int row, int column)

Constructor Details

TreeTableModelAdapter

public TreeTableModelAdapter(TreeTableModel aTreeTableModel,
                             JTree aTree)

Method Details

delayedFireTableDataChanged

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

getColumnClass

public Class getColumnClass(int column)

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int row,
                         int column)

isCellEditable

public boolean isCellEditable(int row,
                              int column)

nodeForRow

protected Object nodeForRow(int row)

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)