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 TreeNode
public void clearParent()
clearParent
in interface TreeNode
public boolean isExpanded()
isExpanded
in interface TreeNode
public void setExpanded(boolean expanded)
setExpanded
in interface TreeNode
public boolean isSelected()
isSelected
in interface TreeNode
public void setSelected(boolean value)
setSelected
in interface TreeNode
public boolean isSelectable()
isSelectable
in interface TreeNode
public void setSelectable(boolean selectable)
setSelectable
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public boolean isPartialSelected()
isPartialSelected
in interface TreeNode
public void setPartialSelected(boolean value)
setPartialSelected
in interface TreeNode
Copyright © 2018. All rights reserved.