TreeNode
BranchTreeNode
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 | Description |
---|---|---|
protected static Enumeration<? extends TreeNode> |
EMPTY_ENUMERATION |
|
protected Node |
xmlNode |
The dom4j Node which contains the
|
Constructor | Description |
---|---|
LeafTreeNode() |
|
LeafTreeNode(TreeNode parent,
Node xmlNode) |
|
LeafTreeNode(Node xmlNode) |
Modifier and Type | Method | Description |
---|---|---|
Enumeration<? extends TreeNode> |
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<? extends TreeNode> EMPTY_ENUMERATION
protected Node xmlNode
public LeafTreeNode()
public LeafTreeNode(Node xmlNode)
public Enumeration<? extends TreeNode> children()
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public TreeNode getChildAt(int childIndex)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public void setParent(LeafTreeNode parent)
parent
- DOCUMENT ME!public Node getXmlNode()