Class AbstractLazyLoadingTreeNode<T extends javax.swing.tree.TreeNode>
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.tree.AbstractLazyLoadingTreeNode<T>
 
- 
- All Implemented Interfaces:
- javax.swing.tree.TreeNode
 - Direct Known Subclasses:
- PropTreeComponentNode,- PropTreePageNode,- PropTreePropertyNode,- PropTreeRootNode,- PropTreeScopeNode,- PropTreeSessionNode,- PropTreeViewNode,- ViewFolderTreeNode
 
 public abstract class AbstractLazyLoadingTreeNode<T extends javax.swing.tree.TreeNode> extends java.lang.Object implements javax.swing.tree.TreeNodeTree Node implementation which only populates its children upon demand.
- 
- 
Field SummaryFields Modifier and Type Field Description protected javax.swing.tree.TreeNodeparent
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractLazyLoadingTreeNode(javax.swing.tree.TreeNode parent)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckChildren()java.util.Enumeration<? extends javax.swing.tree.TreeNode>children()java.util.Optional<T>findChild(java.util.function.Predicate<T> predicate)booleangetAllowsChildren()javax.swing.tree.TreeNodegetChildAt(int index)intgetChildCount()intgetIndex(javax.swing.tree.TreeNode node)javax.swing.tree.TreeNodegetParent()booleanisLeaf()protected abstract java.util.List<T>loadChildren()This will be called as late a possible for the node to populate its children list.protected voidsetChildren(java.util.List<T> children)
 
- 
- 
- 
Method Detail- 
checkChildrenprotected void checkChildren() 
 - 
setChildrenprotected void setChildren(java.util.List<T> children) 
 - 
loadChildren@Nullable protected abstract java.util.List<T> 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.
 - 
getChildAtpublic javax.swing.tree.TreeNode getChildAt(int index) - Specified by:
- getChildAtin interface- javax.swing.tree.TreeNode
 
 - 
getChildCountpublic int getChildCount() - Specified by:
- getChildCountin interface- javax.swing.tree.TreeNode
 
 - 
getParentpublic javax.swing.tree.TreeNode getParent() - Specified by:
- getParentin interface- javax.swing.tree.TreeNode
 
 - 
getIndexpublic int getIndex(javax.swing.tree.TreeNode node) - Specified by:
- getIndexin interface- javax.swing.tree.TreeNode
 
 - 
getAllowsChildrenpublic boolean getAllowsChildren() - Specified by:
- getAllowsChildrenin interface- javax.swing.tree.TreeNode
 
 - 
isLeafpublic boolean isLeaf() - Specified by:
- isLeafin interface- javax.swing.tree.TreeNode
 
 - 
childrenpublic java.util.Enumeration<? extends javax.swing.tree.TreeNode> children() - Specified by:
- childrenin interface- javax.swing.tree.TreeNode
 
 
- 
 
-