|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode abbot.editor.ComponentNode
public class ComponentNode
Provides a JTree-compatible node model for displaying a given hierarchy.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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 int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class DefaultMutableTreeNode
public ComponentNode getNode(Component comp)
public TreePath getPath(Component comp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |