Uses of Interface javax.swing.tree.TreeNode

Uses in package javax.swing.text

Classes implementing javax.swing.tree.TreeNode

class
An abstract base implementation of the Element interface.
class
An implementation of Element to represent composite Elements that contain other Elements.
class
An implementation of Element that represents a leaf in the document structure.
class
An element type for sections.

Methods with parameter type javax.swing.tree.TreeNode

int
Returns the index of a given child TreeNode or -1 if node is not a child of this AbstractElement.

Methods with return type javax.swing.tree.TreeNode

TreeNode
Returns the child of this AbstractElement at index.
TreeNode
Returns the parent TreeNode of this AbstractElement or null if this element has no parent.

Uses in package javax.swing.text.html

Classes implementing javax.swing.tree.TreeNode

class
class
RunElement represents a section of text that has a set of HTML character level attributes assigned to it.

Uses in package javax.swing.tree

Classes implementing javax.swing.tree.TreeNode

class
DefaultMutableTreeNode

Constructors with parameter type javax.swing.tree.TreeNode

Constructor DefaultTreeModel
DefaultTreeModel.DefaultTreeModel(TreeNode root, boolean asksAllowsChildren)
Constructor DefaultTreeModel

Fields of type javax.swing.tree.TreeNode

TreeNode
root

Methods with parameter type javax.swing.tree.TreeNode

TreeNode
getChildAfter
TreeNode
getChildBefore
int
Returns the child index for a given node.
int
getIndex
TreeNode[]
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[]
getPathToRoot
TreeNode[]
Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.
boolean
isNodeAncestor
boolean
isNodeChild
boolean
isNodeSibling
void
Invoke this method after you've changed how node is to be represented in the tree.
void
Invoke this method if you've totally changed the children of node and its childrens children.
void
DefaultTreeModel.nodesChanged(TreeNode node, int[] childIndices)
Invoke this method after you've changed how the children identified by childIndices are to be represented in the tree.
void
DefaultTreeModel.nodesWereInserted(TreeNode parent, 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 parent, int[] childIndices, Object[] removedChildren)
Invoke this method after you've removed some TreeNodes from node.
Enumeration
pathFromAncestorEnumeration
void
Invoke this method if you've modified the TreeNodes upon which this model depends.
void
setRoot

Methods with return type javax.swing.tree.TreeNode

TreeNode
getChildAfter
TreeNode
Returns the child node at a given index.
TreeNode
TreeNode.getChildAt(int index)
getChildAt
TreeNode
getChildBefore
TreeNode
getFirstChild
TreeNode
getLastChild
TreeNode
Returns the parent node of this node.
TreeNode
getParent
TreeNode[]
Returns a path to this node from the root.
TreeNode[]
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[]
getPathToRoot
TreeNode[]
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
Returns the root node by iterating the parents of this node.
TreeNode
getSharedAncestor

Uses in package javax.swing

Classes implementing javax.swing.tree.TreeNode

class

Constructors with parameter type javax.swing.tree.TreeNode

Creates a new JTree object.
JTree.JTree(TreeNode root, boolean asksAllowChildren)
Creates a new JTree object.

Methods with return type javax.swing.tree.TreeNode

TreeNode
Returns the child node at position pos.