Java Platform 1.2
Beta 4

Uses of Interface
com.sun.java.swing.tree.TreeNode

Packages that use TreeNode
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
com.sun.java.swing.text.html Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors.  
com.sun.java.swing.tree Provides classes and interfaces for dealing with java.awt.swing. 
 

Uses of TreeNode in com.sun.java.swing
 

Classes in com.sun.java.swing that implement TreeNode
static  JTree.DynamicUtilTreeNode
          DynamicUtilTreeNode can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.
 

Methods in com.sun.java.swing that return TreeNode
 TreeNode JTree.DynamicUtilTreeNode.getChildAt(int index)
          Subclassed to load the children, if necessary.
 

Constructors in com.sun.java.swing with parameters of type TreeNode
JTree.JTree(TreeNode root)
          Returns a JTree with the specified TreeNode as its root, which displays the root node.
JTree.JTree(TreeNode root, boolean asksAllowsChildren)
          Returns a JTree with the specified TreeNode as its root, which displays the root node and which decides whether a node is a leaf node in the specified manner.
 

Uses of TreeNode in com.sun.java.swing.text
 

Classes in com.sun.java.swing.text that implement TreeNode
  AbstractDocument.AbstractElement
          Implements the abstract part of an element.
  AbstractDocument.BranchElement
          Implements a composite element that contains other elements.
  AbstractDocument.LeafElement
          Implements an element that directly represents content of some kind.
protected   DefaultStyledDocument.SectionElement
          Default root element for a document... maps out the paragraphs/lines contained.
 

Methods in com.sun.java.swing.text that return TreeNode
 TreeNode AbstractDocument.AbstractElement.getChildAt(int childIndex)
          Returns the child TreeNode at index childIndex.
 TreeNode AbstractDocument.AbstractElement.getParent()
          Returns the parent TreeNode of the receiver.
 

Methods in com.sun.java.swing.text with parameters of type TreeNode
 int AbstractDocument.AbstractElement.getIndex(TreeNode node)
          Returns the index of node in the receivers children.
 

Uses of TreeNode in com.sun.java.swing.text.html
 

Classes in com.sun.java.swing.text.html that implement TreeNode
  HTMLDocument.BlockElement
          An element that represents a structual block of html.
  HTMLDocument.RunElement
          An element that represents a chunk of text that has a set of html character level attributes assigned to it.
 

Uses of TreeNode in com.sun.java.swing.tree
 

Subinterfaces of TreeNode in com.sun.java.swing.tree
  MutableTreeNode
           
 

Classes in com.sun.java.swing.tree that implement TreeNode
  DefaultMutableTreeNode
          A DefaultMutableTreeNode is a general-purpose node in a tree data structure.
 

Fields in com.sun.java.swing.tree declared as TreeNode
protected  TreeNode DefaultTreeModel.root
          Root of the tree.
 

Methods in com.sun.java.swing.tree that return TreeNode
 TreeNode DefaultMutableTreeNode.getParent()
          Returns this node's parent or null if this node has no parent.
 TreeNode DefaultMutableTreeNode.getChildAt(int index)
          Returns the child at the specified index in this node's child array.
 TreeNode DefaultMutableTreeNode.getSharedAncestor(DefaultMutableTreeNode aNode)
          Returns the nearest common ancestor to this node and aNode.
 TreeNode[] DefaultMutableTreeNode.getPath()
          Returns the path from the root, to get to this node.
protected  TreeNode[] DefaultMutableTreeNode.getPathToRoot(TreeNode aNode, int depth)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
 TreeNode DefaultMutableTreeNode.getRoot()
          Returns the root of the tree that contains this node.
 TreeNode DefaultMutableTreeNode.getFirstChild()
          Returns this node's first child.
 TreeNode DefaultMutableTreeNode.getLastChild()
          Returns this node's last child.
 TreeNode DefaultMutableTreeNode.getChildAfter(TreeNode aChild)
          Returns the child in this node's child array that immediately follows aChild, which must be a child of this node.
 TreeNode DefaultMutableTreeNode.getChildBefore(TreeNode aChild)
          Returns the child in this node's child array that immediately precedes aChild, which must be a child of this node.
 TreeNode[] DefaultTreeModel.getPathToRoot(TreeNode aNode)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
protected  TreeNode[] DefaultTreeModel.getPathToRoot(TreeNode aNode, int depth)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
 TreeNode TreeNode.getChildAt(int childIndex)
          Returns the child TreeNode at index childIndex.
 TreeNode TreeNode.getParent()
          Returns the parent TreeNode of the receiver.
 

Methods in com.sun.java.swing.tree with parameters of type TreeNode
 int DefaultMutableTreeNode.getIndex(TreeNode aChild)
          Returns the index of the specified child in this node's child array.
 boolean DefaultMutableTreeNode.isNodeAncestor(TreeNode anotherNode)
          Returns true if anotherNode is an ancestor of this node -- if it is this node, this node's parent, or an ancestor of this node's parent.
protected  TreeNode[] DefaultMutableTreeNode.getPathToRoot(TreeNode aNode, int depth)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
 Enumeration DefaultMutableTreeNode.pathFromAncestorEnumeration(TreeNode ancestor)
          Creates and returns an enumeration that follows the path from ancestor to this node.
 boolean DefaultMutableTreeNode.isNodeChild(TreeNode aNode)
          Returns true if aNode is a child of this node.
 TreeNode DefaultMutableTreeNode.getChildAfter(TreeNode aChild)
          Returns the child in this node's child array that immediately follows aChild, which must be a child of this node.
 TreeNode DefaultMutableTreeNode.getChildBefore(TreeNode aChild)
          Returns the child in this node's child array that immediately precedes aChild, which must be a child of this node.
 boolean DefaultMutableTreeNode.isNodeSibling(TreeNode anotherNode)
          Returns true if anotherNode is a sibling of (has the same parent as) this node.
 void DefaultTreeModel.setRoot(TreeNode root)
          Sets the root to root.
 void DefaultTreeModel.nodeChanged(TreeNode node)
          Invoke this method after you've changed how node is to be represented in the tree.
 void DefaultTreeModel.reload(TreeNode node)
          Invoke this method if you've modified the TreeNodes upon which this model depends.
 void DefaultTreeModel.nodesWereInserted(TreeNode node, int[] childIndices)
          Invoke this method after you've inserted some TreeNodes into node. childIndices should be the index of the new elements and must be sorted in ascending order.
 void DefaultTreeModel.nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)
          Invoke this method after you've removed some TreeNodes from node. childIndices should be the index of the removed elements and must be sorted in ascending order.
 void DefaultTreeModel.nodesChanged(TreeNode node, int[] childIndices)
          Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree.
 void DefaultTreeModel.nodeStructureChanged(TreeNode node)
          Invoke this method if you've totally changed the children of node and its childrens children...
 TreeNode[] DefaultTreeModel.getPathToRoot(TreeNode aNode)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
protected  TreeNode[] DefaultTreeModel.getPathToRoot(TreeNode aNode, int depth)
          Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
 int TreeNode.getIndex(TreeNode node)
          Returns the index of node in the receivers children.
 

Constructors in com.sun.java.swing.tree with parameters of type TreeNode
DefaultTreeModel.DefaultTreeModel(TreeNode root)
          Creates a tree in which any node can have children.
DefaultTreeModel.DefaultTreeModel(TreeNode root, boolean asksAllowsChildren)
          Creates a tree specifying whether any node can have children, or whether only certain nodes can have children.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.