Package org.dom4j.swing
Class LeafTreeNode
- java.lang.Object
-
- org.dom4j.swing.LeafTreeNode
-
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
BranchTreeNode
public class LeafTreeNode extends Object implements TreeNode
LeafTreeNode
implements the Swing TreeNode interface to bind a leaf XML nodes to a Swing TreeModel.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Enumeration<? extends TreeNode>
EMPTY_ENUMERATION
protected Node
xmlNode
The dom4j Node which contains the
-
Constructor Summary
Constructors Constructor Description LeafTreeNode()
LeafTreeNode(TreeNode parent, Node xmlNode)
LeafTreeNode(Node xmlNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumeration<? extends TreeNode>
children()
boolean
getAllowsChildren()
TreeNode
getChildAt(int childIndex)
int
getChildCount()
int
getIndex(TreeNode node)
TreeNode
getParent()
Node
getXmlNode()
boolean
isLeaf()
void
setParent(LeafTreeNode parent)
Sets the parent of this node but doesn't change the parents childrenString
toString()
-
-
-
Field Detail
-
EMPTY_ENUMERATION
protected static final Enumeration<? extends TreeNode> EMPTY_ENUMERATION
-
xmlNode
protected Node xmlNode
The dom4j Node which contains the
-
-
Method Detail
-
children
public Enumeration<? extends TreeNode> children()
-
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interfaceTreeNode
-
getChildAt
public TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interfaceTreeNode
-
setParent
public void setParent(LeafTreeNode parent)
Sets the parent of this node but doesn't change the parents children- Parameters:
parent
- DOCUMENT ME!
-
getXmlNode
public Node getXmlNode()
-
-