Class AbstractAsynchronousTreeNode<T extends javax.swing.tree.TreeNode>
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode<T>
 
- 
- All Implemented Interfaces:
- AsynchronousTreeNode,- javax.swing.tree.TreeNode
 - Direct Known Subclasses:
- AbstractOPCTreeNode,- HistoricalProvidersNode,- HistoricalProvidersNode.HistoricalBrowseResultNode
 
 public abstract class AbstractAsynchronousTreeNode<T extends javax.swing.tree.TreeNode> extends java.lang.Object implements AsynchronousTreeNode 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classAbstractAsynchronousTreeNode.LoadingStatus
 - 
Constructor SummaryConstructors Constructor Description AbstractAsynchronousTreeNode(javax.swing.tree.DefaultTreeModel treeModel, T parent)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidblockLoad()If the children haven't already been loaded, then loads the children of this node synchronously within this call.protected voidcheckChildren(boolean force)java.util.Enumerationchildren()booleangetAllowsChildren()TgetChildAt(int idx)intgetChildCount()intgetIndex(javax.swing.tree.TreeNode node)TgetParent()booleanisLeaf()protected abstract java.util.List<T>loadChildren()protected voidloadDone(java.util.List<T> nodeList)protected voidloadError(java.lang.Exception ex)protected abstract TnewErrorNode(java.lang.Throwable ex)protected abstract TnewLoadingNode()voidreload()protected voidshowLoadingError(java.lang.Exception ex)Optional override to display a loading errorvoidsortChildren(java.util.Comparator<T> comparator)
 
- 
- 
- 
Field Detail- 
treeModelprotected javax.swing.tree.DefaultTreeModel treeModel 
 - 
loadingNodeprotected T extends javax.swing.tree.TreeNode loadingNode 
 - 
errorNodeprotected T extends javax.swing.tree.TreeNode errorNode 
 - 
nodeListprotected java.util.List<T extends javax.swing.tree.TreeNode> nodeList 
 - 
parentprotected T extends javax.swing.tree.TreeNode parent 
 
- 
 - 
Constructor Detail- 
AbstractAsynchronousTreeNodepublic AbstractAsynchronousTreeNode(javax.swing.tree.DefaultTreeModel treeModel, T parent)
 
- 
 - 
Method Detail- 
newLoadingNodeprotected abstract T newLoadingNode() 
 - 
newErrorNodeprotected abstract T newErrorNode(java.lang.Throwable ex) 
 - 
loadChildrenprotected abstract java.util.List<T> loadChildren() throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
loadDoneprotected void loadDone(java.util.List<T> nodeList) 
 - 
loadErrorprotected void loadError(java.lang.Exception ex) 
 - 
showLoadingErrorprotected void showLoadingError(java.lang.Exception ex) Optional override to display a loading error
 - 
checkChildrenprotected void checkChildren(boolean force) 
 - 
blockLoadpublic void blockLoad() If the children haven't already been loaded, then loads the children of this node synchronously within this call.- Specified by:
- blockLoadin interface- AsynchronousTreeNode
 
 - 
getChildAtpublic T getChildAt(int idx) - Specified by:
- getChildAtin interface- javax.swing.tree.TreeNode
 
 - 
getParentpublic T getParent() - Specified by:
- getParentin interface- javax.swing.tree.TreeNode
 
 - 
reloadpublic void reload() 
 - 
childrenpublic java.util.Enumeration children() - Specified by:
- childrenin interface- javax.swing.tree.TreeNode
 
 - 
sortChildrenpublic void sortChildren(java.util.Comparator<T> comparator) 
 - 
getAllowsChildrenpublic boolean getAllowsChildren() - Specified by:
- getAllowsChildrenin interface- javax.swing.tree.TreeNode
 
 - 
getChildCountpublic int getChildCount() - Specified by:
- getChildCountin interface- javax.swing.tree.TreeNode
 
 - 
getIndexpublic int getIndex(javax.swing.tree.TreeNode node) - Specified by:
- getIndexin interface- javax.swing.tree.TreeNode
 
 - 
isLeafpublic boolean isLeaf() - Specified by:
- isLeafin interface- javax.swing.tree.TreeNode
 
 
- 
 
-