com.esri.core.tasks
Class TaskCallbackListener<T>

java.lang.Object
  extended by com.esri.core.tasks.TaskCallbackListener<T>
All Implemented Interfaces:
com.esri.core.internal.tasks.TaskListener<T>

public class TaskCallbackListener<T>
extends Object
implements com.esri.core.internal.tasks.TaskListener<T>


Field Summary
 
Fields inherited from interface com.esri.core.internal.tasks.TaskListener
ON_CANCEL, ON_ERROR, ON_OK
 
Constructor Summary
TaskCallbackListener(CallbackListener<T> callback, boolean onEDT)
          Instantiates a new query task listener.
 
Method Summary
 void onCompletion(short state, T value)
           
 void onError(Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskCallbackListener

public TaskCallbackListener(CallbackListener<T> callback,
                            boolean onEDT)
Instantiates a new query task listener.

Parameters:
callback - the call back to execute
onEDT - true if call back should run on the EDT
Method Detail

onCompletion

public void onCompletion(short state,
                         T value)
Specified by:
onCompletion in interface com.esri.core.internal.tasks.TaskListener<T>

onError

public void onError(Throwable e)
Specified by:
onError in interface com.esri.core.internal.tasks.TaskListener<T>


Copyright © 2012. All Rights Reserved.