javax.swing.tree.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 java.util.List |
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 |
|---|---|---|
java.util.Enumeration |
children() |
|
protected java.util.List |
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 |
getChildList() |
Uses Lazy Initialization pattern to create a List of children
|
int |
getIndex(javax.swing.tree.TreeNode node) |
|
protected Branch |
getXmlBranch() |
|
boolean |
isLeaf() |
|
java.lang.String |
toString() |
getParent, getXmlNode, setParentpublic BranchTreeNode()
public BranchTreeNode(Branch xmlNode)
public BranchTreeNode(javax.swing.tree.TreeNode parent,
Branch xmlNode)
public java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodechildren in class LeafTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class LeafTreeNodepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class LeafTreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class LeafTreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodegetIndex in class LeafTreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class LeafTreeNodepublic java.lang.String toString()
toString in class LeafTreeNodeprotected java.util.List getChildList()
protected java.util.List createChildList()
protected javax.swing.tree.TreeNode createChildTreeNode(Node xmlNode)
xmlNode - DOCUMENT ME!protected Branch getXmlBranch()
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by