| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
JTree
DynamicUtilTreeNode can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.
|
| Modifier and Type | Method and Description |
|---|---|
TreeNode |
JTree.DynamicUtilTreeNode.getChildAt(int index)
Subclassed to load the children, if necessary.
|
| Constructor and Description | |
|---|---|
JTree(TreeNode
Returns a
JTree with the specified
TreeNode as its root, which displays the root node.
|
|
JTree(TreeNode
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDocument
Implements the abstract part of an element.
|
class |
AbstractDocument
Implements a composite element that contains other elements.
|
class |
AbstractDocument
Implements an element that directly represents content of some kind.
|
protected class |
DefaultStyledDocument
Default root element for a document...
|
| Modifier and Type | Method and Description |
|---|---|
TreeNode |
AbstractDocument.AbstractElement.getChildAt(int childIndex)
Returns the child
TreeNode at index
childIndex.
|
TreeNode |
AbstractDocument.AbstractElement.getParent()
Returns the parent
TreeNode of the receiver.
|
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractDocument.AbstractElement.getIndex(TreeNode
Returns the index of
node in the receivers children.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocument
An element that represents a structural
block of HTML.
|
class |
HTMLDocument
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableTreeNode
Defines the requirements for a tree node object that can change -- by adding or removing child nodes, or by changing the contents of a user object stored in the node.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultMutableTreeNode
A
DefaultMutableTreeNode is a general-purpose node in a tree data structure.
|
| Modifier and Type | Field and Description |
|---|---|
protected TreeNode |
DefaultTreeModel.root
Root of the tree.
|
| Modifier and Type | Field and Description |
|---|---|
static Enumeration |
DefaultMutableTreeNode.EMPTY_ENUMERATION
An enumeration that is always empty.
|
| Modifier and Type | Method and Description |
|---|---|
TreeNode |
DefaultMutableTreeNode.getChildAfter(TreeNode
Returns the child in this node's child array that immediately follows
aChild, which must be a child of this node.
|
TreeNode |
TreeNode.getChildAt(int childIndex)
Returns the child
TreeNode at index
childIndex.
|
TreeNode |
DefaultMutableTreeNode.getChildAt(int index)
Returns the child at the specified index in this node's child array.
|
TreeNode |
DefaultMutableTreeNode.getChildBefore(TreeNode
Returns the child in this node's child array that immediately precedes
aChild, which must be a child of this node.
|
TreeNode |
DefaultMutableTreeNode.getFirstChild()
Returns this node's first child.
|
TreeNode |
DefaultMutableTreeNode.getLastChild()
Returns this node's last child.
|
TreeNode |
TreeNode.getParent()
Returns the parent
TreeNode of the receiver.
|
TreeNode |
DefaultMutableTreeNode.getParent()
Returns this node's parent or null if this node has no parent.
|
TreeNode |
DefaultMutableTreeNode.getPath()
Returns the path from the root, to get to this node.
|
TreeNode |
DefaultTreeModel.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.
|
protected TreeNode |
DefaultTreeModel.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.
|
protected TreeNode |
DefaultMutableTreeNode.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 |
DefaultMutableTreeNode.getRoot()
Returns the root of the tree that contains this node.
|
TreeNode |
DefaultMutableTreeNode.getSharedAncestor(DefaultMutableTreeNode
Returns the nearest common ancestor to this node and
aNode.
|
| Modifier and Type | Method and Description |
|---|---|
TreeNode |
DefaultMutableTreeNode.getChildAfter(TreeNode
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
Returns the child in this node's child array that immediately precedes
aChild, which must be a child of this node.
|
int |
TreeNode.getIndex(TreeNode
Returns the index of
node in the receivers children.
|
int |
DefaultMutableTreeNode.getIndex(TreeNode
Returns the index of the specified child in this node's child array.
|
TreeNode |
DefaultTreeModel.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.
|
protected TreeNode |
DefaultTreeModel.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.
|
protected TreeNode |
DefaultMutableTreeNode.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 |
DefaultMutableTreeNode.isNodeAncestor(TreeNode
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.
|
boolean |
DefaultMutableTreeNode.isNodeChild(TreeNode
Returns true if
aNode is a child of this node.
|
boolean |
DefaultMutableTreeNode.isNodeSibling(TreeNode
Returns true if
anotherNode is a sibling of (has the same parent as) this node.
|
void |
DefaultTreeModel.nodeChanged(TreeNode
Invoke this method after you've changed how node is to be represented in the tree.
|
void |
DefaultTreeModel.nodesChanged(TreeNode
Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree.
|
void |
DefaultTreeModel.nodeStructureChanged(TreeNode
Invoke this method if you've totally changed the children of node and its children's children...
|
void |
DefaultTreeModel.nodesWereInserted(TreeNode
Invoke this method after you've inserted some TreeNodes into node.
|
void |
DefaultTreeModel.nodesWereRemoved(TreeNode
Invoke this method after you've removed some TreeNodes from node.
|
Enumeration |
DefaultMutableTreeNode.pathFromAncestorEnumeration(TreeNode
Creates and returns an enumeration that follows the path from
ancestor to this node.
|
void |
DefaultTreeModel.reload(TreeNode
Invoke this method if you've modified the
TreeNodes upon which this model depends.
|
void |
DefaultTreeModel.setRoot(TreeNode
Sets the root to
root.
|
| Constructor and Description | |
|---|---|
DefaultTreeModel(TreeNode
Creates a tree in which any node can have children.
|
|
DefaultTreeModel(TreeNode
Creates a tree specifying whether any node can have children, or whether only certain nodes can have children.
|