Class AbstractLazyLoadingTreeNode<T extends TreeNode>
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.tree.AbstractLazyLoadingTreeNode<T>
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
PropTreeComponentNode,PropTreePageNode,PropTreePropertyNode,PropTreeRootNode,PropTreeScopeNode,PropTreeSessionNode,PropTreeViewNode,ViewFolderTreeNode
public abstract class AbstractLazyLoadingTreeNode<T extends TreeNode>
extends Object
implements TreeNode
Tree Node implementation which only populates its children upon demand.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidEnumeration<? extends TreeNode>children()booleangetChildAt(int index) intintbooleanisLeaf()This will be called as late a possible for the node to populate its children list.protected voidsetChildren(List<T> children)
-
Field Details
-
parent
-
-
Constructor Details
-
AbstractLazyLoadingTreeNode
-
-
Method Details
-
checkChildren
protected void checkChildren() -
setChildren
-
loadChildren
This will be called as late a possible for the node to populate its children list. May return null if there are no children. -
findChild
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode
-
getParent
-
getIndex
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
children
-