public class DynamicTreeTableModel extends AbstractTreeTableModel
listenerList, root| Constructor and Description | 
|---|
| DynamicTreeTableModel(javax.swing.tree.TreeNode root,
                     java.lang.String[] columnNames,
                     java.lang.String[] getterMethodNames,
                     java.lang.String[] setterMethodNames,
                     java.lang.Class[] cTypes)Constructor for creating a DynamicTreeTableModel. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | getChild(java.lang.Object node,
        int i)TreeModel method to locate a particular child of the specified node. | 
| int | getChildCount(java.lang.Object node)TreeModel method to return the number of children of a particular node. | 
| java.lang.Class | getColumnClass(int column)Returns the column class for column  column. | 
| int | getColumnCount()Returns the number of column names passed into the constructor. | 
| java.lang.String | getColumnName(int column)Returns the column name passed into the constructor. | 
| java.lang.Object | getValueAt(java.lang.Object node,
          int column)Returns the value for the column  columnand objectnode. | 
| boolean | isCellEditable(java.lang.Object node,
              int column)Returns true if there is a setter method name for column  column. | 
| boolean | isLeaf(java.lang.Object node)TreeModel method to determine if a node is a leaf. | 
| void | setValueAt(java.lang.Object aValue,
          java.lang.Object node,
          int column)Sets the value to  aValuefor the objectnodein columncolumn. | 
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getPathToRoot, getPathToRoot, getRoot, reload, removeTreeModelListener, valueForPathChangedpublic DynamicTreeTableModel(javax.swing.tree.TreeNode root,
                             java.lang.String[] columnNames,
                             java.lang.String[] getterMethodNames,
                             java.lang.String[] setterMethodNames,
                             java.lang.Class[] cTypes)
public int getChildCount(java.lang.Object node)
node is a TreeNode, this
 can be answered via the TreeNode method getChildCount.public java.lang.Object getChild(java.lang.Object node,
                                 int i)
node is a TreeNode, this can
 be answered via the TreeNode method getChild.public boolean isLeaf(java.lang.Object node)
node is a TreeNode, this can be answered via
 the TreeNode method isLeaf.isLeaf in interface javax.swing.tree.TreeModelisLeaf in class AbstractTreeTableModelpublic int getColumnCount()
public java.lang.String getColumnName(int column)
public java.lang.Class getColumnClass(int column)
column. This is set in the constructor.getColumnClass in interface TreeTableModelgetColumnClass in class AbstractTreeTableModelpublic java.lang.Object getValueAt(java.lang.Object node,
                                   int column)
column and object node. The return value is determined by
 invoking the method specified in constructor for the passed in column.public boolean isCellEditable(java.lang.Object node,
                              int column)
column. This is set in the constructor.isCellEditable in interface TreeTableModelisCellEditable in class AbstractTreeTableModelpublic void setValueAt(java.lang.Object aValue,
                       java.lang.Object node,
                       int column)
aValue for the object node in column column. This is done
 by using the setter method name, and coercing the passed in value to the specified type.setValueAt in interface TreeTableModelsetValueAt in class AbstractTreeTableModel