Class BranchTreeNode
java.lang.Object
org.dom4j.swing.LeafTreeNode
org.dom4j.swing.BranchTreeNode
- All Implemented Interfaces:
TreeNode
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
FieldsFields inherited from class LeafTreeNode
EMPTY_ENUMERATION, xmlNode -
Constructor Summary
ConstructorsConstructorDescriptionBranchTreeNode(TreeNode parent, Branch xmlNode) BranchTreeNode(Branch xmlNode) -
Method Summary
Modifier and TypeMethodDescriptionchildren()Factory method to create List of children TreeNodesprotected TreeNodecreateChildTreeNode(Node xmlNode) Factory method to create child tree nodes for a given XML node typebooleangetChildAt(int childIndex) intUses Lazy Initialization pattern to create a List of childrenintprotected BranchbooleanisLeaf()toString()Methods inherited from class LeafTreeNode
getParent, getXmlNode, setParent
-
Field Details
-
children
-
-
Constructor Details
-
BranchTreeNode
public BranchTreeNode() -
BranchTreeNode
-
BranchTreeNode
-
-
Method Details
-
children
- Specified by:
childrenin interfaceTreeNode- Overrides:
childrenin classLeafTreeNode
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceTreeNode- Overrides:
getAllowsChildrenin classLeafTreeNode
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode- Overrides:
getChildAtin classLeafTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode- Overrides:
getChildCountin classLeafTreeNode
-
getIndex
- Specified by:
getIndexin interfaceTreeNode- Overrides:
getIndexin classLeafTreeNode
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfaceTreeNode- Overrides:
isLeafin classLeafTreeNode
-
toString
- Overrides:
toStringin classLeafTreeNode
-
getChildList
-
createChildList
-
createChildTreeNode
-
getXmlBranch
-