public class LeafTreeNode
extends java.lang.Object
implements javax.swing.tree.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 java.util.Enumeration<?> |
EMPTY_ENUMERATION |
protected Node |
xmlNode
The dom4j Node which contains the
|
Constructor and Description |
---|
LeafTreeNode() |
LeafTreeNode(Node xmlNode) |
LeafTreeNode(javax.swing.tree.TreeNode parent,
Node xmlNode) |
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<?> |
children() |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
int |
getIndex(javax.swing.tree.TreeNode node) |
javax.swing.tree.TreeNode |
getParent() |
Node |
getXmlNode() |
boolean |
isLeaf() |
void |
setParent(LeafTreeNode parent)
Sets the parent of this node but doesn't change the parents children
|
java.lang.String |
toString() |
protected static final java.util.Enumeration<?> EMPTY_ENUMERATION
protected Node xmlNode
public LeafTreeNode()
public LeafTreeNode(Node xmlNode)
public LeafTreeNode(javax.swing.tree.TreeNode parent, Node xmlNode)
public java.util.Enumeration<?> children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public void setParent(LeafTreeNode parent)
parent
- DOCUMENT ME!public Node getXmlNode()