Constructor and Description |
---|
SimpleTreeNode() |
SimpleTreeNode(java.lang.String id) |
SimpleTreeNode(java.lang.String id,
java.lang.String label) |
SimpleTreeNode(java.lang.String id,
java.lang.String label,
java.util.List<TreeNode> children) |
Modifier and Type | Method and Description |
---|---|
SimpleTreeNode |
addChild(TreeNode child) |
java.util.List<TreeNode> |
children()
Returns a list of child tree node
|
SimpleTreeNode |
children(java.util.List<TreeNode> children) |
java.lang.String |
id()
Returns
id of this node. |
SimpleTreeNode |
id(java.lang.String id) |
java.lang.String |
label()
Returns the label on the current tree node
|
SimpleTreeNode |
label(java.lang.String label) |
SimpleTreeNode |
removeChild(java.lang.String id) |
SimpleTreeNode |
removeChild(TreeNode child) |
public SimpleTreeNode()
public SimpleTreeNode(java.lang.String id)
public SimpleTreeNode(java.lang.String id, java.lang.String label)
public SimpleTreeNode(java.lang.String id, java.lang.String label, java.util.List<TreeNode> children)
public java.lang.String id()
TreeNode
Returns id
of this node.
The id
of a node can be used to identify a node in a certain context In other words children nodes of the same parent node cannot share a same id
public SimpleTreeNode id(java.lang.String id)
public java.lang.String label()
TreeNode
Returns the label on the current tree node
public SimpleTreeNode label(java.lang.String label)
public java.util.List<TreeNode> children()
TreeNode
Returns a list of child tree node
public SimpleTreeNode children(java.util.List<TreeNode> children)
public SimpleTreeNode addChild(TreeNode child)
public SimpleTreeNode removeChild(TreeNode child)
public SimpleTreeNode removeChild(java.lang.String id)
Copyright © 2014–2017 ActFramework. All rights reserved.