org.xwiki.gwt.user.client
Class NativeAsyncCallback<T>
java.lang.Object
org.xwiki.gwt.user.client.NativeAsyncCallback<T>
- Type Parameters:
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).
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.AsyncCallback<T>
public class NativeAsyncCallback<T>
- extends Object
- implements com.google.gwt.user.client.rpc.AsyncCallback<T>
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeAsyncCallback
public NativeAsyncCallback(JavaScriptObject onSuccess,
JavaScriptObject onFailure)
- Creates a new native
AsyncCallback by wrapping the given JavaScript functions.
- Parameters:
onSuccess - the JavaScript function to call on successonFailure - the JavaScript function to call on failure
onFailure
public void onFailure(Throwable caught)
-
- Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
- See Also:
AsyncCallback.onFailure(Throwable)
onSuccess
public void onSuccess(T result)
-
- Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
- See Also:
AsyncCallback.onSuccess(Object)
Copyright © 2004-2011 XWiki. All Rights Reserved.