com.sencha.gxt.data.client.loader
Class RpcProxy<C,D>

java.lang.Object
  extended by com.sencha.gxt.data.client.loader.RpcProxy<C,D>
Type Parameters:
C - the type of data used to configure the load from the proxy
D - the type of data being returned by the data proxy
All Implemented Interfaces:
DataProxy<C,D>

public abstract class RpcProxy<C,D>
extends java.lang.Object
implements DataProxy<C,D>

DataProxy implementation that retrieves data using GWT RPC.


Constructor Summary
RpcProxy()
           
 
Method Summary
abstract  void load(C loadConfig, AsyncCallback<D> callback)
          Retrieves data using GWT RPC.
 void load(C loadConfig, Callback<D,java.lang.Throwable> callback)
          Data should be retrieved using the specified load config.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcProxy

public RpcProxy()
Method Detail

load

public abstract void load(C loadConfig,
                          AsyncCallback<D> callback)
Retrieves data using GWT RPC.

Parameters:
loadConfig - the load config describing the data to retrieve
callback - the callback to invoke on success or failure

load

public final void load(C loadConfig,
                       Callback<D,java.lang.Throwable> callback)
Description copied from interface: DataProxy
Data should be retrieved using the specified load config. When specified, the DataReader can be used to "process" the raw data.

Specified by:
load in interface DataProxy<C,D>
Parameters:
loadConfig - the load config object to be passed to server
callback - the data callback


Copyright © 2012. All Rights Reserved.