|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dom4j.swing.LeafTreeNode
org.dom4j.swing.BranchTreeNode
public class BranchTreeNode
BranchTreeNode implements the Swing TreeNode interface to bind
dom4j XML Branch nodes (i.e. Document and Element nodes) to a Swing
TreeModel.
| Field Summary | |
|---|---|
protected java.util.List |
children
Stores the child tree nodes |
| Fields inherited from class org.dom4j.swing.LeafTreeNode |
|---|
EMPTY_ENUMERATION, xmlNode |
| Constructor Summary | |
|---|---|
BranchTreeNode()
|
|
BranchTreeNode(Branch xmlNode)
|
|
BranchTreeNode(javax.swing.tree.TreeNode parent,
Branch xmlNode)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.dom4j.swing.LeafTreeNode |
|---|
getParent, getXmlNode, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List children
| Constructor Detail |
|---|
public BranchTreeNode()
public BranchTreeNode(Branch xmlNode)
public BranchTreeNode(javax.swing.tree.TreeNode parent,
Branch xmlNode)
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||