public class ComponentNode extends DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Modifier | Constructor and Description |
---|---|
|
ComponentNode(ComponentNode parent,
Component comp) |
|
ComponentNode(ComponentNode parent,
MenuComponent comp) |
|
ComponentNode(ComponentNode parent,
MenuItem comp) |
protected |
ComponentNode(ComponentNode parent,
Object obj) |
|
ComponentNode(Hierarchy hierarchy)
Constructor for the root node of a hierarchy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Return true if the represented components are the same.
|
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
Component |
getComponent()
Returns the Component represented, or null if this is either the root
or a java.awt.MenuComponent.
|
ComponentNode |
getNode(Component comp)
Return the nearest node corresponding to the given component.
|
(package private) Component |
getParent(Component c)
Return the component that appears as a parent in the ComponentNode
hierarchy.
|
TreePath |
getPath(Component comp)
Return the TreePath for the given Component, assuming it is in the
same hierarchy as this node.
|
int |
hashCode() |
void |
reload() |
void |
reload(Hierarchy hierarchy) |
String |
toString() |
add, breadthFirstEnumeration, children, 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, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public ComponentNode(Hierarchy hierarchy)
protected ComponentNode(ComponentNode parent, Object obj)
public ComponentNode(ComponentNode parent, Component comp)
public ComponentNode(ComponentNode parent, MenuComponent comp)
public ComponentNode(ComponentNode parent, MenuItem comp)
public TreeNode getChildAt(int index)
getChildAt
in interface TreeNode
getChildAt
in class DefaultMutableTreeNode
public int getChildCount()
getChildCount
in interface TreeNode
getChildCount
in class DefaultMutableTreeNode
public void reload()
public void reload(Hierarchy hierarchy)
Component getParent(Component c)
public Component getComponent()
public boolean equals(Object other)
public String toString()
toString
in class DefaultMutableTreeNode
public ComponentNode getNode(Component comp)
Abbot is hosted on