com.esri.core.tasks
Class TaskCallbackListener<T>
java.lang.Object
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>
Fields inherited from interface com.esri.core.internal.tasks.TaskListener |
ON_CANCEL, ON_ERROR, ON_OK |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskCallbackListener
public TaskCallbackListener(CallbackListener<T> callback,
boolean onEDT)
- Instantiates a new query task listener.
- Parameters:
callback
- the call back to executeonEDT
- true if call back should run on the EDT
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.