TreeNodepublic 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 | Description |
|---|---|---|
protected List<TreeNode> |
children |
Stores the child tree nodes
|
EMPTY_ENUMERATION, xmlNode| Constructor | Description |
|---|---|
BranchTreeNode() |
|
BranchTreeNode(TreeNode parent,
Branch xmlNode) |
|
BranchTreeNode(Branch xmlNode) |
| Modifier and Type | Method | Description |
|---|---|---|
Enumeration<TreeNode> |
children() |
|
protected List<TreeNode> |
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<TreeNode> |
getChildList() |
Uses Lazy Initialization pattern to create a List of children
|
int |
getIndex(TreeNode node) |
|
protected Branch |
getXmlBranch() |
|
boolean |
isLeaf() |
|
String |
toString() |
getParent, getXmlNode, setParentpublic BranchTreeNode()
public BranchTreeNode(Branch xmlNode)
public Enumeration<TreeNode> 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<TreeNode> getChildList()
protected List<TreeNode> createChildList()
protected TreeNode createChildTreeNode(Node xmlNode)
xmlNode - DOCUMENT ME!protected Branch getXmlBranch()