|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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 TreeNodegetChildAt in class DefaultMutableTreeNodepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class DefaultMutableTreeNodepublic void reload()
public void reload(Hierarchy hierarchy)
Component getParent(Component c)
public Component getComponent()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class DefaultMutableTreeNodepublic 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 | ||||||||