|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.NativeAsyncCallback<T>
T - The type of the return value that was declared in the synchronous version of the method. If the return
type is a primitive, use the boxed version of that primitive (for example, an int return type
becomes an Integer type argument, and a void return type becomes a Void type
argument, which is always null).public class NativeAsyncCallback<T>
| Constructor Summary | |
|---|---|
NativeAsyncCallback(JavaScriptObject onSuccess,
JavaScriptObject onFailure)
Creates a new native AsyncCallback by wrapping the given JavaScript functions. |
|
| Method Summary | |
|---|---|
void |
onFailure(java.lang.Throwable caught)
|
void |
onSuccess(T result)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeAsyncCallback(JavaScriptObject onSuccess,
JavaScriptObject onFailure)
AsyncCallback by wrapping the given JavaScript functions.
onSuccess - the JavaScript function to call on successonFailure - the JavaScript function to call on failure| 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||