org.dom4j.swing
Class LeafTreeNode
java.lang.Object
   org.dom4j.swing.LeafTreeNode
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.
 
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan , Jakob Jenkov
 
 
 
 
EMPTY_ENUMERATION
protected static final Enumeration EMPTY_ENUMERATION
xmlNode
protected Node xmlNode
- The dom4j Node which contains the
 
 
LeafTreeNode
public LeafTreeNode()
LeafTreeNode
public LeafTreeNode(Node xmlNode)
LeafTreeNode
public LeafTreeNode(TreeNode parent,
                    Node xmlNode)
children
public Enumeration children()
- 
- Specified by:
- childrenin interface- TreeNode
 
- 
 
getAllowsChildren
public boolean getAllowsChildren()
- 
- Specified by:
- getAllowsChildrenin interface- TreeNode
 
- 
 
getChildAt
public TreeNode getChildAt(int childIndex)
- 
- Specified by:
- getChildAtin interface- TreeNode
 
- 
 
getChildCount
public int getChildCount()
- 
- Specified by:
- getChildCountin interface- TreeNode
 
- 
 
getIndex
public int getIndex(TreeNode node)
- 
- Specified by:
- getIndexin interface- TreeNode
 
- 
 
getParent
public TreeNode getParent()
- 
- Specified by:
- getParentin interface- TreeNode
 
- 
 
isLeaf
public boolean isLeaf()
- 
- Specified by:
- isLeafin interface- TreeNode
 
- 
 
toString
public String toString()
- 
 
- 
 
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()
- 
 
- 
 
Copyright © 2001-2005 MetaStuff Ltd.. All Rights Reserved.