API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.tree. TreeModel View Source
Author(s)
Rob Davis
Ray Ryan
Since
Version
1.26 11/17/05
Serial
Hierarchy
 TreeModel
Subinterfaces
Description
public interface TreeModel
  The model used by JTree.
See also:    TreePath
Methods
Hide/Show inherited methods
public void addTreeModelListener (TreeModelListener l)
  Adds a listener for the TreeModelEvent posted after the tree changes.
public Object getChild (Object parent, int index)
  Returns the child of parent at index index in the parent's child array.
public int getChildCount (Object parent)
  Returns the number of children of parent.
public int getIndexOfChild (Object parent, Object child)
  Returns the index of child in parent.
public Object getRoot ()
  Returns the root of the tree.
public boolean isLeaf (Object node)
  Returns true if node is a leaf.
public void removeTreeModelListener (TreeModelListener l)
  Removes a listener previously added with addTreeModelListener.
public void valueForPathChanged (TreePath path, Object newValue)
  Messaged when the user has altered the value for the item identified by path to newValue.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar