|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.CancelableAsyncCallback<T>
T - response data typepublic class CancelableAsyncCallback<T>
An AsyncCallback that can be canceled before it is called.
| Constructor Summary | |
|---|---|
CancelableAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> callback)
Wraps the given call-back and add the ability to cancel it. |
|
| Method Summary | |
|---|---|
boolean |
isCanceled()
|
void |
onFailure(java.lang.Throwable caught)
|
void |
onSuccess(T result)
|
void |
setCanceled(boolean canceled)
Sets the canceled state of this call-back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CancelableAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> callback)
callback - the call-back that might be canceled| Method Detail |
|---|
public void onFailure(java.lang.Throwable caught)
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>AsyncCallback.onFailure(Throwable)public void onSuccess(T result)
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<T>AsyncCallback.onSuccess(Object)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 it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||