|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.extensions.jfcunit.tools.ComponentNode
Tree node for the ComponentBrowser application.
| Field Summary | |
private java.awt.Component |
m_component
Component. |
private ComponentNode |
m_parent
Parent node. |
| Constructor Summary | |
ComponentNode(ComponentNode parent,
java.awt.Component comp)
Constructor. |
|
| Method Summary | |
java.util.Enumeration |
children()
Get the children of this node. |
boolean |
equals(java.lang.Object other)
Check equality. |
boolean |
getAllowsChildren()
Can the node support children. |
private java.util.Vector |
getAllWindows()
This method is used to build a Vector of all open windows (Frames) after filtering the ComponentBrowser window. |
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Get the specified child. |
int |
getChildCount()
Get the number of children. |
java.awt.Component |
getComponent()
Get the component held by this node of the tree. |
int |
getIndex(javax.swing.tree.TreeNode node)
Get the index of the node given. |
javax.swing.tree.TreeNode |
getParent()
Get the parent node. |
int |
hashCode()
The hashCode of this node. |
boolean |
isLeaf()
Is the node a leaf. |
java.lang.String |
toString()
Generate a description of the object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.awt.Component m_component
private ComponentNode m_parent
| Constructor Detail |
public ComponentNode(ComponentNode parent,
java.awt.Component comp)
parent - node of parent.comp - Component to be held by the node.| Method Detail |
public boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodechildIndex - The index of the child node to be returned.
public int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic java.awt.Component getComponent()
public int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodenode - TreeNode for which the index should be given.
public boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic boolean equals(java.lang.Object other)
other - Object to be compared.
public int hashCode()
public java.lang.String toString()
private java.util.Vector getAllWindows()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||