Class AbstractAsynchronousTreeNode<T extends TreeNode>
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode<T>
- All Implemented Interfaces:
AsynchronousTreeNode,TreeNode
- Direct Known Subclasses:
AbstractOPCTreeNode,HistoricalProvidersNode,HistoricalProvidersNode.HistoricalBrowseResultNode
public abstract class AbstractAsynchronousTreeNode<T extends TreeNode>
extends Object
implements AsynchronousTreeNode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIf the children haven't already been loaded, then loads the children of this node synchronously within this call.protected voidcheckChildren(boolean force) children()booleangetChildAt(int idx) intintbooleanisLeaf()protected voidprotected voidprotected abstract Tprotected abstract Tvoidreload()protected voidOptional override to display a loading errorvoidsortChildren(Comparator<T> comparator)
-
Field Details
-
treeModel
-
loadingNode
-
errorNode
-
nodeList
-
parent
-
-
Constructor Details
-
AbstractAsynchronousTreeNode
-
-
Method Details
-
newLoadingNode
-
newErrorNode
-
loadChildren
- Throws:
Exception
-
loadDone
-
loadError
-
showLoadingError
Optional override to display a loading error -
checkChildren
protected void checkChildren(boolean force) -
blockLoad
public void blockLoad()If the children haven't already been loaded, then loads the children of this node synchronously within this call.- Specified by:
blockLoadin interfaceAsynchronousTreeNode
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode
-
getParent
-
reload
public void reload() -
children
-
sortChildren
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode
-
getIndex
-
isLeaf
public boolean isLeaf()
-