com.extjs.gxt.ui.client.data
Class ScriptTagProxy<D>
java.lang.Object
com.extjs.gxt.ui.client.data.ScriptTagProxy<D>
- Type Parameters:
D
- the data type being returned by the proxy
- All Implemented Interfaces:
- DataProxy<D>
public class ScriptTagProxy<D>
- extends java.lang.Object
- implements DataProxy<D>
A DataProxy
that reads a data from a URL which may be in a
domain other than the originating domain of the running page.
Note that if you are retrieving data from a page that is in a domain that is
NOT the same as the originating domain of the running page, you must use this
class, rather than HttpProxy.
When using a load config object that implements LoadConfig
or
ModelData
, all properties and property values will be sent as
request parameters in the load request.
- See Also:
HttpProxy
Method Summary |
protected void |
destroyTrans(java.lang.String id)
|
protected java.lang.String |
generateUrl(java.lang.Object loadConfig)
|
void |
load(DataReader<D> reader,
java.lang.Object loadConfig,
com.google.gwt.user.client.rpc.AsyncCallback<D> callback)
Data should be retrieved using the specified load config. |
protected void |
onReceivedData(java.lang.String transId,
com.google.gwt.core.client.JavaScriptObject jso)
|
void |
setUrl(java.lang.String url)
Sets the proxies url. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptTagProxy
public ScriptTagProxy(java.lang.String url)
load
public void load(DataReader<D> reader,
java.lang.Object loadConfig,
com.google.gwt.user.client.rpc.AsyncCallback<D> callback)
- Description copied from interface:
DataProxy
- Data should be retrieved using the specified load config.
- Specified by:
load
in interface DataProxy<D>
- Parameters:
reader
- the reader instanceloadConfig
- the configcallback
- the data callback
setUrl
public void setUrl(java.lang.String url)
- Sets the proxies url.
- Parameters:
url
- the url
destroyTrans
protected void destroyTrans(java.lang.String id)
generateUrl
protected java.lang.String generateUrl(java.lang.Object loadConfig)
onReceivedData
protected void onReceivedData(java.lang.String transId,
com.google.gwt.core.client.JavaScriptObject jso)