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 TypeMethodDescriptionvoid
If the children haven't already been loaded, then loads the children of this node synchronously within this call.protected void
checkChildren
(boolean force) children()
boolean
getChildAt
(int idx) int
int
boolean
isLeaf()
protected void
protected void
protected abstract T
protected abstract T
void
reload()
protected void
Optional override to display a loading errorvoid
sortChildren
(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:
blockLoad
in interfaceAsynchronousTreeNode
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getParent
-
reload
public void reload() -
children
-
sortChildren
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getIndex
-
isLeaf
public boolean isLeaf()
-