X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/output/Ext.util.MixedCollection.js?ds=sidebyside diff --git a/docs/output/Ext.util.MixedCollection.js b/docs/output/Ext.util.MixedCollection.js new file mode 100644 index 00000000..e2d2417b --- /dev/null +++ b/docs/output/Ext.util.MixedCollection.js @@ -0,0 +1,1877 @@ +Ext.data.JsonP.Ext_util_MixedCollection({ + "tagname": "class", + "name": "Ext.util.MixedCollection", + "doc": "

\nRepresents a collection of a set of key and value pairs. Each key in the MixedCollection\nmust be unique, the same key cannot exist twice. This collection is ordered, items in the\ncollection can be accessed by index or via the key. Newly added items are added to\nthe end of the collection. This class is similar to Ext.util.HashMap however it\nis heavier and provides more functionality. Sample usage:\n

var coll = new Ext.util.MixedCollection();\ncoll.add('key1', 'val1');\ncoll.add('key2', 'val2');\ncoll.add('key3', 'val3');\n\nconsole.log(coll.get('key1')); // prints 'val1'\nconsole.log(coll.indexOfKey('key3')); // prints 2\n
\n\n

\nThe MixedCollection also has support for sorting and filtering of the values in the collection.\n

var coll = new Ext.util.MixedCollection();\ncoll.add('key1', 100);\ncoll.add('key2', -100);\ncoll.add('key3', 17);\ncoll.add('key4', 0);\nvar biggerThanZero = coll.filterBy(function(value){\n    return value > 0;\n});\nconsole.log(biggerThanZero.getCount()); // prints 2\n
\n

\n\n", + "extends": "Ext.util.AbstractMixedCollection", + "mixins": [ + "Ext.util.Sortable" + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": null, + "docauthor": null, + "singleton": false, + "private": false, + "cfg": [ + { + "tagname": "cfg", + "name": "allowFunctions", + "member": "Ext.util.AbstractMixedCollection", + "type": "Boolean", + "doc": "

Specify true if the addAll\nfunction should add function references to the collection. Defaults to\nfalse.

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 62, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-cfg-allowFunctions" + }, + { + "tagname": "cfg", + "name": "listeners", + "member": "Ext.util.Observable", + "type": "Object", + "doc": "

(optional)

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\naddListener example for attaching multiple handlers at once.

\n\n

DOM events from ExtJs Components

\n\n\n

While some ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this\n\n\n

is usually only done when extra value can be added. For example the DataView's\nclick event passing the node clicked on. To access DOM\nevents directly from a child element of a Component, we need to specify the element option to\nidentify the Component property to add a DOM listener to:

\n\n
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
\n\n\n

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 103, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-cfg-listeners", + "shortDoc": "(optional) A config object containing one or more event handlers to be added to this\nobject during initialization. T..." + } + ], + "method": [ + { + "tagname": "method", + "name": "MixedCollection", + "member": "Ext.util.MixedCollection", + "doc": "\n", + "params": [ + { + "type": "Boolean", + "name": "allowFunctions", + "doc": "

Specify true if the addAll\nfunction should add function references to the collection. Defaults to\nfalse.

\n", + "optional": false + }, + { + "type": "Function", + "name": "keyFn", + "doc": "

A function that can accept an item of the type(s) stored in this MixedCollection\nand return the key value for that item. This is used when available to look up the key on items that\nwere passed without an explicit key parameter to a MixedCollection method. Passing this parameter is\nequivalent to providing an implementation for the getKey method.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/MixedCollection.js", + "linenr": 1, + "html_filename": "MixedCollection.html", + "href": "MixedCollection.html#Ext-util-MixedCollection-method-constructor", + "shortDoc": "\n" + }, + { + "tagname": "method", + "name": "add", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Adds an item to the collection. Fires the add event when complete.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

The key to associate with the item, or the new item.

\n\n\n

If a getKey implementation was specified for this MixedCollection,\nor if the key of the stored items is in a property called id,\nthe MixedCollection will be able to derive the key for the new item.\nIn this case just pass the new item in this parameter.

\n\n", + "optional": false + }, + { + "type": "Object", + "name": "o", + "doc": "

The item to add.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item added.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 69, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-add", + "shortDoc": "

Adds an item to the collection. Fires the add event when complete.

\n" + }, + { + "tagname": "method", + "name": "addAll", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Adds all elements of an Array or an Object to the collection.

\n", + "params": [ + { + "type": "Object/Array", + "name": "objs", + "doc": "

An Object containing properties which will be added\nto the collection, or an Array of values, each of which are added to the collection.\nFunctions references will be added to the collection if allowFunctions\nhas been set to true.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 166, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-addAll", + "shortDoc": "

Adds all elements of an Array or an Object to the collection.

\n" + }, + { + "tagname": "method", + "name": "addEvents", + "member": "Ext.util.Observable", + "doc": "

Adds the specified events to the list of events which this Observable may fire.

\n", + "params": [ + { + "type": "Object/String", + "name": "o", + "doc": "

Either an object with event names as properties with a value of true\nor the first event name string if multiple event names are being passed as separate parameters.

\n", + "optional": false + }, + { + "type": "String", + "name": "", + "doc": "

[additional] Optional additional event names if multiple event names are being passed as separate parameters.\nUsage:

\n\n
this.addEvents('storeloaded', 'storecleared');\n
\n\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 452, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-addEvents", + "shortDoc": "

Adds the specified events to the list of events which this Observable may fire.

\n" + }, + { + "tagname": "method", + "name": "addListener", + "member": "Ext.util.Observable", + "doc": "

Appends an event handler to this object.

\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The name of the event to listen for. May also be an object who's property names are event names. See

\n", + "optional": false + }, + { + "type": "Function", + "name": "handler", + "doc": "

The method the event invokes.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

\n", + "optional": true + }, + { + "type": "Object", + "name": "options", + "doc": "

(optional) An object containing handler configuration.\nproperties. This may contain any of the following properties:


\n\n

\nCombining Options
\nUsing the options argument, it is possible to combine different types of listeners:
\n
\nA delayed, one-time listener.\n

myPanel.on('hide', this.handleClick, this, {\nsingle: true,\ndelay: 100\n});
\n

\nAttaching multiple handlers in 1 call
\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

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
.\n

\n\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 271, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-addListener", + "shortDoc": "

Appends an event handler to this object.

\n" + }, + { + "tagname": "method", + "name": "addManagedListener", + "member": "Ext.util.Observable", + "doc": "

Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n", + "params": [ + { + "type": "Observable/Element", + "name": "item", + "doc": "

The item to which to add a listener/listeners.

\n", + "optional": false + }, + { + "type": "Object/String", + "name": "ename", + "doc": "

The event name, or an object containing event name properties.

\n", + "optional": false + }, + { + "type": "Function", + "name": "fn", + "doc": "

Optional. If the ename parameter was an event name, this\nis the handler function.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

Optional. If the ename parameter was an event name, this\nis the scope (this reference) in which the handler function is executed.

\n", + "optional": false + }, + { + "type": "Object", + "name": "opt", + "doc": "

Optional. If the ename parameter was an event name, this\nis the addListener options.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 155, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-addManagedListener", + "shortDoc": "

Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n" + }, + { + "tagname": "method", + "name": "capture", + "member": "Ext.util.Observable", + "doc": "

Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.

\n", + "params": [ + { + "type": "Observable", + "name": "o", + "doc": "

The Observable to capture events from.

\n", + "optional": false + }, + { + "type": "Function", + "name": "fn", + "doc": "

The function to call when an event is fired.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to the Observable firing the event.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": true, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 55, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-capture", + "shortDoc": "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + ..." + }, + { + "tagname": "method", + "name": "clear", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Removes all items from the collection. Fires the clear event when complete.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 435, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-clear", + "shortDoc": "

Removes all items from the collection. Fires the clear event when complete.

\n" + }, + { + "tagname": "method", + "name": "clearListeners", + "member": "Ext.util.Observable", + "doc": "

Removes all listeners for this object including the managed listeners

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 383, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-clearListeners", + "shortDoc": "

Removes all listeners for this object including the managed listeners

\n" + }, + { + "tagname": "method", + "name": "clearManagedListeners", + "member": "Ext.util.Observable", + "doc": "

Removes all managed listeners for this object.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 412, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-clearManagedListeners", + "shortDoc": "

Removes all managed listeners for this object.

\n" + }, + { + "tagname": "method", + "name": "clone", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Creates a shallow copy of this collection

\n", + "params": [ + + ], + "return": { + "type": "MixedCollection", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 727, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-clone", + "shortDoc": "

Creates a shallow copy of this collection

\n" + }, + { + "tagname": "method", + "name": "collect", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Collects unique values of a particular property in this MixedCollection

\n", + "params": [ + { + "type": "String", + "name": "property", + "doc": "

The property to collect on

\n", + "optional": false + }, + { + "type": "String", + "name": "root", + "doc": "

Optional 'root' property to extract the first argument from. This is used mainly when\nsumming fields in records, where the fields are all stored inside the 'data' object

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "allowBlank", + "doc": "

(optional) Pass true to allow null, undefined or empty string values

\n", + "optional": true + } + ], + "return": { + "type": "Array", + "doc": "

The unique values

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 489, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-collect", + "shortDoc": "

Collects unique values of a particular property in this MixedCollection

\n" + }, + { + "tagname": "method", + "name": "contains", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns true if the collection contains the passed Object as an item.

\n", + "params": [ + { + "type": "Object", + "name": "o", + "doc": "

The Object to look for in the collection.

\n", + "optional": false + } + ], + "return": { + "type": "Boolean", + "doc": "

True if the collection contains the Object as an item.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 417, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-contains", + "shortDoc": "

Returns true if the collection contains the passed Object as an item.

\n" + }, + { + "tagname": "method", + "name": "containsKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns true if the collection contains the passed Object as a key.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

The key to look for in the collection.

\n", + "optional": false + } + ], + "return": { + "type": "Boolean", + "doc": "

True if the collection contains the Object as a key.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 426, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-containsKey", + "shortDoc": "

Returns true if the collection contains the passed Object as a key.

\n" + }, + { + "tagname": "method", + "name": "each", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Executes the specified function once for every item in the collection, passing the following arguments:

\n\n
\n\n\n

The function should return a boolean value. Returning false from the function will stop the iteration.

\n", + "params": [ + { + "type": "Function", + "name": "fn", + "doc": "

The function to execute for each item.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to the current item in the iteration.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 196, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-each", + "shortDoc": "Executes the specified function once for every item in the collection, passing the following arguments:\n\n\nitem : Mixe..." + }, + { + "tagname": "method", + "name": "eachKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Executes the specified function once for every key in the collection, passing each\nkey, and its associated item as the first two parameters.

\n", + "params": [ + { + "type": "Function", + "name": "fn", + "doc": "

The function to execute for each item.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to the browser window.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 221, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-eachKey", + "shortDoc": "Executes the specified function once for every key in the collection, passing each\nkey, and its associated item as th..." + }, + { + "tagname": "method", + "name": "enableBubble", + "member": "Ext.util.Observable", + "doc": "

Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present. There is no implementation in the Observable base class.

\n\n\n

This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default\nimplementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to\naccess the required target more quickly.

\n\n\n

Example:

\n\n\n
Ext.override(Ext.form.field.Base, {\n//  Add functionality to Field'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'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
\n\n", + "params": [ + { + "type": "String/Array", + "name": "events", + "doc": "

The event name to bubble, or an Array of event names.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 554, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-enableBubble", + "shortDoc": "Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present...." + }, + { + "tagname": "method", + "name": "filter", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Filters the objects in this collection by a set of Filters, or by a single\nproperty/value pair with optional parameters for substring matching and case sensitivity. See\nFilter for an example of using Filter objects (preferred). Alternatively,\nMixedCollection can be easily filtered by property like this:

\n\n\n
//create a simple store with a few people defined\nvar people = new Ext.util.MixedCollection();\npeople.addAll([\n    {id: 1, age: 25, name: 'Ed'},\n    {id: 2, age: 24, name: 'Tommy'},\n    {id: 3, age: 24, name: 'Arne'},\n    {id: 4, age: 26, name: 'Aaron'}\n]);\n\n//a new MixedCollection containing only the items where age == 24\nvar middleAged = people.filter('age', 24);\n
\n\n", + "params": [ + { + "type": "Array/String", + "name": "property", + "doc": "

A property on your objects, or an array of Filter objects

\n", + "optional": false + }, + { + "type": "String/RegExp", + "name": "value", + "doc": "

Either string that the property values\nshould start with or a RegExp to test against the property

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "anyMatch", + "doc": "

(optional) True to match any part of the string, not just the beginning

\n", + "optional": true + }, + { + "type": "Boolean", + "name": "caseSensitive", + "doc": "

(optional) True for case sensitive comparison (defaults to False).

\n", + "optional": true + } + ], + "return": { + "type": "MixedCollection", + "doc": "

The new filtered collection

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 566, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-filter", + "shortDoc": "Filters the objects in this collection by a set of Filters, or by a single\nproperty/value pair with optional paramete..." + }, + { + "tagname": "method", + "name": "filterBy", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Filter by a function. Returns a new collection that has been filtered.\nThe passed function will be called with each object in the collection.\nIf the function returns true, the value is included otherwise it is filtered.

\n", + "params": [ + { + "type": "Function", + "name": "fn", + "doc": "

The function to be called, it will receive the args o (the object), k (the key)

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to this MixedCollection.

\n", + "optional": true + } + ], + "return": { + "type": "MixedCollection", + "doc": "

The new filtered collection

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 630, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-filterBy", + "shortDoc": "Filter by a function. Returns a new collection that has been filtered.\nThe passed function will be called with each o..." + }, + { + "tagname": "method", + "name": "findBy", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the first item in the collection which elicits a true return value from the\npassed selection function.

\n", + "params": [ + { + "type": "Function", + "name": "fn", + "doc": "

The selection function to execute for each item.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to the browser window.

\n", + "optional": true + } + ], + "return": { + "type": "Object", + "doc": "

The first item in the collection which returned true from the selection function.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 238, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-findBy", + "shortDoc": "

Returns the first item in the collection which elicits a true return value from the\npassed selection function.

\n" + }, + { + "tagname": "method", + "name": "findIndex", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Finds the index of the first matching object in this collection by a specific property/value.

\n", + "params": [ + { + "type": "String", + "name": "property", + "doc": "

The name of a property on your objects.

\n", + "optional": false + }, + { + "type": "String/RegExp", + "name": "value", + "doc": "

A string that the property values\nshould start with or a RegExp to test against the property.

\n", + "optional": false + }, + { + "type": "Number", + "name": "start", + "doc": "

(optional) The index to start searching at (defaults to 0).

\n", + "optional": true + }, + { + "type": "Boolean", + "name": "anyMatch", + "doc": "

(optional) True to match any part of the string, not just the beginning.

\n", + "optional": true + }, + { + "type": "Boolean", + "name": "caseSensitive", + "doc": "

(optional) True for case sensitive comparison.

\n", + "optional": true + } + ], + "return": { + "type": "Number", + "doc": "

The matched index or -1

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 657, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-findIndex", + "shortDoc": "

Finds the index of the first matching object in this collection by a specific property/value.

\n" + }, + { + "tagname": "method", + "name": "findIndexBy", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Find the index of the first matching object in this collection by a function.\nIf the function returns true it is considered a match.

\n", + "params": [ + { + "type": "Function", + "name": "fn", + "doc": "

The function to be called, it will receive the args o (the object), k (the key).

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the function is executed. Defaults to this MixedCollection.

\n", + "optional": true + }, + { + "type": "Number", + "name": "start", + "doc": "

(optional) The index to start searching at (defaults to 0).

\n", + "optional": true + } + ], + "return": { + "type": "Number", + "doc": "

The matched index or -1

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 677, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-findIndexBy", + "shortDoc": "Find the index of the first matching object in this collection by a function.\nIf the function returns true it is cons..." + }, + { + "tagname": "method", + "name": "fireEvent", + "member": "Ext.util.Observable", + "doc": "

Fires the specified event with the passed parameters (minus the event name).

\n\n\n

An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget)\nby calling enableBubble.

\n\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The name of the event to fire.

\n", + "optional": false + }, + { + "type": "Object...", + "name": "args", + "doc": "

Variable number of parameters are passed to handlers.

\n", + "optional": false + } + ], + "return": { + "type": "Boolean", + "doc": "

returns false if any of the handlers return false otherwise it returns true.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 232, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-fireEvent", + "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..." + }, + { + "tagname": "method", + "name": "first", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the first item in the collection.

\n", + "params": [ + + ], + "return": { + "type": "Object", + "doc": "

the first item in the collection..

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 448, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-first", + "shortDoc": "

Returns the first item in the collection.

\n" + }, + { + "tagname": "method", + "name": "get", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the item associated with the passed key OR index.\nKey has priority over index. This is the equivalent\nof calling key first, then if nothing matched calling getAt.

\n", + "params": [ + { + "type": "String/Number", + "name": "key", + "doc": "

The key or index of the item.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

If the item is found, returns the item. If the item was not found, returns undefined.\nIf an item was found, but is a Class, returns null.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 384, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-get", + "shortDoc": "Returns the item associated with the passed key OR index.\nKey has priority over index. This is the equivalent\nof cal..." + }, + { + "tagname": "method", + "name": "getAt", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the item at the specified index.

\n", + "params": [ + { + "type": "Number", + "name": "index", + "doc": "

The index of the item.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item at the specified index.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 399, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-getAt", + "shortDoc": "

Returns the item at the specified index.

\n" + }, + { + "tagname": "method", + "name": "getByKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the item associated with the passed key.

\n", + "params": [ + { + "type": "String/Number", + "name": "key", + "doc": "

The key of the item.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item associated with the passed key.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 408, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-getByKey", + "shortDoc": "

Returns the item associated with the passed key.

\n" + }, + { + "tagname": "method", + "name": "getCount", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the number of items in the collection.

\n", + "params": [ + + ], + "return": { + "type": "Number", + "doc": "

the number of items in the collection.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 358, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-getCount", + "shortDoc": "

Returns the number of items in the collection.

\n" + }, + { + "tagname": "method", + "name": "getKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation\nsimply returns item.id but you can provide your own implementation\nto return a different value as in the following examples:

\n\n
// normal way\nvar mc = new Ext.util.MixedCollection();\nmc.add(someEl.dom.id, someEl);\nmc.add(otherEl.dom.id, otherEl);\n//and so on\n\n// using getKey\nvar mc = new Ext.util.MixedCollection();\nmc.getKey = function(el){\n   return el.dom.id;\n};\nmc.add(someEl);\nmc.add(otherEl);\n\n// or via the constructor\nvar mc = new Ext.util.MixedCollection(false, function(el){\n   return el.dom.id;\n});\nmc.add(someEl);\nmc.add(otherEl);\n
\n\n", + "params": [ + { + "type": "Object", + "name": "item", + "doc": "

The item for which to find the key.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The key for the passed item.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 103, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-getKey", + "shortDoc": "MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation\nsimply returns i..." + }, + { + "tagname": "method", + "name": "getRange", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns a range of items in this collection

\n", + "params": [ + { + "type": "Number", + "name": "startIndex", + "doc": "

(optional) The starting index. Defaults to 0.

\n", + "optional": true + }, + { + "type": "Number", + "name": "endIndex", + "doc": "

(optional) The ending index. Defaults to the last item.

\n", + "optional": true + } + ], + "return": { + "type": "Array", + "doc": "

An array of items

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 536, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-getRange", + "shortDoc": "

Returns a range of items in this collection

\n" + }, + { + "tagname": "method", + "name": "hasListener", + "member": "Ext.util.Observable", + "doc": "

Checks to see if this object has any listeners for a specified event

\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The name of the event to check for

\n", + "optional": false + } + ], + "return": { + "type": "Boolean", + "doc": "

True if the event is being listened for, else false

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 480, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-hasListener", + "shortDoc": "

Checks to see if this object has any listeners for a specified event

\n" + }, + { + "tagname": "method", + "name": "indexOf", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns index within the collection of the passed Object.

\n", + "params": [ + { + "type": "Object", + "name": "o", + "doc": "

The item to find the index of.

\n", + "optional": false + } + ], + "return": { + "type": "Number", + "doc": "

index of the item. Returns -1 if not found.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 366, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-indexOf", + "shortDoc": "

Returns index within the collection of the passed Object.

\n" + }, + { + "tagname": "method", + "name": "indexOfKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns index within the collection of the passed key.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

The key to find the index of.

\n", + "optional": false + } + ], + "return": { + "type": "Number", + "doc": "

index of the key.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 375, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-indexOfKey", + "shortDoc": "

Returns index within the collection of the passed key.

\n" + }, + { + "tagname": "method", + "name": "initSortable", + "member": "Ext.util.Sortable", + "doc": "

Performs initialization of this mixin. Component classes using this mixin should call this method\nduring their own initialization.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 37, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-method-initSortable", + "shortDoc": "Performs initialization of this mixin. Component classes using this mixin should call this method\nduring their own in..." + }, + { + "tagname": "method", + "name": "insert", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Inserts an item at the specified index in the collection. Fires the add event when complete.

\n", + "params": [ + { + "type": "Number", + "name": "index", + "doc": "

The index to insert the item at.

\n", + "optional": false + }, + { + "type": "String", + "name": "key", + "doc": "

The key to associate with the new item, or the item itself.

\n", + "optional": false + }, + { + "type": "Object", + "name": "o", + "doc": "

(optional) If the second parameter was a key, the new item.

\n", + "optional": true + } + ], + "return": { + "type": "Object", + "doc": "

The item inserted.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 268, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-insert", + "shortDoc": "

Inserts an item at the specified index in the collection. Fires the add event when complete.

\n" + }, + { + "tagname": "method", + "name": "last", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Returns the last item in the collection.

\n", + "params": [ + + ], + "return": { + "type": "Object", + "doc": "

the last item in the collection..

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 456, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-last", + "shortDoc": "

Returns the last item in the collection.

\n" + }, + { + "tagname": "method", + "name": "observe", + "member": "Ext.util.Observable", + "doc": "

Sets observability on the passed class constructor.

\n\n

This makes any event fired on any instance of the passed class also fire a single event through\nthe class allowing for central handling of events on many instances at once.

\n\n

Usage:

\n\n
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
\n", + "params": [ + { + "type": "Function", + "name": "c", + "doc": "

The class constructor to make observable.

\n", + "optional": false + }, + { + "type": "Object", + "name": "listeners", + "doc": "

An object containing a series of listeners to add. See addListener.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": true, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 69, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-observe", + "shortDoc": "Sets observability on the passed class constructor.\n\nThis makes any event fired on any instance of the passed class a..." + }, + { + "tagname": "method", + "name": "on", + "member": "Ext.util.Observable", + "doc": "

Appends an event handler to this object (shorthand for addListener.)

\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The type of event to listen for

\n", + "optional": false + }, + { + "type": "Function", + "name": "handler", + "doc": "

The method the event invokes

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

\n", + "optional": true + }, + { + "type": "Object", + "name": "options", + "doc": "

(optional) An object containing handler configuration.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 616, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-on", + "shortDoc": "

Appends an event handler to this object (shorthand for addListener.)

\n" + }, + { + "tagname": "method", + "name": "relayEvents", + "member": "Ext.util.Observable", + "doc": "

Relays selected events from the specified Observable as if the events were fired by this.

\n", + "params": [ + { + "type": "Object", + "name": "origin", + "doc": "

The Observable whose events this object is to relay.

\n", + "optional": false + }, + { + "type": "Array", + "name": "events", + "doc": "

Array of event names to relay.

\n", + "optional": false + }, + { + "type": "Object", + "name": "prefix", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 520, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-relayEvents", + "shortDoc": "

Relays selected events from the specified Observable as if the events were fired by this.

\n" + }, + { + "tagname": "method", + "name": "releaseCapture", + "member": "Ext.util.Observable", + "doc": "

Removes all added captures from the Observable.

\n", + "params": [ + { + "type": "Observable", + "name": "o", + "doc": "

The Observable to release

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": true, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 46, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-releaseCapture", + "shortDoc": "

Removes all added captures from the Observable.

\n" + }, + { + "tagname": "method", + "name": "remove", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Remove an item from the collection.

\n", + "params": [ + { + "type": "Object", + "name": "o", + "doc": "

The item to remove.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item removed or false if no item was removed.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 302, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-remove", + "shortDoc": "

Remove an item from the collection.

\n" + }, + { + "tagname": "method", + "name": "removeAll", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Remove all items in the passed array from the collection.

\n", + "params": [ + { + "type": "Array", + "name": "items", + "doc": "

An array of items to be removed.

\n", + "optional": false + } + ], + "return": { + "type": "Ext.util.MixedCollection", + "doc": "

this object

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 311, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-removeAll", + "shortDoc": "

Remove all items in the passed array from the collection.

\n" + }, + { + "tagname": "method", + "name": "removeAt", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Remove an item from a specified index in the collection. Fires the remove event when complete.

\n", + "params": [ + { + "type": "Number", + "name": "index", + "doc": "

The index within the collection of the item to remove.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item removed or false if no item was removed.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 324, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-removeAt", + "shortDoc": "

Remove an item from a specified index in the collection. Fires the remove event when complete.

\n" + }, + { + "tagname": "method", + "name": "removeAtKey", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Removed an item associated with the passed key fom the collection.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

The key of the item to remove.

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The item removed or false if no item was removed.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 349, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-removeAtKey", + "shortDoc": "

Removed an item associated with the passed key fom the collection.

\n" + }, + { + "tagname": "method", + "name": "removeListener", + "member": "Ext.util.Observable", + "doc": "

Removes an event handler.

\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The type of event the handler was associated with.

\n", + "optional": false + }, + { + "type": "Function", + "name": "handler", + "doc": "

The handler to remove. This must be a reference to the function passed into the addListener call.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope originally specified for the handler.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 352, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-removeListener", + "shortDoc": "

Removes an event handler.

\n" + }, + { + "tagname": "method", + "name": "removeManagedListener", + "member": "Ext.util.Observable", + "doc": "

Removes listeners that were added by the mon method.

\n", + "params": [ + { + "type": "Observable|Element", + "name": "item", + "doc": "

The item from which to remove a listener/listeners.

\n", + "optional": false + }, + { + "type": "Object|String", + "name": "ename", + "doc": "

The event name, or an object containing event name properties.

\n", + "optional": false + }, + { + "type": "Function", + "name": "fn", + "doc": "

Optional. If the ename parameter was an event name, this\nis the handler function.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

Optional. If the ename parameter was an event name, this\nis the scope (this reference) in which the handler function is executed.

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 196, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-removeManagedListener", + "shortDoc": "

Removes listeners that were added by the mon method.

\n" + }, + { + "tagname": "method", + "name": "reorder", + "member": "Ext.util.MixedCollection", + "doc": "

Reorders each of the items based on a mapping from old index to new index. Internally this\njust translates into a sort. The 'sort' event is fired whenever reordering has occured.

\n", + "params": [ + { + "type": "Object", + "name": "mapping", + "doc": "

Mapping from old item index to new item index

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/MixedCollection.js", + "linenr": 151, + "html_filename": "MixedCollection.html", + "href": "MixedCollection.html#Ext-util-MixedCollection-method-reorder", + "shortDoc": "Reorders each of the items based on a mapping from old index to new index. Internally this\njust translates into a sor..." + }, + { + "tagname": "method", + "name": "replace", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Replaces an item in the collection. Fires the replace event when complete.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

The key associated with the item to replace, or the replacement item.

\n\n\n

If you supplied a getKey implementation for this MixedCollection, or if the key\nof your stored items is in a property called id, then the MixedCollection\nwill be able to derive the key of the replacement item. If you want to replace an item\nwith one having the same key value, then just pass the replacement item in this parameter.

\n\n", + "optional": false + }, + { + "type": "Object", + "name": "o", + "doc": "

{Object} o (optional) If the first parameter passed was a key, the item to associate\nwith that key.

\n", + "optional": true + } + ], + "return": { + "type": "Object", + "doc": "

The new item.

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 135, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-replace", + "shortDoc": "

Replaces an item in the collection. Fires the replace event when complete.

\n" + }, + { + "tagname": "method", + "name": "resumeEvents", + "member": "Ext.util.Observable", + "doc": "

Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevents fired during event suspension will be sent to any listeners now.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 502, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-resumeEvents", + "shortDoc": "Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevent..." + }, + { + "tagname": "method", + "name": "sort", + "member": "Ext.util.Sortable", + "doc": "

Sorts the data in the Store by one or more of its properties. Example usage:

\n\n\n
//sort by a single field\nmyStore.sort('myField', 'DESC');\n\n//sorting by multiple fields\nmyStore.sort([\n    {\n        property : 'age',\n        direction: 'ASC'\n    },\n    {\n        property : 'name',\n        direction: 'DESC'\n    }\n]);\n
\n\n\n

Internally, Store converts the passed arguments into an array of Ext.util.Sorter instances, and delegates the actual\nsorting to its internal Ext.util.MixedCollection.

\n\n\n

When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:

\n\n\n
store.sort('myField');\nstore.sort('myField');\n     
\n\n\n

Is equivalent to this code, because Store handles the toggling automatically:

\n\n\n
store.sort('myField', 'ASC');\nstore.sort('myField', 'DESC');\n
\n\n", + "params": [ + { + "type": "String|Array", + "name": "sorters", + "doc": "

Either a string name of one of the fields in this Store's configured Model,\nor an Array of sorter configurations.

\n", + "optional": false + }, + { + "type": "String", + "name": "direction", + "doc": "

The overall direction to sort the data by. Defaults to \"ASC\".

\n", + "optional": false + }, + { + "type": "Object", + "name": "where", + "doc": "\n", + "optional": false + }, + { + "type": "Object", + "name": "doSort", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 59, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-method-sort", + "shortDoc": "Sorts the data in the Store by one or more of its properties. Example usage:\n\n\n//sort by a single field\nmyStore.sort(..." + }, + { + "tagname": "method", + "name": "sortBy", + "member": "Ext.util.MixedCollection", + "doc": "

Sorts the collection by a single sorter function

\n", + "params": [ + { + "type": "Function", + "name": "sorterFn", + "doc": "

The function to sort by

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/MixedCollection.js", + "linenr": 112, + "html_filename": "MixedCollection.html", + "href": "MixedCollection.html#Ext-util-MixedCollection-method-sortBy", + "shortDoc": "

Sorts the collection by a single sorter function

\n" + }, + { + "tagname": "method", + "name": "sortByKey", + "member": "Ext.util.MixedCollection", + "doc": "

Sorts this collection by keys.

\n", + "params": [ + { + "type": "String", + "name": "direction", + "doc": "

(optional) 'ASC' or 'DESC'. Defaults to 'ASC'.

\n", + "optional": true + }, + { + "type": "Function", + "name": "fn", + "doc": "

(optional) Comparison function that defines the sort order.\nDefaults to sorting by case insensitive string.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/MixedCollection.js", + "linenr": 191, + "html_filename": "MixedCollection.html", + "href": "MixedCollection.html#Ext-util-MixedCollection-method-sortByKey", + "shortDoc": "

Sorts this collection by keys.

\n" + }, + { + "tagname": "method", + "name": "sum", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Collects all of the values of the given property and returns their sum

\n", + "params": [ + { + "type": "String", + "name": "property", + "doc": "

The property to sum by

\n", + "optional": false + }, + { + "type": "String", + "name": "root", + "doc": "

Optional 'root' property to extract the first argument from. This is used mainly when\nsumming fields in records, where the fields are all stored inside the 'data' object

\n", + "optional": false + }, + { + "type": "Number", + "name": "start", + "doc": "

(optional) The record index to start at (defaults to 0)

\n", + "optional": true + }, + { + "type": "Number", + "name": "end", + "doc": "

(optional) The record index to end at (defaults to -1)

\n", + "optional": true + } + ], + "return": { + "type": "Number", + "doc": "

The total

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 464, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-method-sum", + "shortDoc": "

Collects all of the values of the given property and returns their sum

\n" + }, + { + "tagname": "method", + "name": "suspendEvents", + "member": "Ext.util.Observable", + "doc": "

Suspend the firing of all events. (see resumeEvents)

\n", + "params": [ + { + "type": "Boolean", + "name": "queueSuspended", + "doc": "

Pass as true to queue up suspended events to be fired\nafter the resumeEvents call instead of discarding all suspended events;

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 490, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-suspendEvents", + "shortDoc": "

Suspend the firing of all events. (see resumeEvents)

\n" + }, + { + "tagname": "method", + "name": "un", + "member": "Ext.util.Observable", + "doc": "

Removes an event handler (shorthand for removeListener.)

\n", + "params": [ + { + "type": "String", + "name": "eventName", + "doc": "

The type of event the handler was associated with.

\n", + "optional": false + }, + { + "type": "Function", + "name": "handler", + "doc": "

The handler to remove. This must be a reference to the function passed into the addListener call.

\n", + "optional": false + }, + { + "type": "Object", + "name": "scope", + "doc": "

(optional) The scope originally specified for the handler.

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js", + "linenr": 608, + "html_filename": "Observable.html", + "href": "Observable.html#Ext-util-Observable-method-un", + "shortDoc": "

Removes an event handler (shorthand for removeListener.)

\n" + } + ], + "property": [ + { + "tagname": "property", + "name": "defaultSortDirection", + "member": "Ext.util.Sortable", + "type": "String", + "doc": "

The default sort direction to use if one is not specified (defaults to \"ASC\")

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 20, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-defaultSortDirection" + }, + { + "tagname": "property", + "name": "isSortable", + "member": "Ext.util.Sortable", + "type": "Boolean", + "doc": "

Flag denoting that this object is sortable. Always true.

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 13, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-isSortable" + }, + { + "tagname": "property", + "name": "sortRoot", + "member": "Ext.util.Sortable", + "type": "String", + "doc": "

The property in each item that contains the data to sort. (defaults to null)

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 31, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-sortRoot" + }, + { + "tagname": "property", + "name": "sorters", + "member": "Ext.util.Sortable", + "type": "Ext.util.MixedCollection", + "doc": "

The collection of Sorters currently applied to this Store

\n", + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Sortable.js", + "linenr": 45, + "html_filename": "Sortable.html", + "href": "Sortable.html#Ext-util-Sortable-property-sorters" + } + ], + "event": [ + { + "tagname": "event", + "name": "add", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Fires when an item is added to the collection.

\n", + "params": [ + { + "type": "Number", + "name": "index", + "doc": "

The index at which the item was added.

\n", + "optional": false + }, + { + "type": "Object", + "name": "o", + "doc": "

The item added.

\n", + "optional": false + }, + { + "type": "String", + "name": "key", + "doc": "

The key associated with the added item.

\n", + "optional": false + } + ], + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 26, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-event-add", + "shortDoc": "

Fires when an item is added to the collection.

\n" + }, + { + "tagname": "event", + "name": "clear", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Fires when the collection is cleared.

\n", + "params": [ + + ], + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 20, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-event-clear", + "shortDoc": "

Fires when the collection is cleared.

\n" + }, + { + "tagname": "event", + "name": "remove", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Fires when an item is removed from the collection.

\n", + "params": [ + { + "type": "Object", + "name": "o", + "doc": "

The item being removed.

\n", + "optional": false + }, + { + "type": "String", + "name": "key", + "doc": "

(optional) The key associated with the removed item.

\n", + "optional": true + } + ], + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 44, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-event-remove", + "shortDoc": "

Fires when an item is removed from the collection.

\n" + }, + { + "tagname": "event", + "name": "replace", + "member": "Ext.util.AbstractMixedCollection", + "doc": "

Fires when an item is replaced in the collection.

\n", + "params": [ + { + "type": "String", + "name": "key", + "doc": "

he key associated with the new added.

\n", + "optional": false + }, + { + "type": "Object", + "name": "old", + "doc": "

The item being replaced.

\n", + "optional": false + }, + { + "type": "Object", + "name": "new", + "doc": "

The new item.

\n", + "optional": false + } + ], + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/AbstractMixedCollection.js", + "linenr": 35, + "html_filename": "AbstractMixedCollection.html", + "href": "AbstractMixedCollection.html#Ext-util-AbstractMixedCollection-event-replace", + "shortDoc": "

Fires when an item is replaced in the collection.

\n" + } + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/MixedCollection.js", + "linenr": 1, + "html_filename": "MixedCollection.html", + "href": "MixedCollection.html#Ext-util-MixedCollection", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + "Ext.util.AbstractMixedCollection" + ], + "subclasses": [ + "Ext.form.CheckboxManager", + "Ext.form.RadioManager", + "Ext.data.Errors", + "Ext.data.StoreManager", + "Ext.draw.CompositeSprite" + ], + "mixedInto": [ + + ], + "allMixins": [ + "Ext.util.Sortable", + "Ext.util.Observable" + ] +}); \ No newline at end of file