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

Type Parameters:
E - custom node type
All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AsyncTreeAdapter

public interface AsyncTreeListener<E extends AsyncUniqueNode>
extends java.util.EventListener

This listener interface provide various asynchronous tree events.

Author:
Mikle Garin

Method Summary
 void childsLoadCompleted(E parent, java.util.List<E> childs)
          Invoked when childs load operation finishes.
 void childsLoadFailed(E parent, java.lang.Throwable cause)
          Invoked when childs load operation failed.
 void childsLoadStarted(E parent)
          Invoked when childs load operation starts.
 

Method Detail

childsLoadStarted

void childsLoadStarted(E parent)
Invoked when childs load operation starts.

Parameters:
parent - node which childs are being loaded

childsLoadCompleted

void childsLoadCompleted(E parent,
                         java.util.List<E> childs)
Invoked when childs load operation finishes.

Parameters:
parent - node which childs were loaded
childs - loaded child nodes

childsLoadFailed

void childsLoadFailed(E parent,
                      java.lang.Throwable cause)
Invoked when childs load operation failed.

Parameters:
parent - node which childs were loaded
cause - childs load failure cause