org.cruxframework.crux.core.client.rpc
Class AsyncCallbackAdapter<T>

java.lang.Object
  extended by 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

Constructor Summary
AsyncCallbackAdapter()
           
 
Method Summary
abstract  void onComplete(T result)
          Override this method to handle result received for a remote call
 void onError(Throwable e)
          Override this method to add specific error handling for a remote call
 void onFailure(Throwable e)
           
 void onSuccess(T result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncCallbackAdapter

public AsyncCallbackAdapter()
Method Detail

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.