Class ComponentTreeNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.nuiton.jaxx.runtime.awt.visitor.ComponentTreeNode
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<ComponentTreeNode>,MutableTreeNode,TreeNode
public class ComponentTreeNode extends DefaultMutableTreeNode implements Iterable<ComponentTreeNode>
A node where userObject is aComponent. If the component is aContainer, then his children are the components of the container.- Since:
- 2.5.14
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description ComponentTreeNode(Component userObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentTreeNodegetNextLeaf()ComponentTreeNodegetNextNode()ComponentTreeNodegetNextSibling()ComponentTreeNodegetParent()ComponentTreeNodegetPreviousLeaf()ComponentTreeNodegetPreviousNode()ComponentTreeNodegetPreviousSibling()ComponentTreeNodegetRoot()ComponentgetUserObject()Iterator<ComponentTreeNode>iterator()voidvisit(ComponentTreeNodeVisitor visitor)To visit a node.-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ComponentTreeNode
public ComponentTreeNode(Component userObject)
-
-
Method Detail
-
visit
public void visit(ComponentTreeNodeVisitor visitor)
To visit a node.- Parameters:
visitor- the visitor
-
getUserObject
public Component getUserObject()
- Overrides:
getUserObjectin classDefaultMutableTreeNode
-
getParent
public ComponentTreeNode getParent()
- Specified by:
getParentin interfaceTreeNode- Overrides:
getParentin classDefaultMutableTreeNode
-
getNextLeaf
public ComponentTreeNode getNextLeaf()
- Overrides:
getNextLeafin classDefaultMutableTreeNode
-
getNextNode
public ComponentTreeNode getNextNode()
- Overrides:
getNextNodein classDefaultMutableTreeNode
-
getNextSibling
public ComponentTreeNode getNextSibling()
- Overrides:
getNextSiblingin classDefaultMutableTreeNode
-
getPreviousLeaf
public ComponentTreeNode getPreviousLeaf()
- Overrides:
getPreviousLeafin classDefaultMutableTreeNode
-
getPreviousNode
public ComponentTreeNode getPreviousNode()
- Overrides:
getPreviousNodein classDefaultMutableTreeNode
-
getPreviousSibling
public ComponentTreeNode getPreviousSibling()
- Overrides:
getPreviousSiblingin classDefaultMutableTreeNode
-
getRoot
public ComponentTreeNode getRoot()
- Overrides:
getRootin classDefaultMutableTreeNode
-
iterator
public Iterator<ComponentTreeNode> iterator()
- Specified by:
iteratorin interfaceIterable<ComponentTreeNode>
-
-