Package: | Ext.data |
Defined In: | Record.js |
Class: | Record |
Extends: | Object |
Constructors for this class are generated by passing an Array of field definition objects to create.
Instances are usually only created by Ext.data.Reader implementations when processing unformatted data
objects.
Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below.
Method | Defined By | |
---|---|---|
Record( Array data , [Object id ] ) This constructor should not be used to create Record objects. Instead, use the constructor generated by
create. The p...
This constructor should not be used to create Record objects. Instead, use the constructor generated by
create. The parameters are the same.
Parameters:
|
Record | |
beginEdit() : void Begin an edit. While in edit mode, no events are relayed to the containing store.
Begin an edit. While in edit mode, no events are relayed to the containing store.
Parameters:
|
Record | |
cancelEdit() : void Cancels all changes made in the current edit operation.
Cancels all changes made in the current edit operation.
Parameters:
|
Record | |
commit( [Boolean silent ] ) : void Usually called by the Ext.data.Store which owns the Record.
Commits all changes made to the Record since either creat...
Usually called by the Ext.data.Store which owns the Record.
Commits all changes made to the Record since either creation, or the last commit operation.
Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations.
Parameters:
|
Record | |
copy( [String id ] ) : Record Creates a copy of this record.
Creates a copy of this record.
Parameters:
|
Record | |
create( [Array o ] ) : function <static> Generate a constructor for a specific record layout.
<static> Generate a constructor for a specific record layout.
Parameters:
|
Record | |
endEdit() : void End an edit. If any data was modified, the containing store is notified.
End an edit. If any data was modified, the containing store is notified.
Parameters:
|
Record | |
get( String name ) : Object Get the value of the named field.
Get the value of the named field.
Parameters:
|
Record | |
getChanges() : Object Gets a hash of only the fields that have been modified since this record was created or commited.
Gets a hash of only the fields that have been modified since this record was created or commited.
Parameters:
|
Record | |
reject( [Boolean silent ] ) : void Usually called by the Ext.data.Store which owns the Record.
Rejects all changes made to the Record since either creat...
Usually called by the Ext.data.Store which owns the Record.
Rejects all changes made to the Record since either creation, or the last commit operation.
Modified fields are reverted to their original values.
Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations.
Parameters:
|
Record | |
set( String name , Object value ) : void Set the named field to the specified value.
Set the named field to the specified value.
Parameters:
|
Record |