public class DefaultTreeNode extends Object implements TreeNode, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TYPE |
| Constructor and Description |
|---|
DefaultTreeNode() |
DefaultTreeNode(Object data) |
DefaultTreeNode(Object data,
TreeNode parent) |
DefaultTreeNode(String type,
Object data,
TreeNode parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearParent() |
boolean |
equals(Object obj) |
int |
getChildCount() |
List<TreeNode> |
getChildren() |
Object |
getData() |
TreeNode |
getParent() |
String |
getRowKey() |
String |
getType() |
int |
hashCode() |
boolean |
isExpanded() |
boolean |
isLeaf() |
boolean |
isPartialSelected() |
boolean |
isSelectable() |
boolean |
isSelected() |
void |
setChildren(List<TreeNode> children) |
void |
setData(Object data) |
void |
setExpanded(boolean expanded) |
void |
setParent(TreeNode parent) |
void |
setPartialSelected(boolean value) |
void |
setRowKey(String rowKey) |
void |
setSelectable(boolean selectable) |
void |
setSelected(boolean value) |
void |
setType(String type) |
String |
toString() |
public static final String DEFAULT_TYPE
public DefaultTreeNode()
public DefaultTreeNode(Object data)
public void setData(Object data)
public List<TreeNode> getChildren()
getChildren in interface TreeNodepublic void clearParent()
clearParent in interface TreeNodepublic boolean isExpanded()
isExpanded in interface TreeNodepublic void setExpanded(boolean expanded)
setExpanded in interface TreeNodepublic boolean isSelected()
isSelected in interface TreeNodepublic void setSelected(boolean value)
setSelected in interface TreeNodepublic boolean isSelectable()
isSelectable in interface TreeNodepublic void setSelectable(boolean selectable)
setSelectable in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic boolean isPartialSelected()
isPartialSelected in interface TreeNodepublic void setPartialSelected(boolean value)
setPartialSelected in interface TreeNodeCopyright © 2018. All rights reserved.