org.dom4j.swing

Class LeafTreeNode

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

Field Summary
protected static EnumerationEMPTY_ENUMERATION
protected NodexmlNode
The dom4j Node which contains the
Constructor Summary
LeafTreeNode()
LeafTreeNode(Node xmlNode)
LeafTreeNode(TreeNode parent, Node xmlNode)
Method Summary
Enumerationchildren()
booleangetAllowsChildren()
TreeNodegetChildAt(int childIndex)
intgetChildCount()
intgetIndex(TreeNode node)
TreeNodegetParent()
NodegetXmlNode()
booleanisLeaf()
voidsetParent(LeafTreeNode parent)
Sets the parent of this node but doesn't change the parents children
StringtoString()

Field Detail

EMPTY_ENUMERATION

protected static final Enumeration EMPTY_ENUMERATION

xmlNode

protected Node xmlNode
The dom4j Node which contains the

Constructor Detail

LeafTreeNode

public LeafTreeNode()

LeafTreeNode

public LeafTreeNode(Node xmlNode)

LeafTreeNode

public LeafTreeNode(TreeNode parent, Node xmlNode)

Method Detail

children

public Enumeration children()

getAllowsChildren

public boolean getAllowsChildren()

getChildAt

public TreeNode getChildAt(int childIndex)

getChildCount

public int getChildCount()

getIndex

public int getIndex(TreeNode node)

getParent

public TreeNode getParent()

getXmlNode

public Node getXmlNode()

isLeaf

public boolean isLeaf()

setParent

public void setParent(LeafTreeNode parent)
Sets the parent of this node but doesn't change the parents children

Parameters: parent DOCUMENT ME!

toString

public String toString()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge