Package org.dom4j.swing
Class LeafTreeNode
java.lang.Object
org.dom4j.swing.LeafTreeNode
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
BranchTreeNode
LeafTreeNode
implements the Swing TreeNode interface to bind a
leaf XML nodes to a Swing TreeModel.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan , Jakob Jenkov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Enumeration
<? extends TreeNode> protected Node
The dom4j Node which contains the -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnumeration
<? extends TreeNode> children()
boolean
getChildAt
(int childIndex) int
int
boolean
isLeaf()
void
setParent
(LeafTreeNode parent) Sets the parent of this node but doesn't change the parents childrentoString()
-
Field Details
-
EMPTY_ENUMERATION
-
xmlNode
The dom4j Node which contains the
-
-
Constructor Details
-
LeafTreeNode
public LeafTreeNode() -
LeafTreeNode
-
LeafTreeNode
-
-
Method Details
-
children
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getIndex
-
getParent
-
isLeaf
public boolean isLeaf() -
toString
-
setParent
Sets the parent of this node but doesn't change the parents children- Parameters:
parent
- DOCUMENT ME!
-
getXmlNode
-