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

java.lang.Object
  extended by com.alee.extended.tree.AsyncTreeModelAdapter<E>
All Implemented Interfaces:
AsyncTreeModelListener<E>, java.util.EventListener

public abstract class AsyncTreeModelAdapter<E extends AsyncUniqueNode>
extends java.lang.Object
implements AsyncTreeModelListener<E>

AsyncTreeModelListener adapter class.

Author:
Mikle Garin

Constructor Summary
AsyncTreeModelAdapter()
           
 
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

AsyncTreeModelAdapter

public AsyncTreeModelAdapter()
Method Detail

childsLoadStarted

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

Specified by:
childsLoadStarted in interface AsyncTreeModelListener<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 AsyncTreeModelListener<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 AsyncTreeModelListener<E extends AsyncUniqueNode>
Parameters:
parent - node which childs were loaded
cause - childs load failure cause