com.sencha.gxt.data.shared.loader
Class RequestFactoryProxy<C,D>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.RequestFactoryProxy<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 RequestFactoryProxy<C,D>
extends java.lang.Object
implements DataProxy<C,D>

An abstract request factory proxy that supports processing results using either a RPC style Callback or a RequestFactory Receiver.


Constructor Summary
RequestFactoryProxy()
           
 
Method Summary
 void load(C loadConfig, Callback<D,java.lang.Throwable> callback)
          Data should be retrieved using the specified load config.
abstract  void load(C loadConfig, Receiver<? super D> receiver)
          Process results using a Receiver.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestFactoryProxy

public RequestFactoryProxy()
Method Detail

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

load

public abstract void load(C loadConfig,
                          Receiver<? super D> receiver)
Process results using a Receiver.

Parameters:
loadConfig - the load config object to be passed to server
receiver - the data callback


Copyright © 2012. All Rights Reserved.