Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.data.Model.js
1 Ext.data.JsonP.Ext_data_Model({
2   "tagname": "class",
3   "name": "Ext.data.Model",
4   "doc": "<p>A Model represents some object that your application manages. For example, one might define a Model for Users, Products,\nCars, or any other real-world object that we want to model in the system. Models are registered via the <a href=\"#/api/Ext.ModelManager\" rel=\"Ext.ModelManager\" class=\"docClass\">model manager</a>,\nand are used by <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">stores</a>, which are in turn used by many of the data-bound components in Ext.</p>\n\n\n\n\n<p>Models are defined as a set of fields and any arbitrary methods and properties relevant to the model. For example:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',  type: 'string'},\n        {name: 'age',   type: 'int'},\n        {name: 'phone', type: 'string'},\n        {name: 'alive', type: 'boolean', defaultValue: true}\n    ],\n\n    changeName: function() {\n        var oldName = this.get('name'),\n            newName = oldName + \" The Barbarian\";\n\n        this.set('name', newName);\n    }\n});\n</code></pre>\n\n\n\n\n<p>The fields array is turned into a <a href=\"#/api/Ext.util.MixedCollection\" rel=\"Ext.util.MixedCollection\" class=\"docClass\">MixedCollection</a> automatically by the <a href=\"#/api/Ext.ModelManager\" rel=\"Ext.ModelManager\" class=\"docClass\">ModelManager</a>, and all\nother functions and properties are copied to the new Model's prototype.</p>\n\n\n\n\n<p>Now we can create instances of our User model and call any model logic we defined:</p>\n\n\n\n\n<pre><code>var user = Ext.ModelManager.create({\n    name : 'Conan',\n    age  : 24,\n    phone: '555-555-5555'\n}, 'User');\n\nuser.changeName();\nuser.get('name'); //returns \"Conan The Barbarian\"\n</code></pre>\n\n\n\n\n<p><u>Validations</u></p>\n\n\n\n\n<p>Models have built-in support for validations, which are executed against the validator functions in\n<a href=\"#/api/Ext.data.validations\" rel=\"Ext.data.validations\" class=\"docClass\">Ext.data.validations</a> (<a href=\"#/api/Ext.data.validations\" rel=\"Ext.data.validations\" class=\"docClass\">see all validation functions</a>). Validations are easy to add to models:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',     type: 'string'},\n        {name: 'age',      type: 'int'},\n        {name: 'phone',    type: 'string'},\n        {name: 'gender',   type: 'string'},\n        {name: 'username', type: 'string'},\n        {name: 'alive',    type: 'boolean', defaultValue: true}\n    ],\n\n    validations: [\n        {type: 'presence',  field: 'age'},\n        {type: 'length',    field: 'name',     min: 2},\n        {type: 'inclusion', field: 'gender',   list: ['Male', 'Female']},\n        {type: 'exclusion', field: 'username', list: ['Admin', 'Operator']},\n        {type: 'format',    field: 'username', matcher: /([a-z]+)[0-9]{2,3}/}\n    ]\n});\n</code></pre>\n\n\n\n\n<p>The validations can be run by simply calling the <a href=\"#/api/Ext.data.Model-method-validate\" rel=\"Ext.data.Model-method-validate\" class=\"docClass\">validate</a> function, which returns a <a href=\"#/api/Ext.data.Errors\" rel=\"Ext.data.Errors\" class=\"docClass\">Ext.data.Errors</a>\nobject:</p>\n\n\n\n\n<pre><code>var instance = Ext.ModelManager.create({\n    name: 'Ed',\n    gender: 'Male',\n    username: 'edspencer'\n}, 'User');\n\nvar errors = instance.validate();\n</code></pre>\n\n\n\n\n<p><u>Associations</u></p>\n\n\n\n\n<p>Models can have associations with other Models via <a href=\"#/api/Ext.data.BelongsToAssociation\" rel=\"Ext.data.BelongsToAssociation\" class=\"docClass\">belongsTo</a> and\n<a href=\"#/api/Ext.data.HasManyAssociation\" rel=\"Ext.data.HasManyAssociation\" class=\"docClass\">hasMany</a> associations. For example, let's say we're writing a blog administration\napplication which deals with Users, Posts and Comments. We can express the relationships between these models like this:</p>\n\n\n\n\n<pre><code>Ext.define('Post', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id'],\n\n    belongsTo: 'User',\n    hasMany  : {model: 'Comment', name: 'comments'}\n});\n\nExt.define('Comment', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id', 'post_id'],\n\n    belongsTo: 'Post'\n});\n\nExt.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    hasMany: [\n        'Post',\n        {model: 'Comment', name: 'comments'}\n    ]\n});\n</code></pre>\n\n\n\n\n<p>See the docs for <a href=\"#/api/Ext.data.BelongsToAssociation\" rel=\"Ext.data.BelongsToAssociation\" class=\"docClass\">Ext.data.BelongsToAssociation</a> and <a href=\"#/api/Ext.data.HasManyAssociation\" rel=\"Ext.data.HasManyAssociation\" class=\"docClass\">Ext.data.HasManyAssociation</a> for details on the usage\nand configuration of associations. Note that associations can also be specified like this:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    associations: [\n        {type: 'hasMany', model: 'Post',    name: 'posts'},\n        {type: 'hasMany', model: 'Comment', name: 'comments'}\n    ]\n});\n</code></pre>\n\n\n\n\n<p><u>Using a Proxy</u></p>\n\n\n\n\n<p>Models are great for representing types of data and relationships, but sooner or later we're going to want to\nload or save that data somewhere. All loading and saving of data is handled via a <a href=\"#/api/Ext.data.proxy.Proxy\" rel=\"Ext.data.proxy.Proxy\" class=\"docClass\">Proxy</a>,\nwhich can be set directly on the Model:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'name', 'email'],\n\n    proxy: {\n        type: 'rest',\n        url : '/users'\n    }\n});\n</code></pre>\n\n\n\n\n<p>Here we've set up a <a href=\"#/api/Ext.data.proxy.Rest\" rel=\"Ext.data.proxy.Rest\" class=\"docClass\">Rest Proxy</a>, which knows how to load and save data to and from a\nRESTful backend. Let's see how this works:</p>\n\n\n\n\n<pre><code>var user = Ext.ModelManager.create({name: 'Ed Spencer', email: 'ed@sencha.com'}, 'User');\n\nuser.save(); //POST /users\n</code></pre>\n\n\n\n\n<p>Calling <a href=\"#/api/Ext.data.Model-method-save\" rel=\"Ext.data.Model-method-save\" class=\"docClass\">save</a> on the new Model instance tells the configured RestProxy that we wish to persist this\nModel's data onto our server. RestProxy figures out that this Model hasn't been saved before because it doesn't\nhave an id, and performs the appropriate action - in this case issuing a POST request to the url we configured\n(/users). We configure any Proxy on any Model and always follow this API - see <a href=\"#/api/Ext.data.proxy.Proxy\" rel=\"Ext.data.proxy.Proxy\" class=\"docClass\">Ext.data.proxy.Proxy</a> for a full\nlist.</p>\n\n\n\n\n<p>Loading data via the Proxy is equally easy:</p>\n\n\n\n\n<pre><code>//get a reference to the User model class\nvar User = Ext.ModelManager.getModel('User');\n\n//Uses the configured RestProxy to make a GET request to /users/123\nUser.load(123, {\n    success: function(user) {\n        console.log(user.getId()); //logs 123\n    }\n});\n</code></pre>\n\n\n\n\n<p>Models can also be updated and destroyed easily:</p>\n\n\n\n\n<pre><code>//the user Model we loaded in the last snippet:\nuser.set('name', 'Edward Spencer');\n\n//tells the Proxy to save the Model. In this case it will perform a PUT request to /users/123 as this Model already has an id\nuser.save({\n    success: function() {\n        console.log('The User was updated');\n    }\n});\n\n//tells the Proxy to destroy the Model. Performs a DELETE request to /users/123\nuser.destroy({\n    success: function() {\n        console.log('The User was destroyed!');\n    }\n});\n</code></pre>\n\n\n\n\n<p><u>Usage in Stores</u></p>\n\n\n\n\n<p>It is very common to want to load a set of Model instances to be displayed and manipulated in the UI. We do this\nby creating a <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store</a>:</p>\n\n\n\n\n<pre><code>var store = new Ext.data.Store({\n    model: 'User'\n});\n\n//uses the Proxy we set up on Model to load the Store data\nstore.load();\n</code></pre>\n\n\n\n\n<p>A Store is just a collection of Model instances - usually loaded from a server somewhere. Store can also maintain\na set of added, updated and removed Model instances to be synchronized with the server via the Proxy. See the\n<a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store docs</a> for more information on Stores.</p>\n\n",
5   "extends": null,
6   "mixins": [
7     "Ext.util.Observable"
8   ],
9   "alternateClassNames": [
10     "Ext.data.Record"
11   ],
12   "xtype": null,
13   "author": "Ed Spencer",
14   "docauthor": null,
15   "singleton": false,
16   "private": false,
17   "cfg": [
18     {
19       "tagname": "cfg",
20       "name": "idProperty",
21       "member": "Ext.data.Model",
22       "type": "String",
23       "doc": "<p>The name of the field treated as this Model's unique id (defaults to 'id').</p>\n",
24       "private": false,
25       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
26       "linenr": 521,
27       "html_filename": "Model.html",
28       "href": "Model.html#Ext-data-Model-cfg-idProperty"
29     },
30     {
31       "tagname": "cfg",
32       "name": "listeners",
33       "member": "Ext.util.Observable",
34       "type": "Object",
35       "doc": "<p>(optional) <p>A config object containing one or more event handlers to be added to this\nobject during initialization.  This should be a valid listeners config object as specified in the\n<a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> example for attaching multiple handlers at once.</p></p>\n\n<br><p><b><u>DOM events from ExtJs <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a></u></b></p>\n\n\n<br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this\n\n\n<p>is usually only done when extra value can be added. For example the <a href=\"#/api/Ext.view.View\" rel=\"Ext.view.View\" class=\"docClass\">DataView</a>'s\n<b><code><a href=\"#/api/Ext.view.View--click\" rel=\"Ext.view.View--click\" class=\"docClass\">click</a></code></b> event passing the node clicked on. To access DOM\nevents directly from a child element of a Component, we need to specify the <code>element</code> option to\nidentify the Component property to add a DOM listener to:</p>\n\n<pre><code>new Ext.panel.Panel({\n    width: 400,\n    height: 200,\n    dockedItems: [{\n        xtype: 'toolbar'\n    }],\n    listeners: {\n        click: {\n            element: 'el', //bind to the underlying el property on the panel\n            fn: function(){ console.log('click el'); }\n        },\n        dblclick: {\n            element: 'body', //bind to the underlying body property on the panel\n            fn: function(){ console.log('dblclick body'); }\n        }\n    }\n});\n</code></pre>\n\n\n<p></p></p>\n",
36       "private": false,
37       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
38       "linenr": 103,
39       "html_filename": "Observable.html",
40       "href": "Observable.html#Ext-util-Observable-cfg-listeners",
41       "shortDoc": "(optional) A config object containing one or more event handlers to be added to this\nobject during initialization.  T..."
42     },
43     {
44       "tagname": "cfg",
45       "name": "persistanceProperty",
46       "member": "Ext.data.Model",
47       "type": "String",
48       "doc": "<p>The property on this Persistable object that its data is saved to.\nDefaults to 'data' (e.g. all persistable data resides in this.data.)</p>\n",
49       "private": false,
50       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
51       "linenr": 503,
52       "html_filename": "Model.html",
53       "href": "Model.html#Ext-data-Model-cfg-persistanceProperty",
54       "shortDoc": "The property on this Persistable object that its data is saved to.\nDefaults to 'data' (e.g. all persistable data resi..."
55     }
56   ],
57   "method": [
58     {
59       "tagname": "method",
60       "name": "Model",
61       "member": "Ext.data.Model",
62       "doc": "\n",
63       "params": [
64         {
65           "type": "Object",
66           "name": "data",
67           "doc": "<p>An object containing keys corresponding to this model's fields, and their associated values</p>\n",
68           "optional": false
69         },
70         {
71           "type": "Number",
72           "name": "id",
73           "doc": "<p>Optional unique ID to assign to this model instance</p>\n",
74           "optional": false
75         }
76       ],
77       "return": {
78         "type": "void",
79         "doc": "\n"
80       },
81       "private": false,
82       "static": false,
83       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
84       "linenr": 1,
85       "html_filename": "Model.html",
86       "href": "Model.html#Ext-data-Model-method-constructor",
87       "shortDoc": "\n"
88     },
89     {
90       "tagname": "method",
91       "name": "addEvents",
92       "member": "Ext.util.Observable",
93       "doc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n",
94       "params": [
95         {
96           "type": "Object/String",
97           "name": "o",
98           "doc": "<p>Either an object with event names as properties with a value of <code>true</code>\nor the first event name string if multiple event names are being passed as separate parameters.</p>\n",
99           "optional": false
100         },
101         {
102           "type": "String",
103           "name": "",
104           "doc": "<p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.\nUsage:</p>\n\n<pre><code>this.addEvents('storeloaded', 'storecleared');\n</code></pre>\n\n",
105           "optional": false
106         }
107       ],
108       "return": {
109         "type": "void",
110         "doc": "\n"
111       },
112       "private": false,
113       "static": false,
114       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
115       "linenr": 452,
116       "html_filename": "Observable.html",
117       "href": "Observable.html#Ext-util-Observable-method-addEvents",
118       "shortDoc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n"
119     },
120     {
121       "tagname": "method",
122       "name": "addListener",
123       "member": "Ext.util.Observable",
124       "doc": "<p>Appends an event handler to this object.</p>\n",
125       "params": [
126         {
127           "type": "String",
128           "name": "eventName",
129           "doc": "<p>The name of the event to listen for. May also be an object who's property names are event names. See</p>\n",
130           "optional": false
131         },
132         {
133           "type": "Function",
134           "name": "handler",
135           "doc": "<p>The method the event invokes.</p>\n",
136           "optional": false
137         },
138         {
139           "type": "Object",
140           "name": "scope",
141           "doc": "<p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></p>\n",
142           "optional": true
143         },
144         {
145           "type": "Object",
146           "name": "options",
147           "doc": "<p>(optional) An object containing handler configuration.\nproperties. This may contain any of the following properties:<ul>\n<li><b>scope</b> : Object<div class=\"sub-desc\">The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></div></li>\n<li><b>delay</b> : Number<div class=\"sub-desc\">The number of milliseconds to delay the invocation of the handler after the event fires.</div></li>\n<li><b>single</b> : Boolean<div class=\"sub-desc\">True to add a handler to handle just the next firing of the event, and then remove itself.</div></li>\n<li><b>buffer</b> : Number<div class=\"sub-desc\">Causes the handler to be scheduled to run in an <a href=\"#/api/Ext.util.DelayedTask\" rel=\"Ext.util.DelayedTask\" class=\"docClass\">Ext.util.DelayedTask</a> delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>\n<li><b>target</b> : Observable<div class=\"sub-desc\">Only call the handler if the event was fired on the target Observable, <i>not</i>\nif the event was bubbled up from a child Observable.</div></li>\n<li><b>element</b> : String<div class=\"sub-desc\"><b>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</b>\nThe name of a Component property which references an element to add a listener to.</p>\n\n<p>This option is useful during Component construction to add DOM event listeners to elements of <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which\nwill exist only after the Component is rendered. For example, to add a click listener to a Panel's body:\n<pre><code>new Ext.panel.Panel({\n    title: 'The title',\n    listeners: {\n        click: this.handlePanelClick,\n        element: 'body'\n    }\n});\n</code></pre></p>\n\n\n<p>When added in this way, the options available are the options applicable to <a href=\"#/api/Ext.core.Element-method-addListener\" rel=\"Ext.core.Element-method-addListener\" class=\"docClass\">Ext.core.Element.addListener</a></p>\n\n\n<p></div></li>\n</ul><br></p>\n\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA delayed, one-time listener.\n<pre><code>myPanel.on('hide', this.handleClick, this, {\nsingle: true,\ndelay: 100\n});</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple events. For example:\n<pre><code>myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n</code></pre>.\n<p>\n\n",
148           "optional": true
149         }
150       ],
151       "return": {
152         "type": "void",
153         "doc": "\n"
154       },
155       "private": false,
156       "static": false,
157       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
158       "linenr": 271,
159       "html_filename": "Observable.html",
160       "href": "Observable.html#Ext-util-Observable-method-addListener",
161       "shortDoc": "<p>Appends an event handler to this object.</p>\n"
162     },
163     {
164       "tagname": "method",
165       "name": "addManagedListener",
166       "member": "Ext.util.Observable",
167       "doc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n",
168       "params": [
169         {
170           "type": "Observable/Element",
171           "name": "item",
172           "doc": "<p>The item to which to add a listener/listeners.</p>\n",
173           "optional": false
174         },
175         {
176           "type": "Object/String",
177           "name": "ename",
178           "doc": "<p>The event name, or an object containing event name properties.</p>\n",
179           "optional": false
180         },
181         {
182           "type": "Function",
183           "name": "fn",
184           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the handler function.</p>\n",
185           "optional": false
186         },
187         {
188           "type": "Object",
189           "name": "scope",
190           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the scope (<code>this</code> reference) in which the handler function is executed.</p>\n",
191           "optional": false
192         },
193         {
194           "type": "Object",
195           "name": "opt",
196           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the <a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
197           "optional": false
198         }
199       ],
200       "return": {
201         "type": "void",
202         "doc": "\n"
203       },
204       "private": false,
205       "static": false,
206       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
207       "linenr": 155,
208       "html_filename": "Observable.html",
209       "href": "Observable.html#Ext-util-Observable-method-addManagedListener",
210       "shortDoc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n"
211     },
212     {
213       "tagname": "method",
214       "name": "beginEdit",
215       "member": "Ext.data.Model",
216       "doc": "<p>Begin an edit. While in edit mode, no events (e.g.. the <code>update</code> event)\nare relayed to the containing store. When an edit has begun, it must be followed\nby either <a href=\"#/api/Ext.data.Model-method-endEdit\" rel=\"Ext.data.Model-method-endEdit\" class=\"docClass\">endEdit</a> or <a href=\"#/api/Ext.data.Model-method-cancelEdit\" rel=\"Ext.data.Model-method-cancelEdit\" class=\"docClass\">cancelEdit</a>.</p>\n",
217       "params": [
218
219       ],
220       "return": {
221         "type": "void",
222         "doc": "\n"
223       },
224       "private": false,
225       "static": false,
226       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
227       "linenr": 701,
228       "html_filename": "Model.html",
229       "href": "Model.html#Ext-data-Model-method-beginEdit",
230       "shortDoc": "Begin an edit. While in edit mode, no events (e.g.. the update event)\nare relayed to the containing store. When an ed..."
231     },
232     {
233       "tagname": "method",
234       "name": "cancelEdit",
235       "member": "Ext.data.Model",
236       "doc": "<p>Cancels all changes made in the current edit operation.</p>\n",
237       "params": [
238
239       ],
240       "return": {
241         "type": "void",
242         "doc": "\n"
243       },
244       "private": false,
245       "static": false,
246       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
247       "linenr": 716,
248       "html_filename": "Model.html",
249       "href": "Model.html#Ext-data-Model-method-cancelEdit",
250       "shortDoc": "<p>Cancels all changes made in the current edit operation.</p>\n"
251     },
252     {
253       "tagname": "method",
254       "name": "capture",
255       "member": "Ext.util.Observable",
256       "doc": "<p>Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.</p>\n",
257       "params": [
258         {
259           "type": "Observable",
260           "name": "o",
261           "doc": "<p>The Observable to capture events from.</p>\n",
262           "optional": false
263         },
264         {
265           "type": "Function",
266           "name": "fn",
267           "doc": "<p>The function to call when an event is fired.</p>\n",
268           "optional": false
269         },
270         {
271           "type": "Object",
272           "name": "scope",
273           "doc": "<p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>\n",
274           "optional": true
275         }
276       ],
277       "return": {
278         "type": "void",
279         "doc": "\n"
280       },
281       "private": false,
282       "static": true,
283       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
284       "linenr": 55,
285       "html_filename": "Observable.html",
286       "href": "Observable.html#Ext-util-Observable-method-capture",
287       "shortDoc": "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + ..."
288     },
289     {
290       "tagname": "method",
291       "name": "clearListeners",
292       "member": "Ext.util.Observable",
293       "doc": "<p>Removes all listeners for this object including the managed listeners</p>\n",
294       "params": [
295
296       ],
297       "return": {
298         "type": "void",
299         "doc": "\n"
300       },
301       "private": false,
302       "static": false,
303       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
304       "linenr": 383,
305       "html_filename": "Observable.html",
306       "href": "Observable.html#Ext-util-Observable-method-clearListeners",
307       "shortDoc": "<p>Removes all listeners for this object including the managed listeners</p>\n"
308     },
309     {
310       "tagname": "method",
311       "name": "clearManagedListeners",
312       "member": "Ext.util.Observable",
313       "doc": "<p>Removes all managed listeners for this object.</p>\n",
314       "params": [
315
316       ],
317       "return": {
318         "type": "void",
319         "doc": "\n"
320       },
321       "private": false,
322       "static": false,
323       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
324       "linenr": 412,
325       "html_filename": "Observable.html",
326       "href": "Observable.html#Ext-util-Observable-method-clearManagedListeners",
327       "shortDoc": "<p>Removes all managed listeners for this object.</p>\n"
328     },
329     {
330       "tagname": "method",
331       "name": "commit",
332       "member": "Ext.data.Model",
333       "doc": "<p>Usually called by the <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> which owns the model instance.\nCommits all changes made to the instance since either creation or the last commit operation.</p>\n\n<p>Developers should subscribe to the <a href=\"#/api/Ext.data.Store-event-update\" rel=\"Ext.data.Store-event-update\" class=\"docClass\">Ext.data.Store.update</a> event\nto have their code notified of commit operations.</p>\n\n",
334       "params": [
335         {
336           "type": "Boolean",
337           "name": "silent",
338           "doc": "<p>(optional) True to skip notification of the owning\nstore of the change (defaults to false)</p>\n",
339           "optional": true
340         }
341       ],
342       "return": {
343         "type": "void",
344         "doc": "\n"
345       },
346       "private": false,
347       "static": false,
348       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
349       "linenr": 842,
350       "html_filename": "Model.html",
351       "href": "Model.html#Ext-data-Model-method-commit",
352       "shortDoc": "Usually called by the Ext.data.Store which owns the model instance.\nCommits all changes made to the instance since ei..."
353     },
354     {
355       "tagname": "method",
356       "name": "copy",
357       "member": "Ext.data.Model",
358       "doc": "<p>Creates a copy (clone) of this Model instance.</p>\n",
359       "params": [
360         {
361           "type": "String",
362           "name": "id",
363           "doc": "<p>(optional) A new id, defaults to the id\nof the instance being copied. See <code><a href=\"#/api/Ext.data.Model-method-id\" rel=\"Ext.data.Model-method-id\" class=\"docClass\">id</a></code>.\nTo generate a phantom instance with a new id use:</p>\n\n<pre><code>var rec = record.copy(); // clone the record\nExt.data.Model.id(rec); // automatically generate a unique sequential id\n</code></pre>\n\n",
364           "optional": true
365         }
366       ],
367       "return": {
368         "type": "Record",
369         "doc": "\n"
370       },
371       "private": false,
372       "static": false,
373       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
374       "linenr": 863,
375       "html_filename": "Model.html",
376       "href": "Model.html#Ext-data-Model-method-copy",
377       "shortDoc": "<p>Creates a copy (clone) of this Model instance.</p>\n"
378     },
379     {
380       "tagname": "method",
381       "name": "destroy",
382       "member": "Ext.data.Model",
383       "doc": "<p>Destroys the model using the configured proxy</p>\n",
384       "params": [
385         {
386           "type": "Object",
387           "name": "options",
388           "doc": "<p>Options to pass to the proxy</p>\n",
389           "optional": false
390         }
391       ],
392       "return": {
393         "type": "Ext.data.Model",
394         "doc": "<p>The Model instance</p>\n"
395       },
396       "private": false,
397       "static": false,
398       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
399       "linenr": 991,
400       "html_filename": "Model.html",
401       "href": "Model.html#Ext-data-Model-method-destroy",
402       "shortDoc": "<p>Destroys the model using the configured proxy</p>\n"
403     },
404     {
405       "tagname": "method",
406       "name": "enableBubble",
407       "member": "Ext.util.Observable",
408       "doc": "<p>Enables events fired by this Observable to bubble up an owner hierarchy by calling\n<code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>\n\n\n<p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>. The default\nimplementation in <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Ext.Component</a> returns the Component's immediate owner. But if a known target is required, this can be overridden to\naccess the required target more quickly.</p>\n\n\n<p>Example:</p>\n\n\n<pre><code>Ext.override(Ext.form.field.Base, {\n//  Add functionality to Field&#39;s initComponent to enable the change event to bubble\ninitComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {\n    this.enableBubble('change');\n}),\n\n//  We know that we want Field&#39;s events to bubble directly to the FormPanel.\ngetBubbleTarget : function() {\n    if (!this.formPanel) {\n        this.formPanel = this.findParentByType('form');\n    }\n    return this.formPanel;\n}\n});\n\nvar myForm = new Ext.formPanel({\ntitle: 'User Details',\nitems: [{\n    ...\n}],\nlisteners: {\n    change: function() {\n        // Title goes red if form has been modified.\n        myForm.header.setStyle('color', 'red');\n    }\n}\n});\n</code></pre>\n\n",
409       "params": [
410         {
411           "type": "String/Array",
412           "name": "events",
413           "doc": "<p>The event name to bubble, or an Array of event names.</p>\n",
414           "optional": false
415         }
416       ],
417       "return": {
418         "type": "void",
419         "doc": "\n"
420       },
421       "private": false,
422       "static": false,
423       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
424       "linenr": 554,
425       "html_filename": "Observable.html",
426       "href": "Observable.html#Ext-util-Observable-method-enableBubble",
427       "shortDoc": "Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present...."
428     },
429     {
430       "tagname": "method",
431       "name": "endEdit",
432       "member": "Ext.data.Model",
433       "doc": "<p>End an edit. If any data was modified, the containing store is notified\n(ie, the store's <code>update</code> event will fire).</p>\n",
434       "params": [
435         {
436           "type": "Boolean",
437           "name": "silent",
438           "doc": "<p>True to not notify the store of the change</p>\n",
439           "optional": false
440         }
441       ],
442       "return": {
443         "type": "void",
444         "doc": "\n"
445       },
446       "private": false,
447       "static": false,
448       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
449       "linenr": 733,
450       "html_filename": "Model.html",
451       "href": "Model.html#Ext-data-Model-method-endEdit",
452       "shortDoc": "<p>End an edit. If any data was modified, the containing store is notified\n(ie, the store's <code>update</code> event will fire).</p>\n"
453     },
454     {
455       "tagname": "method",
456       "name": "fireEvent",
457       "member": "Ext.util.Observable",
458       "doc": "<p>Fires the specified event with the passed parameters (minus the event name).</p>\n\n\n<p>An event may be set to bubble up an Observable parent hierarchy (See <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>)\nby calling <a href=\"#/api/Ext.data.Model-method-enableBubble\" rel=\"Ext.data.Model-method-enableBubble\" class=\"docClass\">enableBubble</a>.</p>\n\n",
459       "params": [
460         {
461           "type": "String",
462           "name": "eventName",
463           "doc": "<p>The name of the event to fire.</p>\n",
464           "optional": false
465         },
466         {
467           "type": "Object...",
468           "name": "args",
469           "doc": "<p>Variable number of parameters are passed to handlers.</p>\n",
470           "optional": false
471         }
472       ],
473       "return": {
474         "type": "Boolean",
475         "doc": "<p>returns false if any of the handlers return false otherwise it returns true.</p>\n"
476       },
477       "private": false,
478       "static": false,
479       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
480       "linenr": 232,
481       "html_filename": "Observable.html",
482       "href": "Observable.html#Ext-util-Observable-method-fireEvent",
483       "shortDoc": "Fires the specified event with the passed parameters (minus the event name).\n\n\nAn event may be set to bubble up an Ob..."
484     },
485     {
486       "tagname": "method",
487       "name": "get",
488       "member": "Ext.data.Model",
489       "doc": "<p>Returns the value of the given field</p>\n",
490       "params": [
491         {
492           "type": "String",
493           "name": "fieldName",
494           "doc": "<p>The field to fetch the value for</p>\n",
495           "optional": false
496         }
497       ],
498       "return": {
499         "type": "Mixed",
500         "doc": "<p>The value</p>\n"
501       },
502       "private": false,
503       "static": false,
504       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
505       "linenr": 618,
506       "html_filename": "Model.html",
507       "href": "Model.html#Ext-data-Model-method-get",
508       "shortDoc": "<p>Returns the value of the given field</p>\n"
509     },
510     {
511       "tagname": "method",
512       "name": "getAssociatedData",
513       "member": "Ext.data.Model",
514       "doc": "<p>Gets all of the data from this Models <em>loaded</em> associations.\nIt does this recursively - for example if we have a User which\nhasMany Orders, and each Order hasMany OrderItems, it will return an object like this:\n{</p>\n\n<pre><code>orders: [\n    {\n        id: 123,\n        status: 'shipped',\n        orderItems: [\n            ...\n        ]\n    }\n]\n</code></pre>\n\n<p>}</p>\n",
515       "params": [
516
517       ],
518       "return": {
519         "type": "Object",
520         "doc": "<p>The nested data set for the Model's loaded associations</p>\n"
521       },
522       "private": false,
523       "static": false,
524       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
525       "linenr": 1102,
526       "html_filename": "Model.html",
527       "href": "Model.html#Ext-data-Model-method-getAssociatedData",
528       "shortDoc": "Gets all of the data from this Models loaded associations.\nIt does this recursively - for example if we have a User w..."
529     },
530     {
531       "tagname": "method",
532       "name": "getChanges",
533       "member": "Ext.data.Model",
534       "doc": "<p>Gets a hash of only the fields that have been modified since this Model was created or commited.</p>\n",
535       "params": [
536
537       ],
538       "return": {
539         "type": "void",
540         "doc": "<p>Object</p>\n"
541       },
542       "private": false,
543       "static": false,
544       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
545       "linenr": 751,
546       "html_filename": "Model.html",
547       "href": "Model.html#Ext-data-Model-method-getChanges",
548       "shortDoc": "<p>Gets a hash of only the fields that have been modified since this Model was created or commited.</p>\n"
549     },
550     {
551       "tagname": "method",
552       "name": "getId",
553       "member": "Ext.data.Model",
554       "doc": "<p>Returns the unique ID allocated to this model instance as defined by <a href=\"#/api/Ext.data.Model-cfg-idProperty\" rel=\"Ext.data.Model-cfg-idProperty\" class=\"docClass\">idProperty</a></p>\n",
555       "params": [
556
557       ],
558       "return": {
559         "type": "Number",
560         "doc": "<p>The id</p>\n"
561       },
562       "private": false,
563       "static": false,
564       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
565       "linenr": 1024,
566       "html_filename": "Model.html",
567       "href": "Model.html#Ext-data-Model-method-getId",
568       "shortDoc": "<p>Returns the unique ID allocated to this model instance as defined by <a href=\"#/api/Ext.data.Model-cfg-idProperty\" rel=\"Ext.data.Model-cfg-idProperty\" class=\"docClass\">idProperty</a></p>\n"
569     },
570     {
571       "tagname": "method",
572       "name": "getProxy",
573       "member": "Ext.data.Model",
574       "doc": "<p>Returns the configured Proxy for this Model</p>\n",
575       "params": [
576
577       ],
578       "return": {
579         "type": "Ext.data.proxy.Proxy",
580         "doc": "<p>The proxy</p>\n"
581       },
582       "private": false,
583       "static": false,
584       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
585       "linenr": 900,
586       "html_filename": "Model.html",
587       "href": "Model.html#Ext-data-Model-method-getProxy",
588       "shortDoc": "<p>Returns the configured Proxy for this Model</p>\n"
589     },
590     {
591       "tagname": "method",
592       "name": "hasListener",
593       "member": "Ext.util.Observable",
594       "doc": "<p>Checks to see if this object has any listeners for a specified event</p>\n",
595       "params": [
596         {
597           "type": "String",
598           "name": "eventName",
599           "doc": "<p>The name of the event to check for</p>\n",
600           "optional": false
601         }
602       ],
603       "return": {
604         "type": "Boolean",
605         "doc": "<p>True if the event is being listened for, else false</p>\n"
606       },
607       "private": false,
608       "static": false,
609       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
610       "linenr": 480,
611       "html_filename": "Observable.html",
612       "href": "Observable.html#Ext-util-Observable-method-hasListener",
613       "shortDoc": "<p>Checks to see if this object has any listeners for a specified event</p>\n"
614     },
615     {
616       "tagname": "method",
617       "name": "id",
618       "member": "Ext.data.Model",
619       "doc": "<p>Generates a sequential id. This method is typically called when a record is <a href=\"#/api/Ext.data.Model--create\" rel=\"Ext.data.Model--create\" class=\"docClass\">create</a>d\nand <a href=\"#/api/Ext.data.Model--Record\" rel=\"Ext.data.Model--Record\" class=\"docClass\">no id has been specified</a>. The id will automatically be assigned\nto the record. The returned id takes the form:\n<tt>&#123;PREFIX}-&#123;AUTO_ID}</tt>.<div class=\"mdetail-params\"><ul>\n<li><b><tt>PREFIX</tt></b> : String<p class=\"sub-desc\"><tt>Ext.data.Model.PREFIX</tt>\n(defaults to <tt>'ext-record'</tt>)</p></li>\n<li><b><tt>AUTO_ID</tt></b> : String<p class=\"sub-desc\"><tt>Ext.data.Model.AUTO_ID</tt>\n(defaults to <tt>1</tt> initially)</p></li>\n</ul></div></p>\n",
620       "params": [
621         {
622           "type": "Ext.data.Model",
623           "name": "rec",
624           "doc": "<p>The record being created.  The record does not exist, it's a <a href=\"#/api/Ext.data.Model-property-phantom\" rel=\"Ext.data.Model-property-phantom\" class=\"docClass\">phantom</a>.</p>\n",
625           "optional": false
626         }
627       ],
628       "return": {
629         "type": "String",
630         "doc": "<p>auto-generated string id, <tt>\"ext-record-i++'</tt>;</p>\n"
631       },
632       "private": false,
633       "static": true,
634       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
635       "linenr": 468,
636       "html_filename": "Model.html",
637       "href": "Model.html#Ext-data-Model-method-id",
638       "shortDoc": "Generates a sequential id. This method is typically called when a record is created\nand no id has been specified. The..."
639     },
640     {
641       "tagname": "method",
642       "name": "isModified",
643       "member": "Ext.data.Model",
644       "doc": "<p>Returns <tt>true</tt> if the passed field name has been <code><a href=\"#/api/Ext.data.Model-property-modified\" rel=\"Ext.data.Model-property-modified\" class=\"docClass\">modified</a></code>\nsince the load or last commit.</p>\n",
645       "params": [
646         {
647           "type": "String",
648           "name": "fieldName",
649           "doc": "<p><a href=\"#/api/Ext.data.Field-cfg-name\" rel=\"Ext.data.Field-cfg-name\" class=\"docClass\">Ext.data.Field.name</a></p>\n",
650           "optional": false
651         }
652       ],
653       "return": {
654         "type": "Boolean",
655         "doc": "\n"
656       },
657       "private": false,
658       "static": false,
659       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
660       "linenr": 769,
661       "html_filename": "Model.html",
662       "href": "Model.html#Ext-data-Model-method-isModified",
663       "shortDoc": "<p>Returns <tt>true</tt> if the passed field name has been <code><a href=\"#/api/Ext.data.Model-property-modified\" rel=\"Ext.data.Model-property-modified\" class=\"docClass\">modified</a></code>\nsince the load or last commit.</p>\n"
664     },
665     {
666       "tagname": "method",
667       "name": "isValid",
668       "member": "Ext.data.Model",
669       "doc": "<p>Checks if the model is valid. See <a href=\"#/api/Ext.data.Model-method-validate\" rel=\"Ext.data.Model-method-validate\" class=\"docClass\">validate</a>.</p>\n",
670       "params": [
671
672       ],
673       "return": {
674         "type": "Boolean",
675         "doc": "<p>True if the model is valid.</p>\n"
676       },
677       "private": false,
678       "static": false,
679       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
680       "linenr": 940,
681       "html_filename": "Model.html",
682       "href": "Model.html#Ext-data-Model-method-isValid",
683       "shortDoc": "<p>Checks if the model is valid. See <a href=\"#/api/Ext.data.Model-method-validate\" rel=\"Ext.data.Model-method-validate\" class=\"docClass\">validate</a>.</p>\n"
684     },
685     {
686       "tagname": "method",
687       "name": "join",
688       "member": "Ext.data.Model",
689       "doc": "<p>Tells this model instance that it has been added to a store</p>\n",
690       "params": [
691         {
692           "type": "Ext.data.Store",
693           "name": "store",
694           "doc": "<p>The store that the model has been added to</p>\n",
695           "optional": false
696         }
697       ],
698       "return": {
699         "type": "void",
700         "doc": "\n"
701       },
702       "private": false,
703       "static": false,
704       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
705       "linenr": 1040,
706       "html_filename": "Model.html",
707       "href": "Model.html#Ext-data-Model-method-join",
708       "shortDoc": "<p>Tells this model instance that it has been added to a store</p>\n"
709     },
710     {
711       "tagname": "method",
712       "name": "load",
713       "member": "Ext.data.Model",
714       "doc": "<p><b>Static</b>. Asynchronously loads a model instance by id. Sample usage:</p>\n\n<pre><code>    MyApp.User = Ext.define('User', {\n        extend: 'Ext.data.Model',\n        fields: [\n            {name: 'id', type: 'int'},\n            {name: 'name', type: 'string'}\n        ]\n    });\n\n    MyApp.User.load(10, {\n        scope: this,\n        failure: function(record, operation) {\n            //do something if the load failed\n        },\n        success: function(record, operation) {\n            //do something if the load succeeded\n        },\n        callback: function(record, operation) {\n            //do something whether the load succeeded or failed\n        }\n    });\n    </code></pre>\n\n",
715       "params": [
716         {
717           "type": "Number",
718           "name": "id",
719           "doc": "<p>The id of the model to load</p>\n",
720           "optional": false
721         },
722         {
723           "type": "Object",
724           "name": "config",
725           "doc": "<p>Optional config object containing success, failure and callback functions, plus optional scope</p>\n",
726           "optional": false
727         }
728       ],
729       "return": {
730         "type": "void",
731         "doc": "\n"
732       },
733       "private": false,
734       "static": true,
735       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
736       "linenr": 405,
737       "html_filename": "Model.html",
738       "href": "Model.html#Ext-data-Model-method-load",
739       "shortDoc": "Static. Asynchronously loads a model instance by id. Sample usage:\n\n    MyApp.User = Ext.define('User', {\n        ext..."
740     },
741     {
742       "tagname": "method",
743       "name": "observe",
744       "member": "Ext.util.Observable",
745       "doc": "<p>Sets observability on the passed class constructor.</p>\n\n<p>This makes any event fired on any instance of the passed class also fire a single event through\nthe <strong>class</strong> allowing for central handling of events on many instances at once.</p>\n\n<p>Usage:</p>\n\n<pre><code>Ext.util.Observable.observe(Ext.data.Connection);\nExt.data.Connection.on('beforerequest', function(con, options) {\n    console.log('Ajax request made to ' + options.url);\n});\n</code></pre>\n",
746       "params": [
747         {
748           "type": "Function",
749           "name": "c",
750           "doc": "<p>The class constructor to make observable.</p>\n",
751           "optional": false
752         },
753         {
754           "type": "Object",
755           "name": "listeners",
756           "doc": "<p>An object containing a series of listeners to add. See <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>.</p>\n",
757           "optional": false
758         }
759       ],
760       "return": {
761         "type": "void",
762         "doc": "\n"
763       },
764       "private": false,
765       "static": true,
766       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
767       "linenr": 69,
768       "html_filename": "Observable.html",
769       "href": "Observable.html#Ext-util-Observable-method-observe",
770       "shortDoc": "Sets observability on the passed class constructor.\n\nThis makes any event fired on any instance of the passed class a..."
771     },
772     {
773       "tagname": "method",
774       "name": "on",
775       "member": "Ext.util.Observable",
776       "doc": "<p>Appends an event handler to this object (shorthand for <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>.)</p>\n",
777       "params": [
778         {
779           "type": "String",
780           "name": "eventName",
781           "doc": "<p>The type of event to listen for</p>\n",
782           "optional": false
783         },
784         {
785           "type": "Function",
786           "name": "handler",
787           "doc": "<p>The method the event invokes</p>\n",
788           "optional": false
789         },
790         {
791           "type": "Object",
792           "name": "scope",
793           "doc": "<p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></p>\n",
794           "optional": true
795         },
796         {
797           "type": "Object",
798           "name": "options",
799           "doc": "<p>(optional) An object containing handler configuration.</p>\n",
800           "optional": true
801         }
802       ],
803       "return": {
804         "type": "void",
805         "doc": "\n"
806       },
807       "private": false,
808       "static": false,
809       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
810       "linenr": 616,
811       "html_filename": "Observable.html",
812       "href": "Observable.html#Ext-util-Observable-method-on",
813       "shortDoc": "<p>Appends an event handler to this object (shorthand for <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>.)</p>\n"
814     },
815     {
816       "tagname": "method",
817       "name": "reject",
818       "member": "Ext.data.Model",
819       "doc": "<p>Usually called by the <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> to which this model instance has been <a href=\"#/api/Ext.data.Model-method-join\" rel=\"Ext.data.Model-method-join\" class=\"docClass\">joined</a>.\nRejects all changes made to the model instance since either creation, or the last commit operation.\nModified fields are reverted to their original values.</p>\n\n<p>Developers should subscribe to the <a href=\"#/api/Ext.data.Store-event-update\" rel=\"Ext.data.Store-event-update\" class=\"docClass\">Ext.data.Store.update</a> event\nto have their code notified of reject operations.</p>\n\n",
820       "params": [
821         {
822           "type": "Boolean",
823           "name": "silent",
824           "doc": "<p>(optional) True to skip notification of the owning\nstore of the change (defaults to false)</p>\n",
825           "optional": true
826         }
827       ],
828       "return": {
829         "type": "void",
830         "doc": "\n"
831       },
832       "private": false,
833       "static": false,
834       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
835       "linenr": 811,
836       "html_filename": "Model.html",
837       "href": "Model.html#Ext-data-Model-method-reject",
838       "shortDoc": "Usually called by the Ext.data.Store to which this model instance has been joined.\nRejects all changes made to the mo..."
839     },
840     {
841       "tagname": "method",
842       "name": "relayEvents",
843       "member": "Ext.util.Observable",
844       "doc": "<p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>\n",
845       "params": [
846         {
847           "type": "Object",
848           "name": "origin",
849           "doc": "<p>The Observable whose events this object is to relay.</p>\n",
850           "optional": false
851         },
852         {
853           "type": "Array",
854           "name": "events",
855           "doc": "<p>Array of event names to relay.</p>\n",
856           "optional": false
857         },
858         {
859           "type": "Object",
860           "name": "prefix",
861           "doc": "\n",
862           "optional": false
863         }
864       ],
865       "return": {
866         "type": "void",
867         "doc": "\n"
868       },
869       "private": false,
870       "static": false,
871       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
872       "linenr": 520,
873       "html_filename": "Observable.html",
874       "href": "Observable.html#Ext-util-Observable-method-relayEvents",
875       "shortDoc": "<p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>\n"
876     },
877     {
878       "tagname": "method",
879       "name": "releaseCapture",
880       "member": "Ext.util.Observable",
881       "doc": "<p>Removes <b>all</b> added captures from the Observable.</p>\n",
882       "params": [
883         {
884           "type": "Observable",
885           "name": "o",
886           "doc": "<p>The Observable to release</p>\n",
887           "optional": false
888         }
889       ],
890       "return": {
891         "type": "void",
892         "doc": "\n"
893       },
894       "private": false,
895       "static": true,
896       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
897       "linenr": 46,
898       "html_filename": "Observable.html",
899       "href": "Observable.html#Ext-util-Observable-method-releaseCapture",
900       "shortDoc": "<p>Removes <b>all</b> added captures from the Observable.</p>\n"
901     },
902     {
903       "tagname": "method",
904       "name": "removeListener",
905       "member": "Ext.util.Observable",
906       "doc": "<p>Removes an event handler.</p>\n",
907       "params": [
908         {
909           "type": "String",
910           "name": "eventName",
911           "doc": "<p>The type of event the handler was associated with.</p>\n",
912           "optional": false
913         },
914         {
915           "type": "Function",
916           "name": "handler",
917           "doc": "<p>The handler to remove. <b>This must be a reference to the function passed into the <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> call.</b></p>\n",
918           "optional": false
919         },
920         {
921           "type": "Object",
922           "name": "scope",
923           "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
924           "optional": true
925         }
926       ],
927       "return": {
928         "type": "void",
929         "doc": "\n"
930       },
931       "private": false,
932       "static": false,
933       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
934       "linenr": 352,
935       "html_filename": "Observable.html",
936       "href": "Observable.html#Ext-util-Observable-method-removeListener",
937       "shortDoc": "<p>Removes an event handler.</p>\n"
938     },
939     {
940       "tagname": "method",
941       "name": "removeManagedListener",
942       "member": "Ext.util.Observable",
943       "doc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.data.Model--mon\" rel=\"Ext.data.Model--mon\" class=\"docClass\">mon</a> method.</p>\n",
944       "params": [
945         {
946           "type": "Observable|Element",
947           "name": "item",
948           "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
949           "optional": false
950         },
951         {
952           "type": "Object|String",
953           "name": "ename",
954           "doc": "<p>The event name, or an object containing event name properties.</p>\n",
955           "optional": false
956         },
957         {
958           "type": "Function",
959           "name": "fn",
960           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the handler function.</p>\n",
961           "optional": false
962         },
963         {
964           "type": "Object",
965           "name": "scope",
966           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the scope (<code>this</code> reference) in which the handler function is executed.</p>\n",
967           "optional": false
968         }
969       ],
970       "return": {
971         "type": "void",
972         "doc": "\n"
973       },
974       "private": false,
975       "static": false,
976       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
977       "linenr": 196,
978       "html_filename": "Observable.html",
979       "href": "Observable.html#Ext-util-Observable-method-removeManagedListener",
980       "shortDoc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.data.Model--mon\" rel=\"Ext.data.Model--mon\" class=\"docClass\">mon</a> method.</p>\n"
981     },
982     {
983       "tagname": "method",
984       "name": "resumeEvents",
985       "member": "Ext.util.Observable",
986       "doc": "<p>Resume firing events. (see <a href=\"#/api/Ext.data.Model-method-suspendEvents\" rel=\"Ext.data.Model-method-suspendEvents\" class=\"docClass\">suspendEvents</a>)\nIf events were suspended using the <code><b>queueSuspended</b></code> parameter, then all\nevents fired during event suspension will be sent to any listeners now.</p>\n",
987       "params": [
988
989       ],
990       "return": {
991         "type": "void",
992         "doc": "\n"
993       },
994       "private": false,
995       "static": false,
996       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
997       "linenr": 502,
998       "html_filename": "Observable.html",
999       "href": "Observable.html#Ext-util-Observable-method-resumeEvents",
1000       "shortDoc": "Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevent..."
1001     },
1002     {
1003       "tagname": "method",
1004       "name": "save",
1005       "member": "Ext.data.Model",
1006       "doc": "<p>Saves the model instance using the configured proxy</p>\n",
1007       "params": [
1008         {
1009           "type": "Object",
1010           "name": "options",
1011           "doc": "<p>Options to pass to the proxy</p>\n",
1012           "optional": false
1013         }
1014       ],
1015       "return": {
1016         "type": "Ext.data.Model",
1017         "doc": "<p>The Model instance</p>\n"
1018       },
1019       "private": false,
1020       "static": false,
1021       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1022       "linenr": 948,
1023       "html_filename": "Model.html",
1024       "href": "Model.html#Ext-data-Model-method-save",
1025       "shortDoc": "<p>Saves the model instance using the configured proxy</p>\n"
1026     },
1027     {
1028       "tagname": "method",
1029       "name": "set",
1030       "member": "Ext.data.Model",
1031       "doc": "<p>Sets the given field to the given value, marks the instance as dirty</p>\n",
1032       "params": [
1033         {
1034           "type": "String|Object",
1035           "name": "fieldName",
1036           "doc": "<p>The field to set, or an object containing key/value pairs</p>\n",
1037           "optional": false
1038         },
1039         {
1040           "type": "Mixed",
1041           "name": "value",
1042           "doc": "<p>The value to set</p>\n",
1043           "optional": false
1044         }
1045       ],
1046       "return": {
1047         "type": "void",
1048         "doc": "\n"
1049       },
1050       "private": false,
1051       "static": false,
1052       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1053       "linenr": 627,
1054       "html_filename": "Model.html",
1055       "href": "Model.html#Ext-data-Model-method-set",
1056       "shortDoc": "<p>Sets the given field to the given value, marks the instance as dirty</p>\n"
1057     },
1058     {
1059       "tagname": "method",
1060       "name": "setDirty",
1061       "member": "Ext.data.Model",
1062       "doc": "<p>Marks this <b>Record</b> as <code><a href=\"#/api/Ext.data.Model-property-dirty\" rel=\"Ext.data.Model-property-dirty\" class=\"docClass\">dirty</a></code>.  This method\nis used interally when adding <code><a href=\"#/api/Ext.data.Model-property-phantom\" rel=\"Ext.data.Model-property-phantom\" class=\"docClass\">phantom</a></code> records to a\n<a href=\"#/api/Ext.data.Store--writer\" rel=\"Ext.data.Store--writer\" class=\"docClass\">writer enabled store</a>.</p>\n\n\n<br><p>Marking a record <code><a href=\"#/api/Ext.data.Model-property-dirty\" rel=\"Ext.data.Model-property-dirty\" class=\"docClass\">dirty</a></code> causes the phantom to\n\n\n<p>be returned by <a href=\"#/api/Ext.data.Store--getModifiedRecords\" rel=\"Ext.data.Store--getModifiedRecords\" class=\"docClass\">Ext.data.Store.getModifiedRecords</a> where it will\nhave a create action composed for it during <a href=\"#/api/Ext.data.Store--save\" rel=\"Ext.data.Store--save\" class=\"docClass\">store save</a>\noperations.</p></p>\n",
1063       "params": [
1064
1065       ],
1066       "return": {
1067         "type": "void",
1068         "doc": "\n"
1069       },
1070       "private": false,
1071       "static": false,
1072       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1073       "linenr": 779,
1074       "html_filename": "Model.html",
1075       "href": "Model.html#Ext-data-Model-method-setDirty",
1076       "shortDoc": "Marks this Record as dirty.  This method\nis used interally when adding phantom records to a\nwriter enabled store.\n\n\nM..."
1077     },
1078     {
1079       "tagname": "method",
1080       "name": "setId",
1081       "member": "Ext.data.Model",
1082       "doc": "<p>Sets the model instance's id field to the given id</p>\n",
1083       "params": [
1084         {
1085           "type": "Number",
1086           "name": "id",
1087           "doc": "<p>The new id</p>\n",
1088           "optional": false
1089         }
1090       ],
1091       "return": {
1092         "type": "void",
1093         "doc": "\n"
1094       },
1095       "private": false,
1096       "static": false,
1097       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1098       "linenr": 1032,
1099       "html_filename": "Model.html",
1100       "href": "Model.html#Ext-data-Model-method-setId",
1101       "shortDoc": "<p>Sets the model instance's id field to the given id</p>\n"
1102     },
1103     {
1104       "tagname": "method",
1105       "name": "setProxy",
1106       "member": "Ext.data.Model",
1107       "doc": "<p>Sets the Proxy to use for this model. Accepts any options that can be accepted by <a href=\"#/api/Ext-method-createByAlias\" rel=\"Ext-method-createByAlias\" class=\"docClass\">Ext.createByAlias</a></p>\n",
1108       "params": [
1109         {
1110           "type": "String/Object/Ext.data.proxy.Proxy",
1111           "name": "proxy",
1112           "doc": "<p>The proxy</p>\n",
1113           "optional": false
1114         }
1115       ],
1116       "return": {
1117         "type": "void",
1118         "doc": "\n"
1119       },
1120       "private": false,
1121       "static": true,
1122       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1123       "linenr": 879,
1124       "html_filename": "Model.html",
1125       "href": "Model.html#Ext-data-Model-method-setProxy",
1126       "shortDoc": "<p>Sets the Proxy to use for this model. Accepts any options that can be accepted by <a href=\"#/api/Ext-method-createByAlias\" rel=\"Ext-method-createByAlias\" class=\"docClass\">Ext.createByAlias</a></p>\n"
1127     },
1128     {
1129       "tagname": "method",
1130       "name": "suspendEvents",
1131       "member": "Ext.util.Observable",
1132       "doc": "<p>Suspend the firing of all events. (see <a href=\"#/api/Ext.data.Model-method-resumeEvents\" rel=\"Ext.data.Model-method-resumeEvents\" class=\"docClass\">resumeEvents</a>)</p>\n",
1133       "params": [
1134         {
1135           "type": "Boolean",
1136           "name": "queueSuspended",
1137           "doc": "<p>Pass as true to queue up suspended events to be fired\nafter the <a href=\"#/api/Ext.data.Model-method-resumeEvents\" rel=\"Ext.data.Model-method-resumeEvents\" class=\"docClass\">resumeEvents</a> call instead of discarding all suspended events;</p>\n",
1138           "optional": false
1139         }
1140       ],
1141       "return": {
1142         "type": "void",
1143         "doc": "\n"
1144       },
1145       "private": false,
1146       "static": false,
1147       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
1148       "linenr": 490,
1149       "html_filename": "Observable.html",
1150       "href": "Observable.html#Ext-util-Observable-method-suspendEvents",
1151       "shortDoc": "<p>Suspend the firing of all events. (see <a href=\"#/api/Ext.data.Model-method-resumeEvents\" rel=\"Ext.data.Model-method-resumeEvents\" class=\"docClass\">resumeEvents</a>)</p>\n"
1152     },
1153     {
1154       "tagname": "method",
1155       "name": "un",
1156       "member": "Ext.util.Observable",
1157       "doc": "<p>Removes an event handler (shorthand for <a href=\"#/api/Ext.data.Model-method-removeListener\" rel=\"Ext.data.Model-method-removeListener\" class=\"docClass\">removeListener</a>.)</p>\n",
1158       "params": [
1159         {
1160           "type": "String",
1161           "name": "eventName",
1162           "doc": "<p>The type of event the handler was associated with.</p>\n",
1163           "optional": false
1164         },
1165         {
1166           "type": "Function",
1167           "name": "handler",
1168           "doc": "<p>The handler to remove. <b>This must be a reference to the function passed into the <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> call.</b></p>\n",
1169           "optional": false
1170         },
1171         {
1172           "type": "Object",
1173           "name": "scope",
1174           "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
1175           "optional": true
1176         }
1177       ],
1178       "return": {
1179         "type": "void",
1180         "doc": "\n"
1181       },
1182       "private": false,
1183       "static": false,
1184       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
1185       "linenr": 608,
1186       "html_filename": "Observable.html",
1187       "href": "Observable.html#Ext-util-Observable-method-un",
1188       "shortDoc": "<p>Removes an event handler (shorthand for <a href=\"#/api/Ext.data.Model-method-removeListener\" rel=\"Ext.data.Model-method-removeListener\" class=\"docClass\">removeListener</a>.)</p>\n"
1189     },
1190     {
1191       "tagname": "method",
1192       "name": "unjoin",
1193       "member": "Ext.data.Model",
1194       "doc": "<p>Tells this model instance that it has been removed from the store</p>\n",
1195       "params": [
1196
1197       ],
1198       "return": {
1199         "type": "void",
1200         "doc": "\n"
1201       },
1202       "private": false,
1203       "static": false,
1204       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1205       "linenr": 1053,
1206       "html_filename": "Model.html",
1207       "href": "Model.html#Ext-data-Model-method-unjoin",
1208       "shortDoc": "<p>Tells this model instance that it has been removed from the store</p>\n"
1209     },
1210     {
1211       "tagname": "method",
1212       "name": "validate",
1213       "member": "Ext.data.Model",
1214       "doc": "<p>Validates the current data against all of its configured <a href=\"#/api/Ext.data.Model--validations\" rel=\"Ext.data.Model--validations\" class=\"docClass\">validations</a> and returns an\n<a href=\"#/api/Ext.data.Errors\" rel=\"Ext.data.Errors\" class=\"docClass\">Errors</a> object</p>\n",
1215       "params": [
1216
1217       ],
1218       "return": {
1219         "type": "Ext.data.Errors",
1220         "doc": "<p>The errors object</p>\n"
1221       },
1222       "private": false,
1223       "static": false,
1224       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1225       "linenr": 908,
1226       "html_filename": "Model.html",
1227       "href": "Model.html#Ext-data-Model-method-validate",
1228       "shortDoc": "<p>Validates the current data against all of its configured <a href=\"#/api/Ext.data.Model--validations\" rel=\"Ext.data.Model--validations\" class=\"docClass\">validations</a> and returns an\n<a href=\"#/api/Ext.data.Errors\" rel=\"Ext.data.Errors\" class=\"docClass\">Errors</a> object</p>\n"
1229     }
1230   ],
1231   "property": [
1232     {
1233       "tagname": "property",
1234       "name": "defaultProxyType",
1235       "member": "Ext.data.Model",
1236       "type": "String",
1237       "doc": "<p>The string type of the default Model Proxy. Defaults to 'ajax'</p>\n",
1238       "private": false,
1239       "static": false,
1240       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1241       "linenr": 526,
1242       "html_filename": "Model.html",
1243       "href": "Model.html#Ext-data-Model-property-defaultProxyType"
1244     },
1245     {
1246       "tagname": "property",
1247       "name": "dirty",
1248       "member": "Ext.data.Model",
1249       "type": "Boolean",
1250       "doc": "<p>Readonly flag - true if this Record has been modified.</p>\n",
1251       "private": false,
1252       "static": false,
1253       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1254       "linenr": 497,
1255       "html_filename": "Model.html",
1256       "href": "Model.html#Ext-data-Model-property-dirty"
1257     },
1258     {
1259       "tagname": "property",
1260       "name": "editing",
1261       "member": "Ext.data.Model",
1262       "type": "Boolean",
1263       "doc": "<p>Internal flag used to track whether or not the model instance is currently being edited. Read-only</p>\n",
1264       "private": false,
1265       "static": false,
1266       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1267       "linenr": 490,
1268       "html_filename": "Model.html",
1269       "href": "Model.html#Ext-data-Model-property-editing"
1270     },
1271     {
1272       "tagname": "property",
1273       "name": "fields",
1274       "member": "Ext.data.Model",
1275       "type": "Array",
1276       "doc": "<p>An array of the fields defined on this model</p>\n",
1277       "private": false,
1278       "static": false,
1279       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1280       "linenr": 533,
1281       "html_filename": "Model.html",
1282       "href": "Model.html#Ext-data-Model-property-fields"
1283     },
1284     {
1285       "tagname": "property",
1286       "name": "modified",
1287       "member": "Ext.data.Model",
1288       "type": "Object",
1289       "doc": "<p>Key: value pairs of all fields whose values have changed</p>\n",
1290       "private": false,
1291       "static": false,
1292       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1293       "linenr": 571,
1294       "html_filename": "Model.html",
1295       "href": "Model.html#Ext-data-Model-property-modified"
1296     },
1297     {
1298       "tagname": "property",
1299       "name": "phantom",
1300       "member": "Ext.data.Model",
1301       "type": "Boolean",
1302       "doc": "<p><tt>true</tt> when the record does not yet exist in a server-side database (see\n<a href=\"#/api/Ext.data.Model-method-setDirty\" rel=\"Ext.data.Model-method-setDirty\" class=\"docClass\">setDirty</a>).  Any record which has a real database pk set as its id property\nis NOT a phantom -- it's real.</p>\n",
1303       "private": false,
1304       "static": false,
1305       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1306       "linenr": 512,
1307       "html_filename": "Model.html",
1308       "href": "Model.html#Ext-data-Model-property-phantom",
1309       "shortDoc": "true when the record does not yet exist in a server-side database (see\nsetDirty).  Any record which has a real databa..."
1310     },
1311     {
1312       "tagname": "property",
1313       "name": "raw",
1314       "member": "Ext.data.Model",
1315       "type": "Object",
1316       "doc": "<p>The raw data used to create this model if created via a reader.</p>\n",
1317       "private": false,
1318       "static": false,
1319       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1320       "linenr": 560,
1321       "html_filename": "Model.html",
1322       "href": "Model.html#Ext-data-Model-property-raw"
1323     },
1324     {
1325       "tagname": "property",
1326       "name": "store",
1327       "member": "Ext.data.Model",
1328       "type": "Ext.data.Store",
1329       "doc": "<p>The <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> to which this Record belongs.</p>\n",
1330       "private": false,
1331       "static": false,
1332       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1333       "linenr": 1045,
1334       "html_filename": "Model.html",
1335       "href": "Model.html#Ext-data-Model-property-store"
1336     }
1337   ],
1338   "event": [
1339
1340   ],
1341   "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/Model.js",
1342   "linenr": 1,
1343   "html_filename": "Model.html",
1344   "href": "Model.html#Ext-data-Model",
1345   "cssVar": [
1346
1347   ],
1348   "cssMixin": [
1349
1350   ],
1351   "component": false,
1352   "superclasses": [
1353
1354   ],
1355   "subclasses": [
1356     "Ext.grid.property.Property"
1357   ],
1358   "mixedInto": [
1359
1360   ],
1361   "allMixins": [
1362     "Ext.util.Observable"
1363   ]
1364 });