git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
50 lines
1.6 KiB
JavaScript
50 lines
1.6 KiB
JavaScript
/*
|
|
* Ext JS Library 2.3.0
|
|
* Copyright(c) 2006-2009, Ext JS, LLC.
|
|
* licensing@extjs.com
|
|
*
|
|
* http://extjs.com/license
|
|
*/
|
|
|
|
/**
|
|
* @class Ext.data.DataProxy
|
|
* @extends Ext.util.Observable
|
|
* This class is an abstract base class for implementations which provide retrieval of
|
|
* unformatted data objects.<br>
|
|
* <p>
|
|
* DataProxy implementations are usually used in conjunction with an implementation of Ext.data.DataReader
|
|
* (of the appropriate type which knows how to parse the data object) to provide a block of
|
|
* {@link Ext.data.Records} to an {@link Ext.data.Store}.<br>
|
|
* <p>
|
|
* Custom implementations must implement the load method as described in
|
|
* {@link Ext.data.HttpProxy#load}.
|
|
*/
|
|
Ext.data.DataProxy = function(){
|
|
this.addEvents(
|
|
/**
|
|
* @event beforeload
|
|
* Fires before a network request is made to retrieve a data object.
|
|
* @param {Object} this
|
|
* @param {Object} params The params object passed to the {@link #load} function
|
|
*/
|
|
'beforeload',
|
|
/**
|
|
* @event load
|
|
* Fires before the load method's callback is called.
|
|
* @param {Object} this
|
|
* @param {Object} o The data object
|
|
* @param {Object} arg The callback's arg object passed to the {@link #load} function
|
|
*/
|
|
'load'
|
|
);
|
|
Ext.data.DataProxy.superclass.constructor.call(this);
|
|
};
|
|
|
|
Ext.extend(Ext.data.DataProxy, Ext.util.Observable, {
|
|
/**
|
|
* Destroys the proxy by purging any event listeners and cancelling any active requests.
|
|
*/
|
|
destroy: function(){
|
|
this.purgeListeners();
|
|
}
|
|
}); |