DataProxy_wev8.js
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Ext JS Library 2.0.2
* Copyright(c) 2006-2008, 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 DataProxy object.
* @param {Object} params The params parameter to the load function.
*/
'beforeload',
/**
* @event load
* Fires before the load method's callback is called.
* @param {Object} This DataProxy object.
* @param {Object} o The data object.
* @param {Object} arg The callback argument object passed to the load function.
*/
'load',
/**
* @event loadexception
* Fires if an Exception occurs during data retrieval.
* @param {Object} This DataProxy object.
* @param {Object} o The data object.
* @param {Object} arg The callback argument object passed to the load function.
* @param {Object} e The Exception.
*/
'loadexception'
);
Ext.data.DataProxy.superclass.constructor.call(this);
};
Ext.extend(Ext.data.DataProxy, Ext.util.Observable);