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
  • Field Details

  • Constructor Details

    • AbstractAsynchronousTreeNode

      public AbstractAsynchronousTreeNode(DefaultTreeModel treeModel, T parent)
  • Method Details

    • newLoadingNode

      protected abstract T newLoadingNode()
    • newErrorNode

      protected abstract T newErrorNode(Throwable ex)
    • loadChildren

      protected abstract List<T> loadChildren() throws Exception
      Throws:
      Exception
    • loadDone

      protected void loadDone(List<T> nodeList)
    • loadError

      protected void loadError(Exception ex)
    • showLoadingError

      protected void showLoadingError(Exception ex)
      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 interface AsynchronousTreeNode
    • getChildAt

      public T getChildAt(int idx)
      Specified by:
      getChildAt in interface TreeNode
    • getParent

      public T getParent()
      Specified by:
      getParent in interface TreeNode
    • reload

      public void reload()
    • children

      public Enumeration children()
      Specified by:
      children in interface TreeNode
    • sortChildren

      public void sortChildren(Comparator<T> comparator)
    • getAllowsChildren

      public boolean getAllowsChildren()
      Specified by:
      getAllowsChildren in interface TreeNode
    • getChildCount

      public int getChildCount()
      Specified by:
      getChildCount in interface TreeNode
    • getIndex

      public int getIndex(TreeNode node)
      Specified by:
      getIndex in interface TreeNode
    • isLeaf

      public boolean isLeaf()
      Specified by:
      isLeaf in interface TreeNode