Package: | Ext.data |
Class: | Record |
Extends: | Object |
Defined In: | Record.js |
Constructors for this class are generated by passing an Array of field definition objects to create and instances are usually only created by Ext.data.Reader objects when processing unformatted data objects.
Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below.
属性 | 定义对象 | |
---|---|---|
dirty : Boolean | Record | |
Readonly flag - true if this record has been modified. |
方法 | 定义对象 | |
---|---|---|
Record(data {Array} , id (可选) ) |
Record | |
This constructor should not be used to create Record objects. Instead, use the constructor generated by create. The p... | ||
commit() : void | Record | |
Usually called by the Ext.data.Store which owns the Record. Commits all changes made to the Record since either creat... | ||
get(name {String} ) : Object |
Record | |
Get the value of the named field. | ||
reject() : void | Record | |
Usually called by the Ext.data.Store which owns the Record. Rejects all changes made to the Record since either creat... | ||
set(name {String} , value {Object} ) : void |
Record | |
Set the named field to the specified value. |
public Boolean dirty
public function Record(data {Array}
, id (可选)
)
{Array}
: data(可选)
: idpublic function commit()
Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations.
void
public function get(name {String}
)
{String}
: nameObject
public function reject()
Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations.
void
public function set(name {String}
, value {Object}
)
{String}
: name{Object}
: valuevoid