javax.swing.tree.TreeNode
BranchTreeNode
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 | Description |
---|---|---|
protected static java.util.Enumeration<? extends javax.swing.tree.TreeNode> |
EMPTY_ENUMERATION |
|
protected Node |
xmlNode |
The dom4j Node which contains the
|
Constructor | Description |
---|---|
LeafTreeNode() |
|
LeafTreeNode(javax.swing.tree.TreeNode parent,
Node xmlNode) |
|
LeafTreeNode(Node xmlNode) |
Modifier and Type | Method | Description |
---|---|---|
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() |
|
java.util.Enumeration<? extends javax.swing.tree.TreeNode> |
children() |
|
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<? extends javax.swing.tree.TreeNode> EMPTY_ENUMERATION
protected Node xmlNode
public LeafTreeNode()
public LeafTreeNode(Node xmlNode)
public LeafTreeNode(javax.swing.tree.TreeNode parent, Node xmlNode)
public java.util.Enumeration<? extends javax.swing.tree.TreeNode> 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()