com.alee.extended.tree
Class AsyncTreeAdapter<E extends AsyncUniqueNode>

java.lang.Object
  extended by com.alee.extended.tree.AsyncTreeAdapter<E>
Type Parameters:
E - custom node type
All Implemented Interfaces:
AsyncTreeListener<E>, java.util.EventListener

public abstract class AsyncTreeAdapter<E extends AsyncUniqueNode>
extends java.lang.Object
implements AsyncTreeListener<E>

This listener class provide various asynchronous tree events.

Author:
Mikle Garin

Constructor Summary
AsyncTreeAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncTreeAdapter

public AsyncTreeAdapter()
Method Detail

childsLoadStarted

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

Specified by:
childsLoadStarted in interface AsyncTreeListener<E extends AsyncUniqueNode>
Parameters:
parent - node which childs are being loaded

childsLoadCompleted

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

Specified by:
childsLoadCompleted in interface AsyncTreeListener<E extends AsyncUniqueNode>
Parameters:
parent - node which childs were loaded
childs - loaded child nodes

childsLoadFailed

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

Specified by:
childsLoadFailed in interface AsyncTreeListener<E extends AsyncUniqueNode>
Parameters:
parent - node which childs were loaded
cause - childs load failure cause