Class BaseTemplateTreeNode<PAYLOAD>
java.lang.Object
org.teamapps.ux.component.template.BaseTemplateRecord<PAYLOAD>
org.teamapps.ux.component.template.BaseTemplateTreeNode<PAYLOAD>
- All Implemented Interfaces:
TreeNode,PayloadProvider<PAYLOAD>,TreeNodeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionBaseTemplateTreeNode(String caption) BaseTemplateTreeNode(String image, String caption) BaseTemplateTreeNode(String image, String caption, String description) BaseTemplateTreeNode(String image, String caption, String description, String badge) BaseTemplateTreeNode(Icon icon, String caption) BaseTemplateTreeNode(Icon icon, String caption, String description) BaseTemplateTreeNode(Icon icon, String caption, String description, String badge) BaseTemplateTreeNode(Icon icon, String image, String caption, String description, String badge, PAYLOAD payload) -
Method Summary
Modifier and TypeMethodDescriptioncopy()static <PAYLOAD> List<BaseTemplateTreeNode<PAYLOAD>> copyTree(List<BaseTemplateTreeNode<PAYLOAD>> tree) booleanWheter or not this node is initially expanded.booleanWhether or not this node has children that are not sent to the client directly but need to be lazy-loaded.booleanWhether or not this node is selectable by the user.voidsetExpanded(boolean expanded) voidsetLazyChildren(boolean lazyChildren) setParent(BaseTemplateTreeNode<PAYLOAD> parent) setPayload(PAYLOAD payload) voidsetSelectable(boolean selectable) Methods inherited from class org.teamapps.ux.component.template.BaseTemplateRecord
getAriaLabel, getBadge, getCaption, getDescription, getIcon, getImage, getPayload, getTitle, setAriaLabel, setBadge, setCaption, setDescription, setIcon, setImage, setTitle, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.node.TreeNode
getDepth, getPath, isDescendantOf, isDescendantOf
-
Constructor Details
-
BaseTemplateTreeNode
public BaseTemplateTreeNode() -
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
BaseTemplateTreeNode
-
-
Method Details
-
copy
-
setPayload
- Overrides:
setPayloadin classBaseTemplateRecord<PAYLOAD>
-
getParent
- Specified by:
getParentin interfaceTreeNode- Specified by:
getParentin interfaceTreeNodeInfo
-
setParent
-
isLazyChildren
public boolean isLazyChildren()Description copied from interface:TreeNodeInfoWhether or not this node has children that are not sent to the client directly but need to be lazy-loaded.- Specified by:
isLazyChildrenin interfaceTreeNodeInfo
-
setLazyChildren
public void setLazyChildren(boolean lazyChildren) -
isExpanded
public boolean isExpanded()Description copied from interface:TreeNodeInfoWheter or not this node is initially expanded. The user can of course change the expansion state.- Specified by:
isExpandedin interfaceTreeNodeInfo
-
setExpanded
public void setExpanded(boolean expanded) -
isSelectable
public boolean isSelectable()Description copied from interface:TreeNodeInfoWhether or not this node is selectable by the user.- Specified by:
isSelectablein interfaceTreeNodeInfo
-
setSelectable
public void setSelectable(boolean selectable) -
copyTree
public static <PAYLOAD> List<BaseTemplateTreeNode<PAYLOAD>> copyTree(List<BaseTemplateTreeNode<PAYLOAD>> tree)
-