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.
| Modifier and Type | Field and Description |
|---|---|
protected List |
children
Stores the child tree nodes
|
EMPTY_ENUMERATION, xmlNode| Constructor and Description |
|---|
BranchTreeNode() |
BranchTreeNode(Branch xmlNode) |
BranchTreeNode(TreeNode parent,
Branch xmlNode) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
children() |
protected List |
createChildList()
Factory method to create List of children TreeNodes
|
protected TreeNode |
createChildTreeNode(Node xmlNode)
Factory method to create child tree nodes for a given XML node type
|
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
protected List |
getChildList()
Uses Lazy Initialization pattern to create a List of children
|
int |
getIndex(TreeNode node) |
protected Branch |
getXmlBranch() |
boolean |
isLeaf() |
String |
toString() |
getParent, getXmlNode, setParentprotected List children
public BranchTreeNode()
public BranchTreeNode(Branch xmlNode)
public Enumeration children()
children in interface TreeNodechildren in class LeafTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class LeafTreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodegetChildAt in class LeafTreeNodepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class LeafTreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodegetIndex in class LeafTreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodeisLeaf in class LeafTreeNodepublic String toString()
toString in class LeafTreeNodeprotected List getChildList()
protected List createChildList()
protected TreeNode createChildTreeNode(Node xmlNode)
xmlNode - DOCUMENT ME!protected Branch getXmlBranch()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.