public class ComponentTreeNode extends DefaultMutableTreeNode implements Iterable<ComponentTreeNode>
Component.
If the component is a Container, then his children are the components
of the container.allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
ComponentTreeNode(Component userObject) |
| Modifier and Type | Method and Description |
|---|---|
ComponentTreeNode |
getNextLeaf() |
ComponentTreeNode |
getNextNode() |
ComponentTreeNode |
getNextSibling() |
ComponentTreeNode |
getParent() |
ComponentTreeNode |
getPreviousLeaf() |
ComponentTreeNode |
getPreviousNode() |
ComponentTreeNode |
getPreviousSibling() |
ComponentTreeNode |
getRoot() |
Component |
getUserObject() |
Iterator<ComponentTreeNode> |
iterator() |
void |
visit(ComponentTreeNodeVisitor visitor)
To visit a node.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getPath, getPathToRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ComponentTreeNode(Component userObject)
public void visit(ComponentTreeNodeVisitor visitor)
visitor - the visitorpublic Component getUserObject()
getUserObject in class DefaultMutableTreeNodepublic ComponentTreeNode getParent()
getParent in interface TreeNodegetParent in class DefaultMutableTreeNodepublic ComponentTreeNode getNextLeaf()
getNextLeaf in class DefaultMutableTreeNodepublic ComponentTreeNode getNextNode()
getNextNode in class DefaultMutableTreeNodepublic ComponentTreeNode getNextSibling()
getNextSibling in class DefaultMutableTreeNodepublic ComponentTreeNode getPreviousLeaf()
getPreviousLeaf in class DefaultMutableTreeNodepublic ComponentTreeNode getPreviousNode()
getPreviousNode in class DefaultMutableTreeNodepublic ComponentTreeNode getPreviousSibling()
getPreviousSibling in class DefaultMutableTreeNodepublic ComponentTreeNode getRoot()
getRoot in class DefaultMutableTreeNodepublic Iterator<ComponentTreeNode> iterator()
iterator in interface Iterable<ComponentTreeNode>Copyright © 2008–2020 Ultreia.io. All rights reserved.