org.dom4j.swing
Class BranchTreeNode
java.lang.Object
   org.dom4j.swing.LeafTreeNode
org.dom4j.swing.LeafTreeNode
       org.dom4j.swing.BranchTreeNode
org.dom4j.swing.BranchTreeNode
- All Implemented Interfaces: 
- TreeNode
- public class BranchTreeNode- extends LeafTreeNode
 BranchTreeNode implements the Swing TreeNode interface to bind
 dom4j XML Branch nodes (i.e. Document and Element nodes) to a Swing
 TreeModel.
 
- Version:
- $Revision: 1.10 $
- Author:
- James Strachan , Jakob Jenkov
| Field Summary | 
| protected  List | childrenStores the child tree nodes
 | 
 
 
 
 
 
 
children
protected List children
- Stores the child tree nodes
 
 
BranchTreeNode
public BranchTreeNode()
BranchTreeNode
public BranchTreeNode(Branch xmlNode)
BranchTreeNode
public BranchTreeNode(TreeNode parent,
                      Branch xmlNode)
children
public Enumeration children()
- 
- Specified by:
- childrenin interface- TreeNode
- Overrides:
- childrenin class- LeafTreeNode
 
- 
 
getAllowsChildren
public boolean getAllowsChildren()
- 
- Specified by:
- getAllowsChildrenin interface- TreeNode
- Overrides:
- getAllowsChildrenin class- LeafTreeNode
 
- 
 
getChildAt
public TreeNode getChildAt(int childIndex)
- 
- Specified by:
- getChildAtin interface- TreeNode
- Overrides:
- getChildAtin class- LeafTreeNode
 
- 
 
getChildCount
public int getChildCount()
- 
- Specified by:
- getChildCountin interface- TreeNode
- Overrides:
- getChildCountin class- LeafTreeNode
 
- 
 
getIndex
public int getIndex(TreeNode node)
- 
- Specified by:
- getIndexin interface- TreeNode
- Overrides:
- getIndexin class- LeafTreeNode
 
- 
 
isLeaf
public boolean isLeaf()
- 
- Specified by:
- isLeafin interface- TreeNode
- Overrides:
- isLeafin class- LeafTreeNode
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- LeafTreeNode
 
- 
 
getChildList
protected List getChildList()
- Uses Lazy Initialization pattern to create a List of children
 
- 
- Returns:
- DOCUMENT ME!
 
createChildList
protected List createChildList()
- Factory method to create List of children TreeNodes
 
- 
- Returns:
- DOCUMENT ME!
 
createChildTreeNode
protected TreeNode createChildTreeNode(Node xmlNode)
- Factory method to create child tree nodes for a given XML node type
 
- 
- Parameters:
- xmlNode- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
 
getXmlBranch
protected Branch getXmlBranch()
- 
 
Copyright © 2001-2005 MetaStuff Ltd.. All Rights Reserved.