Uses of Interface javax.swing.tree.TreeNode

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

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.

Uses in package javax.swing.tree

Classes implementing javax.swing.tree.TreeNode

class
A default implementation of the MutableTreeNode interface.

Constructors with parameter type javax.swing.tree.TreeNode

Constructor DefaultTreeModel where any node can have children.
DefaultTreeModel.DefaultTreeModel(TreeNode aRoot, boolean asksAllowsChildren)
Create the DefaultTreeModel that may check if the nodes can have children or not.

Fields of type javax.swing.tree.TreeNode

TreeNode
root

Methods with parameter type javax.swing.tree.TreeNode

TreeNode
Returns the next child after the specified node, or null if there is no child after the specified node.
TreeNode
Returns the previous child before the specified node, or null if there is no child before the specified node.
int
Returns the index of the specified child node, or -1 if the node is not in fact a child of this node.
int
Returns the index of the specified child node, or -1 if the node is not in fact a child of this node.
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
Returns true if node is an ancestor of this tree node, and false otherwise.
boolean
Returns true if node is a child of this tree node, and false otherwise.
boolean
Returns true if this tree node and node share the same parent.
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.
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
Returns the next child after the specified node, or null if there is no child after the specified node.
TreeNode
Returns the child node at a given index.
TreeNode
TreeNode.getChildAt(int index)
Returns the child node at the given index.
TreeNode
Returns the previous child before the specified node, or null if there is no child before the specified node.
TreeNode
Returns the first child node belonging to this tree node.
TreeNode
Returns the last child node belonging to this tree node.
TreeNode
Returns the parent node of this node.
TreeNode
Returns the parent node for this tree node, or null if this node has no parent.
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.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.