Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jgift.ui.treetable
Interface TreeTableModel  view TreeTableModel download TreeTableModel.java

All Superinterfaces:
javax.swing.tree.TreeModel
All Known Implementing Classes:
AbstractTreeTableModel

public interface TreeTableModel
extends javax.swing.tree.TreeModel

A model used for tables that wrap a tree view of results. This code borrows heavily from the JTreeTable example found on the
Method Summary
 java.lang.Class getColumnClass(int column)
          Get the most specific superclass for all the cell values in the column.
 int getColumnCount()
          Get the number of columns in each node of the tree.
 java.lang.String getColumnName(int column)
          Get the name of the specified column.
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Get the value in the specified column of a tree node.
 boolean isCellEditable(java.lang.Object node, int column)
          Determine if the specified column of a tree node can be modified by the user.
 void setValueAt(java.lang.Object value, java.lang.Object node, int column)
          Set the value of the specified column of a tree node.
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Method Detail

getColumnCount

public int getColumnCount()
Get the number of columns in each node of the tree.


getColumnName

public java.lang.String getColumnName(int column)
Get the name of the specified column.


getColumnClass

public java.lang.Class getColumnClass(int column)
Get the most specific superclass for all the cell values in the column.


getValueAt

public java.lang.Object getValueAt(java.lang.Object node,
                                   int column)
Get the value in the specified column of a tree node.


isCellEditable

public boolean isCellEditable(java.lang.Object node,
                              int column)
Determine if the specified column of a tree node can be modified by the user.


setValueAt

public void setValueAt(java.lang.Object value,
                       java.lang.Object node,
                       int column)
Set the value of the specified column of a tree node.