public class LeafTreeNode extends Object implements TreeNode
LeafTreeNode implements the Swing TreeNode interface to bind a
leaf XML nodes to a Swing TreeModel.
| Modifier and Type | Field and Description |
|---|---|
protected static Enumeration |
EMPTY_ENUMERATION |
protected Node |
xmlNode
The dom4j Node which contains the
|
| Constructor and Description |
|---|
LeafTreeNode() |
LeafTreeNode(Node xmlNode) |
LeafTreeNode(TreeNode parent,
Node xmlNode) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
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 children
|
String |
toString() |
protected static final Enumeration EMPTY_ENUMERATION
protected Node xmlNode
public LeafTreeNode()
public LeafTreeNode(Node xmlNode)
public Enumeration children()
public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic void setParent(LeafTreeNode parent)
parent - DOCUMENT ME!public Node getXmlNode()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.