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: 46323026319e8830a79cac91003f9dbc55e39618 $
| 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>
onSuccess
public void onSuccess(T result)
- Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
Copyright © 2004–2015 XWiki. All rights reserved.