public class TreeNode extends Object implements Comparable<TreeNode>
| Constructor and Description |
|---|
TreeNode() |
TreeNode(String text) |
TreeNode(String text,
Collection<TreeNode> children) |
TreeNode(String id,
String text) |
TreeNode(String id,
String text,
Collection<TreeNode> children) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TreeNode other) |
Map<String,Object> |
getA_attr() |
Object |
getChildren() |
Collection<TreeNode> |
getChildrens() |
String |
getIcon() |
String |
getId() |
Map<String,Object> |
getLi_attr() |
TreeNodeState |
getState() |
String |
getText() |
String |
getType() |
void |
setA_attr(Map<String,Object> attr) |
void |
setChildren(Collection<TreeNode> childrens) |
void |
setHasChildren(Boolean hasChildren) |
void |
setIcon(String icon) |
void |
setId(String id) |
void |
setLi_attr(Map<String,Object> attr) |
void |
setState(TreeNodeState state) |
void |
setText(String text) |
void |
setType(String type) |
String |
toString() |
public TreeNode()
public TreeNode(String text)
public TreeNode(String text, Collection<TreeNode> children)
public TreeNode(String id, String text, Collection<TreeNode> children)
public Object getChildren()
public Collection<TreeNode> getChildrens()
public String getIcon()
public String getId()
public TreeNodeState getState()
public String getText()
public String getType()
public void setChildren(Collection<TreeNode> childrens)
childrens - the Tree Node childrenspublic void setIcon(String icon)
icon - the Tree Node Iconpublic void setId(String id)
id - the Tree Node Idpublic void setState(TreeNodeState state)
state - the Tree Node State opened, disabled or selectedpublic void setText(String text)
text - the Tree Node Titlepublic void setType(String type)
type - the Tree Node Typepublic void setHasChildren(Boolean hasChildren)
public int compareTo(TreeNode other)
compareTo in interface Comparable<TreeNode>Copyright © 2017. All rights reserved.