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 |
private TreeNode |
parent
The parent node of this TreeNode
|
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
public LeafTreeNode()
public LeafTreeNode(Node xmlNode)
public LeafTreeNode(TreeNode parent, Node xmlNode)
public Enumeration 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)
public Node getXmlNode()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses