|
|||||||||||
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
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.TreeNode
children
in class LeafTreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class LeafTreeNode
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class LeafTreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class LeafTreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
getIndex
in class LeafTreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class LeafTreeNode
public java.lang.String toString()
toString
in class LeafTreeNode
protected 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 |