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 | Description |
|---|---|---|
protected java.util.List<javax.swing.tree.TreeNode> |
children |
Stores the child tree nodes
|
EMPTY_ENUMERATION, xmlNode| Constructor | Description |
|---|---|
BranchTreeNode() |
|
BranchTreeNode(javax.swing.tree.TreeNode parent,
Branch xmlNode) |
|
BranchTreeNode(Branch xmlNode) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.List<javax.swing.tree.TreeNode> |
createChildList() |
Factory method to create List of children TreeNodes
|
protected javax.swing.tree.TreeNode |
createChildTreeNode(Node xmlNode) |
Factory method to create child tree nodes for a given XML node type
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
|
int |
getChildCount() |
|
protected java.util.List<javax.swing.tree.TreeNode> |
getChildList() |
Uses Lazy Initialization pattern to create a List of children
|
int |
getIndex(javax.swing.tree.TreeNode node) |
|
protected Branch |
getXmlBranch() |
|
java.util.Enumeration<javax.swing.tree.TreeNode> |
children() |
|
boolean |
isLeaf() |
|
java.lang.String |
toString() |
getParent, getXmlNode, setParentprotected java.util.List<javax.swing.tree.TreeNode> children
public BranchTreeNode()
public BranchTreeNode(Branch xmlNode)
public BranchTreeNode(javax.swing.tree.TreeNode parent,
Branch xmlNode)
public java.util.Enumeration<javax.swing.tree.TreeNode> children()
children in class LeafTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in class LeafTreeNodepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in class LeafTreeNodepublic int getChildCount()
getChildCount in class LeafTreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in class LeafTreeNodepublic boolean isLeaf()
isLeaf in class LeafTreeNodepublic java.lang.String toString()
toString in class LeafTreeNodeprotected java.util.List<javax.swing.tree.TreeNode> getChildList()
protected java.util.List<javax.swing.tree.TreeNode> createChildList()
protected javax.swing.tree.TreeNode createChildTreeNode(Node xmlNode)
xmlNode - DOCUMENT ME!protected Branch getXmlBranch()