public static class JTree.DynamicUtilTreeNode extends javax.swing.tree.DefaultMutableTreeNode
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
childValue |
protected boolean |
hasChildren
Currently not set or used by this class.
|
protected boolean |
loadedChildren |
| Constructor and Description |
|---|
JTree.DynamicUtilTreeNode(java.lang.Object value,
java.lang.Object children) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration |
children()
Returns an enumeration containing all children of this node.
|
static void |
createChildren(javax.swing.tree.DefaultMutableTreeNode parent,
java.lang.Object children) |
javax.swing.tree.TreeNode |
getChildAt(int pos)
Returns the child node at position
pos. |
int |
getChildCount()
Returns the number of children of this node.
|
boolean |
isLeaf()
Returns
true if this tree node is a lead node (that is, it
has no children), and false. |
protected void |
loadChildren() |
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringprotected java.lang.Object childValue
protected boolean loadedChildren
protected boolean hasChildren
public JTree.DynamicUtilTreeNode(java.lang.Object value, java.lang.Object children)
public int getChildCount()
javax.swing.tree.DefaultMutableTreeNodegetChildCount in interface javax.swing.tree.TreeNodegetChildCount in class javax.swing.tree.DefaultMutableTreeNodeprotected void loadChildren()
public java.util.Enumeration children()
javax.swing.tree.DefaultMutableTreeNodeEMPTY_ENUMERATION is returned if this node has no children.children in interface javax.swing.tree.TreeNodechildren in class javax.swing.tree.DefaultMutableTreeNodepublic javax.swing.tree.TreeNode getChildAt(int pos)
pos. Subclassed
here to load the children if necessary.getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class javax.swing.tree.DefaultMutableTreeNodepos - the position of the child node to fetchpublic boolean isLeaf()
javax.swing.tree.DefaultMutableTreeNodetrue if this tree node is a lead node (that is, it
has no children), and false.isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic static void createChildren(javax.swing.tree.DefaultMutableTreeNode parent, java.lang.Object children)