public interface TNode
extends javax.swing.tree.TreeNode
TNode interface extends the TreeNode.
 This class encapsulates an Element and its main
 purpose is to represent that Element as a tree node.Element| Modifier and Type | Method and Description | 
|---|---|
java.util.Enumeration | 
breadthFirstEnumeration()
Returns an  
Enumeration that can be used to traverse all
 descendents of this TNode. | 
ChildFilter | 
findChildFilter()
Find the  
ChildFilter used to build the tree node hierarchy
 this TNode belongs to. | 
Element | 
getAncestor(java.lang.Class clazz)
 | 
Element | 
getAncestor(java.lang.Class clazz,
           boolean checkBaseClass)
 | 
TNode | 
getAncestorTNode(java.lang.Class clazz,
                boolean checkBaseClass)
Gets this  
TNode closest ancestor TNode that  
 encapsulates an Element of class clazz, or if 
 checkBaseClass is true, an Element
 extending or implementing the specified class. | 
int | 
getChildCount()
Returns the number of children this  
TNode holds. | 
ChildFilter | 
getChildFilter()
Returns the active ChildFilter. 
 | 
java.util.Iterator | 
getChildNodes()
Returns an  
Iterator that can be used to traverse the children
 of this TNode. | 
java.util.Enumeration | 
getChildTNodes()
Returns an  
Enumeration that can be used to traverse the children
 of this TNode. | 
java.util.Comparator | 
getComparator()
Get the  
Comparator that is used to sort the children of this
 node. | 
Element | 
getData()
Gets the data element associated with this node. 
 | 
TreeExplorer | 
getOwner()
Returns the  
TreeExplorer where this TNode
 is displayed. | 
javax.swing.tree.TreeNode[] | 
getPath()
Returns an array of  
TreeNodes comprising of the ancestors
 of this TNode. | 
boolean | 
isLeaf()
Returns true if this TNode has no children. 
 | 
boolean | 
isRoot()
Returns  
true if this TNode is the root
 a tree hierarchy. | 
boolean | 
isSet(int bit)
Check if the specified  
bit attribute is set. | 
void | 
setBit(int bit)
Sets the specified  
bit attribute. | 
void | 
setChildFilter(ChildFilter filter)
Set a new  
ChildFilter on this TNode. | 
void | 
setChildFilter(ChildFilter filter,
              boolean force)
Set a new  
ChildFilter on this TNode. | 
void | 
setComparator(java.util.Comparator comparator)
Set the  
Comparator that is used to sort the children of this
 node. | 
void | 
unsetBit(int bit)
Unsets the specified  
bit attribute. | 
TreeExplorer getOwner()
TreeExplorer where this TNode
 is displayed.javax.swing.tree.TreeNode[] getPath()
TreeNodes comprising of the ancestors
 of this TNode.Element getData()
boolean isLeaf()
getAllowsChildrenisLeaf in interface javax.swing.tree.TreeNodeboolean isRoot()
true if this TNode is the root
 a tree hierarchy.ChildFilter getChildFilter()
void setChildFilter(ChildFilter filter, boolean force)
ChildFilter on this TNode. If the 
 currently set filter is the same as the specified one the method 
 does nothing unless the parameter force is set to 
 true.void setChildFilter(ChildFilter filter)
ChildFilter on this TNode. If the 
 currently set filter is the same as the specified one the method 
 does nothing.ChildFilter findChildFilter()
ChildFilter used to build the tree node hierarchy
 this TNode belongs to. This method walks up the ancestor
 hierarchy until it finds a filter. If no filter is found, null
 is returned.int getChildCount()
TNode holds.getChildCount in interface javax.swing.tree.TreeNodejava.util.Iterator getChildNodes()
Iterator that can be used to traverse the children
 of this TNode. The items of the Iterator
 are Elements.java.util.Enumeration getChildTNodes()
Enumeration that can be used to traverse the children
 of this TNode. The items of the Enumeration
 are TNodes.java.util.Enumeration breadthFirstEnumeration()
Enumeration that can be used to traverse all
 descendents of this TNode. The items of the 
 Enumeration are TNodes.java.util.Comparator getComparator()
Comparator that is used to sort the children of this
 node.void setComparator(java.util.Comparator comparator)
Comparator that is used to sort the children of this
 node.  Calling this method has no effect if the node is not a
 container node.  If the comparator has changed, then the child nodes
 are re-ordered.comparator - The Comparator used for sorting the children
 of this node; if null, the children are not sorted.TNode getAncestorTNode(java.lang.Class clazz, boolean checkBaseClass)
TNode closest ancestor TNode that  
 encapsulates an Element of class clazz, or if 
 checkBaseClass is true, an Element
 extending or implementing the specified class.Element getAncestor(java.lang.Class clazz, boolean checkBaseClass)
Element getAncestor(java.lang.Class clazz)
void setBit(int bit)
bit attribute. Attributes generally
 indicate the state of the TNode, such as if the node
 has been opened (IS_OPENED), is using a filter
 (IS_UNFILTERED), etc..void unsetBit(int bit)
bit attribute. Attributes generally
 indicate the state of the TNode, such as if the node
 has been opened (IS_OPENED), is using a filter
 (IS_UNFILTERED), etc..boolean isSet(int bit)
bit attribute is set. Attributes 
 generally indicate the state of the TNode, such as if the node
 has been opened (IS_OPENED), is using a filter
 (IS_UNFILTERED), etc..