X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/docs/source/Record.html diff --git a/docs/source/Record.html b/docs/source/Record.html index cb6d31f4..1a62fa0d 100644 --- a/docs/source/Record.html +++ b/docs/source/Record.html @@ -1,11 +1,17 @@ - - - The source code - - - - -
/** + + + The source code + + + + +
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+
/** * @class Ext.data.Record *

Instances of this class encapsulate both Record definition information, and Record * value information for use in {@link Ext.data.Store} objects, or any code which needs @@ -22,8 +28,9 @@ * {@link #data} and {@link #id} properties.

*

Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below.

* @constructor - * This constructor should not be used to create Record objects. Instead, use {@link #create} to - * generate a subclass of Ext.data.Record configured with information about its constituent fields. + *

This constructor should not be used to create Record objects. Instead, use {@link #create} to + * generate a subclass of Ext.data.Record configured with information about its constituent fields.

+ *

The generated constructor has the same signature as this constructor.

* @param {Object} data (Optional) An object, the properties of which provide values for the new Record's * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue} * for each field will be assigned. @@ -74,7 +81,7 @@ myStore.{@link Ext.data.Store#add add}(myNewRecord);
* @method create * @return {function} A constructor which is used to create new Records according - * to the definition. The constructor has the same signature as {@link #Ext.data.Record}. + * to the definition. The constructor has the same signature as {@link #Record}. * @static */ Ext.data.Record.create = function(o){ @@ -142,14 +149,14 @@ Ext.data.Record.prototype = { */ dirty : false, editing : false, - error : null, + error: null,
/** * This object contains a key and value storing the original values of all modified * fields or is null if no fields have been modified. * @property modified * @type {Object} */ - modified : null, + modified: null,
/** * false when the record does not yet exist in a server-side database (see * {@link #markDirty}). Any record which has a real database pk set as its id property @@ -201,7 +208,7 @@ rec.{@link #commit}(); // updates the view * event fire. * * @param {String} name The {@link Ext.data.Field#name name of the field} to set. - * @param {String/Object/Array} value The value to set the field to. + * @param {Object} value The value to set the field to. */ set : function(name, value){ var isObj = (typeof value === 'object'); @@ -224,21 +231,21 @@ rec.{@link #commit}(); // updates the view }, // private - afterEdit : function(){ + afterEdit: function(){ if(this.store){ this.store.afterEdit(this); } }, // private - afterReject : function(){ + afterReject: function(){ if(this.store){ this.store.afterReject(this); } }, // private - afterCommit : function(){ + afterCommit: function(){ if(this.store){ this.store.afterCommit(this); } @@ -398,7 +405,6 @@ rec.{@link #commit}(); // updates the view this.modified[f.name] = this.data[f.name]; },this); } -}; -
- +}; + \ No newline at end of file