org.dom4j.swing

Class BranchTreeNode

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 Listchildren
Stores the child tree nodes
Constructor Summary
BranchTreeNode()
BranchTreeNode(Branch xmlNode)
BranchTreeNode(TreeNode parent, Branch xmlNode)
Method Summary
Enumerationchildren()
protected ListcreateChildList()
Factory method to create List of children TreeNodes
protected TreeNodecreateChildTreeNode(Node xmlNode)
Factory method to create child tree nodes for a given XML node type
booleangetAllowsChildren()
TreeNodegetChildAt(int childIndex)
intgetChildCount()
protected ListgetChildList()
Uses Lazy Initialization pattern to create a List of children
intgetIndex(TreeNode node)
protected BranchgetXmlBranch()
booleanisLeaf()
StringtoString()

Field Detail

children

protected List children
Stores the child tree nodes

Constructor Detail

BranchTreeNode

public BranchTreeNode()

BranchTreeNode

public BranchTreeNode(Branch xmlNode)

BranchTreeNode

public BranchTreeNode(TreeNode parent, Branch xmlNode)

Method Detail

children

public Enumeration children()

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!

getAllowsChildren

public boolean getAllowsChildren()

getChildAt

public TreeNode getChildAt(int childIndex)

getChildCount

public int getChildCount()

getChildList

protected List getChildList()
Uses Lazy Initialization pattern to create a List of children

Returns: DOCUMENT ME!

getIndex

public int getIndex(TreeNode node)

getXmlBranch

protected Branch getXmlBranch()

isLeaf

public boolean isLeaf()

toString

public String toString()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge