1 Ext.data.JsonP.Ext_form_FieldAncestor({
6 "docauthor": "Jason Johnston <jason@sencha.com>",
15 "href": "FieldAncestor.html#Ext-form-FieldAncestor-cfg-fieldDefaults",
16 "shortDoc": "If specified, the properties in this object are used as default config values for each\nExt.form.Labelable instance (e.g. ...",
18 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
20 "name": "fieldDefaults",
21 "owner": "Ext.form.FieldAncestor",
22 "doc": "<p>If specified, the properties in this object are used as default config values for each\n<a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a> instance (e.g. <a href=\"#/api/Ext.form.field.Base\" rel=\"Ext.form.field.Base\" class=\"docClass\">Ext.form.field.Base</a> or <a href=\"#/api/Ext.form.FieldContainer\" rel=\"Ext.form.FieldContainer\" class=\"docClass\">Ext.form.FieldContainer</a>)\nthat is added as a descendant of this container. Corresponding values specified in an individual field's\nown configuration, or from the <a href=\"#/api/Ext.container.Container-cfg-defaults\" rel=\"Ext.container.Container-cfg-defaults\" class=\"docClass\">defaults config</a> of its parent container,\nwill take precedence. See the documentation for <a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a> to see what config\noptions may be specified in the <tt>fieldDefaults</tt>.</p>\n\n\n<p>Example:</p>\n\n\n<pre><code>new Ext.form.Panel({\n fieldDefaults: {\n labelAlign: 'left',\n labelWidth: 100\n },\n items: [{\n xtype: 'fieldset',\n defaults: {\n labelAlign: 'top'\n },\n items: [{\n name: 'field1'\n }, {\n name: 'field2'\n }]\n }, {\n xtype: 'fieldset',\n items: [{\n name: 'field3',\n labelWidth: 150\n }, {\n name: 'field4'\n }]\n }]\n});</code></pre>\n\n\n<p>In this example, field1 and field2 will get labelAlign:'top' (from the fieldset's <tt>defaults</tt>)\nand labelWidth:100 (from <tt>fieldDefaults</tt>), field3 and field4 will both get labelAlign:'left' (from\n<tt>fieldDefaults</tt> and field3 will use the labelWidth:150 from its own config.</p>\n\n",
24 "html_filename": "FieldAncestor.html"
33 "href": "Base3.html#Ext-Base-method-addStatics",
34 "shortDoc": "Add / override static properties of this class. ...",
36 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
48 "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
52 "doc": "<p>this</p>\n"
54 "html_filename": "Base3.html"
61 "href": "Base3.html#Ext-Base-method-callOverridden",
62 "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n constructo...",
64 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
68 "type": "Array/Arguments",
70 "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
74 "name": "callOverridden",
76 "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
80 "doc": "<p>Returns the result after calling the overridden method</p>\n"
82 "html_filename": "Base3.html"
89 "href": "Base3.html#Ext-Base-method-callParent",
90 "shortDoc": "Call the parent's overridden method. ...",
92 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
96 "type": "Array/Arguments",
98 "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
102 "name": "callParent",
104 "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n constructor: function(test) {\n alert(test);\n }\n});\n\nExt.define('My.own.B', {\n extend: 'My.own.A',\n\n constructor: function(test) {\n alert(test);\n\n this.callParent([test + 1]);\n }\n});\n\nExt.define('My.own.C', {\n extend: 'My.own.B',\n\n constructor: function() {\n alert(\"Going to call parent's overriden constructor...\");\n\n this.callParent(arguments);\n }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n // alerts '2', then alerts '3'\n</code></pre>\n",
108 "doc": "<p>Returns the result from the superclass' method</p>\n"
110 "html_filename": "Base3.html"
117 "href": "Base3.html#Ext-Base-method-create",
118 "shortDoc": "Create a new instance of this Class. ...",
120 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
127 "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
131 "doc": "<p>the created instance.</p>\n"
133 "html_filename": "Base3.html"
140 "href": "Base3.html#Ext-Base-method-createAlias",
141 "shortDoc": "Create aliases for existing prototype methods. ...",
143 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
147 "type": "String/Object",
149 "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
153 "type": "String/Object",
155 "doc": "<p>The original method name</p>\n",
159 "name": "createAlias",
161 "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n</code></pre>\n",
167 "html_filename": "Base3.html"
174 "href": "Base3.html#Ext-Base-method-getName",
175 "shortDoc": "Get the current class' name in string format. ...",
177 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
184 "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
188 "doc": "<p>className</p>\n"
190 "html_filename": "Base3.html"
197 "href": "Base3.html#Ext-Base-method-implement",
198 "shortDoc": "Add methods / properties to the prototype of this class. ...",
200 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
212 "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.implement({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
218 "html_filename": "Base3.html"
225 "href": "Base3.html#Ext-Base-method-initConfig",
226 "shortDoc": "Initialize configuration for this class. ...",
228 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
238 "name": "initConfig",
240 "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n\n return this;\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n",
244 "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
246 "html_filename": "Base3.html"
253 "href": "FieldAncestor.html#Ext-form-FieldAncestor-method-initFieldAncestor",
254 "shortDoc": "Initializes the FieldAncestor's state; this must be called from the initComponent method\nof any components importing ...",
256 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
261 "name": "initFieldAncestor",
262 "owner": "Ext.form.FieldAncestor",
263 "doc": "<p>Initializes the FieldAncestor's state; this must be called from the initComponent method\nof any components importing this mixin.</p>\n",
269 "html_filename": "FieldAncestor.html"
276 "href": "FieldAncestor.html#Ext-form-FieldAncestor-method-onFieldAdded",
277 "shortDoc": "Called when a Ext.form.field.Field instance is added to the container's subtree. ...",
279 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
283 "type": "Ext.form.field.Field",
285 "doc": "<p>The field which was added</p>\n",
289 "name": "onFieldAdded",
290 "owner": "Ext.form.FieldAncestor",
291 "doc": "<p>Called when a <a href=\"#/api/Ext.form.field.Field\" rel=\"Ext.form.field.Field\" class=\"docClass\">Ext.form.field.Field</a> instance is added to the container's subtree.</p>\n",
297 "html_filename": "FieldAncestor.html"
304 "href": "FieldAncestor.html#Ext-form-FieldAncestor-method-onFieldRemoved",
305 "shortDoc": "Called when a Ext.form.field.Field instance is removed from the container's subtree. ...",
307 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
311 "type": "Ext.form.field.Field",
313 "doc": "<p>The field which was removed</p>\n",
317 "name": "onFieldRemoved",
318 "owner": "Ext.form.FieldAncestor",
319 "doc": "<p>Called when a <a href=\"#/api/Ext.form.field.Field\" rel=\"Ext.form.field.Field\" class=\"docClass\">Ext.form.field.Field</a> instance is removed from the container's subtree.</p>\n",
325 "html_filename": "FieldAncestor.html"
332 "href": "FieldAncestor.html#Ext-form-FieldAncestor-method-onLabelableAdded",
333 "shortDoc": "Called when a Ext.form.Labelable instance is added to the container's subtree. ...",
335 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
339 "type": "Ext.form.Labelable",
341 "doc": "<p>The instance that was added</p>\n",
345 "name": "onLabelableAdded",
346 "owner": "Ext.form.FieldAncestor",
347 "doc": "<p>Called when a <a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a> instance is added to the container's subtree.</p>\n",
353 "html_filename": "FieldAncestor.html"
360 "href": "FieldAncestor.html#Ext-form-FieldAncestor-method-onLabelableRemoved",
361 "shortDoc": "Called when a Ext.form.Labelable instance is removed from the container's subtree. ...",
363 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
367 "type": "Ext.form.Labelable",
369 "doc": "<p>The instance that was removed</p>\n",
373 "name": "onLabelableRemoved",
374 "owner": "Ext.form.FieldAncestor",
375 "doc": "<p>Called when a <a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a> instance is removed from the container's subtree.</p>\n",
381 "html_filename": "FieldAncestor.html"
388 "href": "Base3.html#Ext-Base-method-override",
389 "shortDoc": "Override prototype members of this class. ...",
391 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
403 "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
407 "doc": "<p>this</p>\n"
409 "html_filename": "Base3.html"
416 "href": "Base3.html#Ext-Base-method-statics",
417 "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
419 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
426 "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n\n return this;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n</code></pre>\n",
432 "html_filename": "Base3.html"
441 "tagname": "property",
442 "href": "FieldAncestor.html#Ext-form-FieldAncestor-property-onFieldErrorChange",
444 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
446 "name": "onFieldErrorChange",
447 "owner": "Ext.form.FieldAncestor",
448 "doc": "<p>Fired when the error message of any field within the container changes.</p>\n",
450 "html_filename": "FieldAncestor.html"
457 "tagname": "property",
458 "href": "FieldAncestor.html#Ext-form-FieldAncestor-property-onFieldValidityChange",
460 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
462 "name": "onFieldValidityChange",
463 "owner": "Ext.form.FieldAncestor",
464 "doc": "<p>Fired when the validity of any field within the container changes.</p>\n",
466 "html_filename": "FieldAncestor.html"
473 "tagname": "property",
474 "href": "Base3.html#Ext-Base-property-self",
475 "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
477 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
481 "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); / dependent on 'this'\n\n return this;\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n</code></pre>\n",
483 "html_filename": "Base3.html"
498 "href": "FieldAncestor.html#Ext-form-FieldAncestor-event-fielderrorchange",
499 "shortDoc": "Fires when the active error message is changed for any one of the Ext.form.Labelable\ninstances within this container. ...",
501 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
505 "type": "Ext.form.FieldAncestor",
511 "type": "Ext.form.Labelable",
513 "doc": "<p>Labelable instance whose active error was changed</p>\n",
519 "doc": "<p>The active error message</p>\n",
526 "doc": "<p>The options object passed to <a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">Ext.util.Observable.addListener</a>.</p>\n"
529 "name": "fielderrorchange",
530 "owner": "Ext.form.FieldAncestor",
531 "doc": "<p>Fires when the active error message is changed for any one of the <a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a>\ninstances within this container.</p>\n",
533 "html_filename": "FieldAncestor.html"
547 "href": "FieldAncestor.html#Ext-form-FieldAncestor",
554 "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/form/FieldAncestor.js",
556 "alternateClassNames": [
559 "name": "Ext.form.FieldAncestor",
560 "doc": "<p>A mixin for <a href=\"#/api/Ext.container.Container\" rel=\"Ext.container.Container\" class=\"docClass\">Ext.container.Container</a> components that are likely to have form fields in their\nitems subtree. Adds the following capabilities:</p>\n\n<ul>\n<li>Methods for handling the addition and removal of <a href=\"#/api/Ext.form.Labelable\" rel=\"Ext.form.Labelable\" class=\"docClass\">Ext.form.Labelable</a> and <a href=\"#/api/Ext.form.field.Field\" rel=\"Ext.form.field.Field\" class=\"docClass\">Ext.form.field.Field</a>\ninstances at any depth within the container.</li>\n<li>Events (fieldvaliditychange and <a href=\"#/api/Ext.form.FieldAncestor-event-fielderrorchange\" rel=\"Ext.form.FieldAncestor-event-fielderrorchange\" class=\"docClass\">fielderrorchange</a>) for handling changes to the state\nof individual fields at the container level.</li>\n<li>Automatic application of <a href=\"#/api/Ext.form.FieldAncestor-cfg-fieldDefaults\" rel=\"Ext.form.FieldAncestor-cfg-fieldDefaults\" class=\"docClass\">fieldDefaults</a> config properties to each field added within the\ncontainer, to facilitate uniform configuration of all fields.</li>\n</ul>\n\n\n<p>This mixin is primarily for internal use by <a href=\"#/api/Ext.form.Panel\" rel=\"Ext.form.Panel\" class=\"docClass\">Ext.form.Panel</a> and <a href=\"#/api/Ext.form.FieldContainer\" rel=\"Ext.form.FieldContainer\" class=\"docClass\">Ext.form.FieldContainer</a>,\nand should not normally need to be used directly.</p>\n",
563 "Ext.form.FieldContainer"
569 "html_filename": "FieldAncestor.html",
570 "extends": "Ext.Base"