com.alee.extended.tree
Interface AsyncPathExpansionListener<E extends AsyncUniqueNode>

Type Parameters:
E - node type
All Known Implementing Classes:
AsyncPathExpansionAdapter

public interface AsyncPathExpansionListener<E extends AsyncUniqueNode>

This custom listener is used to track async tree path expansion action.

Author:
Mikle Garin

Method Summary
 void pathExpanded(E lastNode)
          Notifies that path expansion has finished succesfully.
 void pathFailedToExpand()
          Notifies that path expansion has failed and did not find even a single node.
 void pathNodeExpanded(E expandedNode)
          Notifies that one of path nodes was just expanded.
 void pathPartiallyExpanded(E lastFoundNode)
          Notifies that path expansion was not fully finished and cannot be continued.
 

Method Detail

pathFailedToExpand

void pathFailedToExpand()
Notifies that path expansion has failed and did not find even a single node. This might happen in case there is no loaded nodes with an ID from the path in the moment when expansion is invoked.


pathNodeExpanded

void pathNodeExpanded(E expandedNode)
Notifies that one of path nodes was just expanded. This might be called a few times per single path expansion depending on the length of the path and some other factors.

Parameters:
expandedNode - recently expanded node from the specified path

pathPartiallyExpanded

void pathPartiallyExpanded(E lastFoundNode)
Notifies that path expansion was not fully finished and cannot be continued. Last node that could be expanded from the specified path is returned. There might be a lot of reasons why this happened - failed node childs loading, unexisting node ID etc.

Parameters:
lastFoundNode - last reached path node

pathExpanded

void pathExpanded(E lastNode)
Notifies that path expansion has finished succesfully. That means that the last path node was actually reached in the tree.

Parameters:
lastNode - last path node