打印版式

Class Ext.data.MemoryProxy

Package:Ext.data
Class:MemoryProxy
Extends:Object
Defined In:MemoryProxy.js
An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor to the Reader when its load method is called.

属性   -  方法   -  事件

公共属性

此类没有公共属性。

公共方法

方法 定义对象
  MemoryProxy(Object data) MemoryProxy
  load(Object params, Ext.data.DataReader) reader, Function callback, Object scope, Object arg) : void MemoryProxy
Load data from the requested source (in this case an in-memory data object passed to the constructor), read the data ...

公共事件

此类没有公共事件。

构造函数

MemoryProxy

public function MemoryProxy(Object data)
参数:
  • data : Object
    The data object which the Reader uses to construct a block of Ext.data.Records.

方法详情

load

public function load(Object params, Ext.data.DataReader) reader, Function callback, Object scope, Object arg)
Load data from the requested source (in this case an in-memory data object passed to the constructor), read the data object into a block of Ext.data.Records using the passed Ext.data.DataReader implementation, and process that block using the passed callback.
参数:
  • params : Object
    This parameter is not used by the MemoryProxy class.
  • reader : Ext.data.DataReader)
    The Reader object which converts the data object into a block of Ext.data.Records.
  • callback : Function
    The function into which to pass the block of Ext.data.records. The function must be passed
    • The Record block object
    • The "arg" argument from the load function
    • A boolean success indicator
  • scope : Object
    The scope in which to call the callback
  • arg : Object
    An optional argument which is passed to the callback as its second parameter.
返回:
  • void
This method is defined by MemoryProxy.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.