Constructor and Description |
---|
SimpleTreeNode() |
SimpleTreeNode(String id) |
SimpleTreeNode(String id,
String label) |
SimpleTreeNode(String id,
String label,
List<TreeNode> children) |
Modifier and Type | Method and Description |
---|---|
SimpleTreeNode |
addChild(TreeNode child) |
List<TreeNode> |
children()
Returns a list of child tree node
|
SimpleTreeNode |
children(List<TreeNode> children) |
String |
id()
Returns
id of this node. |
SimpleTreeNode |
id(String id) |
String |
label()
Returns the label on the current tree node
|
SimpleTreeNode |
label(String label) |
SimpleTreeNode |
removeChild(String id) |
SimpleTreeNode |
removeChild(TreeNode child) |
public SimpleTreeNode()
public SimpleTreeNode(String id)
public 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(String id)
public String label()
TreeNode
Returns the label on the current tree node
public SimpleTreeNode label(String label)
public List<TreeNode> children()
TreeNode
Returns a list of child tree node
public SimpleTreeNode children(List<TreeNode> children)
public SimpleTreeNode addChild(TreeNode child)
public SimpleTreeNode removeChild(TreeNode child)
public SimpleTreeNode removeChild(String id)
Copyright © 2014–2018 ActFramework. All rights reserved.