org.cruxframework.crux.core.client.rpc
Class AsyncCallbackAdapter<T>
java.lang.Object
org.cruxframework.crux.core.client.rpc.AsyncCallbackAdapter<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.AsyncCallback<T>
- Direct Known Subclasses:
- DataSourceAsyncCallbackAdapter, RemoteDataSourceLoadAsyncCallbackAdapter
public abstract class AsyncCallbackAdapter<T>
- extends Object
- implements com.google.gwt.user.client.rpc.AsyncCallback<T>
Adapter class that provides a simple error handling mechanism and automatically update screen
widgets after processing server results.
- Author:
- Thiago Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncCallbackAdapter
public AsyncCallbackAdapter()
onSuccess
public final void onSuccess(T result)
- Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
onFailure
public final void onFailure(Throwable e)
- Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
onComplete
public abstract void onComplete(T result)
- Override this method to handle result received for a remote call
- Parameters:
result -
onError
public void onError(Throwable e)
- Override this method to add specific error handling for a remote call
- Parameters:
e -
Copyright © 2014. All rights reserved.