T - response data typepublic class CancelableAsyncCallback<T> extends Object implements com.google.gwt.user.client.rpc.AsyncCallback<T>
AsyncCallback that can be canceled before it is called.| Constructor and Description |
|---|
CancelableAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> callback)
Wraps the given call-back and add the ability to cancel it.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCanceled() |
void |
onFailure(Throwable caught) |
void |
onSuccess(T result) |
void |
setCanceled(boolean canceled)
Sets the canceled state of this call-back.
|
public CancelableAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> callback)
callback - the call-back that might be canceledpublic void onFailure(Throwable caught)
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>public void onSuccess(T result)
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<T>public boolean isCanceled()
true if this call-back is canceled, false otherwisepublic void setCanceled(boolean canceled)
canceled - true to cancel this call-back, false to reactivate itCopyright © 2004–2016 XWiki. All rights reserved.