Class BasicTreeNode<T>
java.lang.Object
de.xima.fc.gui.model.tree.BasicTreeNode<T>
- Type Parameters:
T- Type of the tree data.
- All Implemented Interfaces:
org.primefaces.model.TreeNode<T>
A basic tree node.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new basic root node.BasicTreeNode(String type, T data, String rowKey, org.primefaces.model.TreeNode<T> parent) Creates a new node with a parent. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidintgetData()org.primefaces.model.TreeNode<T> getType()booleanbooleanisLeaf()booleanbooleanbooleanvoidsetExpanded(boolean expanded) voidvoidsetPartialSelected(boolean value) voidvoidsetSelectable(boolean selectable) voidsetSelected(boolean selected) void
-
Constructor Details
-
BasicTreeNode
public BasicTreeNode()Creates a new basic root node. -
BasicTreeNode
Creates a new node with a parent.- Parameters:
type- Type of the tree node, can be used later to show a different UI depending on the type.data- User-defined data for the node.rowKey- Key for this node.parent- Parent of this node.
-
-
Method Details
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceorg.primefaces.model.TreeNode<T>
-
getParent
-
setParent
-
getData
-
getChildren
-
getRowKey
-
setRowKey
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfaceorg.primefaces.model.TreeNode<T>
-
isExpanded
public boolean isExpanded()- Specified by:
isExpandedin interfaceorg.primefaces.model.TreeNode<T>
-
setExpanded
public void setExpanded(boolean expanded) - Specified by:
setExpandedin interfaceorg.primefaces.model.TreeNode<T>
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceorg.primefaces.model.TreeNode<T>
-
setSelected
public void setSelected(boolean selected) - Specified by:
setSelectedin interfaceorg.primefaces.model.TreeNode<T>
-
isSelectable
public boolean isSelectable()- Specified by:
isSelectablein interfaceorg.primefaces.model.TreeNode<T>
-
setSelectable
public void setSelectable(boolean selectable) - Specified by:
setSelectablein interfaceorg.primefaces.model.TreeNode<T>
-
isPartialSelected
public boolean isPartialSelected()- Specified by:
isPartialSelectedin interfaceorg.primefaces.model.TreeNode<T>
-
setPartialSelected
public void setPartialSelected(boolean value) - Specified by:
setPartialSelectedin interfaceorg.primefaces.model.TreeNode<T>
-
getType
-
setType
-
clearParent
public void clearParent()- Specified by:
clearParentin interfaceorg.primefaces.model.TreeNode<T>
-
addChild
-