Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / docs / api / Ext.draw.CompositeSprite.html
1 <!DOCTYPE html><html><head><title>Ext.draw.CompositeSprite | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
2 <style type="text/css">.head-band { display: none; }
3 .header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
4 .doc-tab .members .member a.more { background-color: #efefef; }
5 </style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
6 </head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit 
7 <a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">
8
9     req = {
10         liveURL: '.',
11         standAloneMode: true,
12         origDocClass: 'Ext.draw.CompositeSprite',
13         docClass: 'Ext.draw.CompositeSprite',
14         docReq: 'Ext.draw.CompositeSprite',
15         version: '4.0',
16         baseURL: '.',
17         baseDocURL: '.',
18         baseProdURL: '.'
19     };
20
21     clsInfo = {};
22
23
24
25 </script>
26
27 <script type="text/javascript" src="../search.js"></script>
28 <!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
29 <script type="text/javascript" src="../class_tree.js"></script>
30 <script type="text/javascript" src="../class_doc.js"></script>
31 <script type="text/javascript">
32     req.source = 'CompositeSprite.html#Ext-draw.CompositeSprite';
33     clsInfo = {"methods":["CompositeSprite","add","addAll","addEvents","addListener","addManagedListener","animate","capture","clear","clearListeners","clearManagedListeners","clone","collect","contains","containsKey","destroy","each","eachKey","enableBubble","filter","filterBy","findBy","findIndex","findIndexBy","fireEvent","first","get","getActiveAnimation","getAt","getBBox","getByKey","getCount","getKey","getRange","getSortState","hasListener","hide","indexOf","indexOfKey","initSortable","insert","last","observe","on","relayEvents","releaseCapture","remove","removeAll","removeAt","removeAtKey","removeListener","removeManagedListener","reorder","replace","resumeEvents","sequenceFx","setAttributes","show","sort","sortBy","sortByKey","stopAnimation","sum","suspendEvents","syncFx","un"],"cfgs":["allowFunctions","listeners"],"properties":["defaultSortDirection","hasActiveFx","isSortable","sortRoot","sorters","stopFx"],"events":["add","clear","remove","replace"],"subclasses":["Ext.chart.LegendItem"]};
34     Ext.onReady(function() {
35         Ext.create('Docs.classPanel');
36     });
37 </script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite" target="_blank">Ext.draw.CompositeSprite</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><pre class="subclasses"><h4>Hierarchy</h4><div class="subclass f"><a href="Ext.util.AbstractMixedCollection.html" rel="Ext.util.AbstractMixedCollection" class="cls docClass">Ext.util.AbstractMixedCollection</a><div class="subclass"><a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="cls docClass">Ext.util.MixedCollection</a><div class="subclass"><strong>Ext.draw.CompositeSprite</strong></div></div></div><h4>Mixins</h4><div class="mixin"><a href="Ext.util.Observable.html" rel="Ext.util.Observable" class="cls docClass">Ext.util.Observable</a></div><div class="mixin"><a href="Ext.util.Sortable.html" rel="Ext.util.Sortable" class="cls docClass">Ext.util.Sortable</a></div><div class="mixin"><a href="Ext.util.Animate.html" rel="Ext.util.Animate" class="cls docClass">Ext.util.Animate</a></div></pre><p>A composite Sprite handles a group of sprites with common methods to a sprite
38 such as <code>hide</code>, <code>show</code>, <code>setAttributes</code>. These methods are applied to the set of sprites
39 added to the group.</p>
40
41 <p>CompositeSprite extends <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a> so you can use the same methods
42 in <code>MixedCollection</code> to iterate through sprites, add and remove elements, etc.</p>
43
44 <p>In order to create a CompositeSprite, one has to provide a handle to the surface where it is
45 rendered:</p>
46
47 <pre class="prettyprint"><code>var group = Ext.create('Ext.draw.CompositeSprite', {
48     surface: drawComponent.surface
49 });
50 </code></pre>
51
52 <p>Then just by using <code>MixedCollection</code> methods it's possible to add <a href="Ext.draw.Sprite.html" rel="Ext.draw.Sprite" class="docClass">Ext.draw.Sprite</a>s:</p>
53
54 <pre class="prettyprint"><code>group.add(sprite1);
55 group.add(sprite2);
56 group.add(sprite3);
57 </code></pre>
58
59 <p>And then apply common Sprite methods to them:</p>
60
61 <pre class="prettyprint"><code>group.setAttributes({
62     fill: '#f00'
63 }, true);
64 </code></pre>
65 <div class="members"><div class="m-cfgs"><div class="definedBy">Defined By</div><a name="configs"></a><h3 class="cfg p">Config Options</h3><h4 class="cfgGroup">Other Configs</h4><div id="config-allowFunctions" class="member f inherited"><a href="Ext.draw.CompositeSprite.html#config-allowFunctions" rel="config-allowFunctions" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-cfg-allowFunctions" class="viewSource">view source</a></div><a name="allowFunctions"></a><a name="config-allowFunctions"></a><a href="Ext.draw.CompositeSprite.html#" rel="config-allowFunctions" class="cls expand">allowFunctions</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Specify <tt>true</tt> if the <a href="Ext.draw.CompositeSprite.html#addAll" rel="Ext.draw.CompositeSprite#addAll" class="docClass">addAll</a>
66 function should add function references to the collection. Defaults to
67 <tt>false</tt>.</p>
68 </div><div class="long"><p>Specify <tt>true</tt> if the <a href="Ext.draw.CompositeSprite.html#addAll" rel="Ext.draw.CompositeSprite#addAll" class="docClass">addAll</a>
69 function should add function references to the collection. Defaults to
70 <tt>false</tt>.</p>
71 </div></div></div><div id="config-listeners" class="member inherited"><a href="Ext.draw.CompositeSprite.html#config-listeners" rel="config-listeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-cfg-listeners" class="viewSource">view source</a></div><a name="listeners"></a><a name="config-listeners"></a><a href="Ext.draw.CompositeSprite.html#" rel="config-listeners" class="cls expand">listeners</a><span> : Object</span></div><div class="description"><div class="short">(optional) A config object containing one or more event handlers to be added to this
72 object during initialization.  T...</div><div class="long"><p>(optional) <p>A config object containing one or more event handlers to be added to this
73 object during initialization.  This should be a valid listeners config object as specified in the
74 <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a> example for attaching multiple handlers at once.</p></p>
75
76 <br><p><b><u>DOM events from ExtJs <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a></u></b></p>
77
78
79 <br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this
80
81
82 <p>is usually only done when extra value can be added. For example the <a href="Ext.view.View.html" rel="Ext.view.View" class="docClass">DataView</a>'s
83 <b><code><a href="Ext.view.View.html#click" rel="Ext.view.View#click" class="docClass">click</a></code></b> event passing the node clicked on. To access DOM
84 events directly from a child element of a Component, we need to specify the <code>element</code> option to
85 identify the Component property to add a DOM listener to:</p>
86
87 <pre><code>new Ext.panel.Panel({
88     width: 400,
89     height: 200,
90     dockedItems: [{
91         xtype: 'toolbar'
92     }],
93     listeners: {
94         click: {
95             element: 'el', //bind to the underlying el property on the panel
96             fn: function(){ console.log('click el'); }
97         },
98         dblclick: {
99             element: 'body', //bind to the underlying body property on the panel
100             fn: function(){ console.log('dblclick body'); }
101         }
102     }
103 });
104 </code></pre>
105
106
107 <p></p></p>
108 </div></div></div></div><div class="m-properties"><a name="properties"></a><div class="definedBy">Defined By</div><h3 class="prp p">Properties</h3><div id="property-defaultSortDirection" class="member f inherited"><a href="Ext.draw.CompositeSprite.html#property-defaultSortDirection" rel="property-defaultSortDirection" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-defaultSortDirection" class="viewSource">view source</a></div><a name="defaultSortDirection"></a><a name="property-defaultSortDirection"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-defaultSortDirection" class="cls expand">defaultSortDirection</a><span> : String</span></div><div class="description"><div class="short"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
109 </div><div class="long"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
110 </div></div></div><div id="property-hasActiveFx" class="member inherited"><a href="Ext.draw.CompositeSprite.html#property-hasActiveFx" rel="property-hasActiveFx" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-property-hasActiveFx" class="viewSource">view source</a></div><a name="hasActiveFx"></a><a name="property-hasActiveFx"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-hasActiveFx" class="cls expand">hasActiveFx</a><span> : Object</span></div><div class="description"><div class="short">@deprecated 4.0 Replaced by getActiveAnimation
111 Returns thq current animation if this object has any effects actively ...</div><div class="long"><p>@deprecated 4.0 Replaced by <a href="Ext.draw.CompositeSprite.html#getActiveAnimation" rel="Ext.draw.CompositeSprite#getActiveAnimation" class="docClass">getActiveAnimation</a>
112 Returns thq current animation if this object has any effects actively running or queued, else returns false.</p>
113 </div></div></div><div id="property-isSortable" class="member inherited"><a href="Ext.draw.CompositeSprite.html#property-isSortable" rel="property-isSortable" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-isSortable" class="viewSource">view source</a></div><a name="isSortable"></a><a name="property-isSortable"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-isSortable" class="cls expand">isSortable</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Flag denoting that this object is sortable. Always true.</p>
114 </div><div class="long"><p>Flag denoting that this object is sortable. Always true.</p>
115 </div></div></div><div id="property-sortRoot" class="member inherited"><a href="Ext.draw.CompositeSprite.html#property-sortRoot" rel="property-sortRoot" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sortRoot" class="viewSource">view source</a></div><a name="sortRoot"></a><a name="property-sortRoot"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-sortRoot" class="cls expand">sortRoot</a><span> : String</span></div><div class="description"><div class="short"><p>The property in each item that contains the data to sort. (defaults to null)</p>
116 </div><div class="long"><p>The property in each item that contains the data to sort. (defaults to null)</p>
117 </div></div></div><div id="property-sorters" class="member inherited"><a href="Ext.draw.CompositeSprite.html#property-sorters" rel="property-sorters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sorters" class="viewSource">view source</a></div><a name="sorters"></a><a name="property-sorters"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-sorters" class="cls expand">sorters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
118 </div><div class="long"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
119 </div></div></div><div id="property-stopFx" class="member inherited"><a href="Ext.draw.CompositeSprite.html#property-stopFx" rel="property-stopFx" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-property-stopFx" class="viewSource">view source</a></div><a name="stopFx"></a><a name="property-stopFx"></a><a href="Ext.draw.CompositeSprite.html#" rel="property-stopFx" class="cls expand">stopFx</a><span> : Object</span></div><div class="description"><div class="short">Stops any running effects and clears this object's internal effects queue if it contains
120 any additional effects that ...</div><div class="long"><p>Stops any running effects and clears this object's internal effects queue if it contains
121 any additional effects that haven't started yet.</p>
122 </div></div></div></div><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-CompositeSprite" class="member f inherited"><a href="Ext.draw.CompositeSprite.html#method-CompositeSprite" rel="method-CompositeSprite" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.MixedCollection.html" class="definedIn docClass">Ext.util.MixedCollection</a><br/><a href="../source/MixedCollection.html#Ext-util.MixedCollection-method-constructor" class="viewSource">view source</a></div><a name="CompositeSprite"></a><a name="method-CompositeSprite"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-CompositeSprite" class="cls expand">CompositeSprite</a>(
123 <span class="pre">Boolean allowFunctions, Function keyFn</span>)
124  : void</div><div class="description"><div class="short"><p>&nbsp;</p></div><div class="long">
125 <h3 class="pa">Parameters</h3><ul><li><span class="pre">allowFunctions</span> : Boolean<div class="sub-desc"><p>Specify <tt>true</tt> if the <a href="Ext.draw.CompositeSprite.html#addAll" rel="Ext.draw.CompositeSprite#addAll" class="docClass">addAll</a>
126 function should add function references to the collection. Defaults to
127 <tt>false</tt>.</p>
128 </div></li><li><span class="pre">keyFn</span> : Function<div class="sub-desc"><p>A function that can accept an item of the type(s) stored in this MixedCollection
129 and return the key value for that item.  This is used when available to look up the key on items that
130 were passed without an explicit key parameter to a MixedCollection method.  Passing this parameter is
131 equivalent to providing an implementation for the <a href="Ext.draw.CompositeSprite.html#getKey" rel="Ext.draw.CompositeSprite#getKey" class="docClass">getKey</a> method.</p>
132 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
133 </li></ul></div></div></div><div id="method-add" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-add" rel="method-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-add" class="viewSource">view source</a></div><a name="add"></a><a name="method-add"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-add" class="cls expand">add</a>(
134 <span class="pre">Object key, Object o</span>)
135  : void</div><div class="description"><div class="short"><p>Add a Sprite to the Group</p>
136 </div><div class="long"><p>Add a Sprite to the Group</p>
137 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : Object<div class="sub-desc">
138 </div></li><li><span class="pre">o</span> : Object<div class="sub-desc">
139 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
140 </li></ul></div></div></div><div id="method-addAll" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-addAll" rel="method-addAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-addAll" class="viewSource">view source</a></div><a name="addAll"></a><a name="method-addAll"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-addAll" class="cls expand">addAll</a>(
141 <span class="pre">Object/Array objs</span>)
142  : void</div><div class="description"><div class="short"><p>Adds all elements of an Array or an Object to the collection.</p>
143 </div><div class="long"><p>Adds all elements of an Array or an Object to the collection.</p>
144 <h3 class="pa">Parameters</h3><ul><li><span class="pre">objs</span> : Object/Array<div class="sub-desc"><p>An Object containing properties which will be added
145 to the collection, or an Array of values, each of which are added to the collection.
146 Functions references will be added to the collection if <code><a href="Ext.draw.CompositeSprite.html#allowFunctions" rel="Ext.draw.CompositeSprite#allowFunctions" class="docClass">allowFunctions</a></code>
147 has been set to <tt>true</tt>.</p>
148 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
149 </li></ul></div></div></div><div id="method-addEvents" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-addEvents" rel="method-addEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addEvents" class="viewSource">view source</a></div><a name="addEvents"></a><a name="method-addEvents"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-addEvents" class="cls expand">addEvents</a>(
150 <span class="pre">Object/String o, String </span>)
151  : void</div><div class="description"><div class="short"><p>Adds the specified events to the list of events which this Observable may fire.</p>
152 </div><div class="long"><p>Adds the specified events to the list of events which this Observable may fire.</p>
153 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object/String<div class="sub-desc"><p>Either an object with event names as properties with a value of <code>true</code>
154 or the first event name string if multiple event names are being passed as separate parameters.</p>
155 </div></li><li><span class="pre"></span> : String<div class="sub-desc"><p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.
156 Usage:</p>
157
158 <pre><code>this.addEvents('storeloaded', 'storecleared');
159 </code></pre>
160
161 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
162 </li></ul></div></div></div><div id="method-addListener" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-addListener" rel="method-addListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addListener" class="viewSource">view source</a></div><a name="addListener"></a><a name="method-addListener"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-addListener" class="cls expand">addListener</a>(
163 <span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
164  : void</div><div class="description"><div class="short"><p>Appends an event handler to this object.</p>
165 </div><div class="long"><p>Appends an event handler to this object.</p>
166 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to listen for. May also be an object who's property names are event names. See</p>
167 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes.</p>
168 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
169 <b>If omitted, defaults to the object which fired the event.</b></p>
170 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.
171 properties. This may contain any of the following properties:<ul>
172 <li><b>scope</b> : Object<div class="sub-desc">The scope (<code><b>this</b></code> reference) in which the handler function is executed.
173 <b>If omitted, defaults to the object which fired the event.</b></div></li>
174 <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>
175 <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>
176 <li><b>buffer</b> : Number<div class="sub-desc">Causes the handler to be scheduled to run in an <a href="Ext.util.DelayedTask.html" rel="Ext.util.DelayedTask" class="docClass">Ext.util.DelayedTask</a> delayed
177 by the specified number of milliseconds. If the event fires again within that time, the original
178 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>
179 <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>
180 if the event was bubbled up from a child Observable.</div></li>
181 <li><b>element</b> : String<div class="sub-desc"><b>This option is only valid for listeners bound to <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a>.</b>
182 The name of a Component property which references an element to add a listener to.</p>
183
184 <p>This option is useful during Component construction to add DOM event listeners to elements of <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a> which
185 will exist only after the Component is rendered. For example, to add a click listener to a Panel's body:
186 <pre><code>new Ext.panel.Panel({
187     title: 'The title',
188     listeners: {
189         click: this.handlePanelClick,
190         element: 'body'
191     }
192 });
193 </code></pre></p>
194
195
196 <p>When added in this way, the options available are the options applicable to <a href="Ext.core.Element.html#addListener" rel="Ext.core.Element#addListener" class="docClass">Ext.core.Element.addListener</a></p>
197
198
199 <p></div></li>
200 </ul><br></p>
201
202 <p>
203 <b>Combining Options</b><br>
204 Using the options argument, it is possible to combine different types of listeners:<br>
205 <br>
206 A delayed, one-time listener.
207 <pre><code>myPanel.on('hide', this.handleClick, this, {
208 single: true,
209 delay: 100
210 });</code></pre>
211 <p>
212 <b>Attaching multiple handlers in 1 call</b><br>
213 The method also allows for a single argument to be passed which is a config object containing properties
214 which specify multiple events. For example:
215 <pre><code>myGridPanel.on({
216     cellClick: this.onCellClick,
217     mouseover: this.onMouseOver,
218     mouseout: this.onMouseOut,
219     scope: this // Important. Ensure "this" is correct during handler execution
220 });
221 </code></pre>.
222 <p>
223
224 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
225 </li></ul></div></div></div><div id="method-addManagedListener" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-addManagedListener" rel="method-addManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addManagedListener" class="viewSource">view source</a></div><a name="addManagedListener"></a><a name="method-addManagedListener"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-addManagedListener" class="cls expand">addManagedListener</a>(
226 <span class="pre">Observable/Element item, Object/String ename, Function fn, Object scope, Object opt</span>)
227  : void</div><div class="description"><div class="short"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
228 is destroyed.
229
230 </div><div class="long"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
231 is destroyed.
232
233 <h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable/Element<div class="sub-desc"><p>The item to which to add a listener/listeners.</p>
234 </div></li><li><span class="pre">ename</span> : Object/String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
235 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
236 is the handler function.</p>
237 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
238 is the scope (<code>this</code> reference) in which the handler function is executed.</p>
239 </div></li><li><span class="pre">opt</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
240 is the <a href="Ext.util.Observable.html#addListener" rel="Ext.util.Observable#addListener" class="docClass">addListener</a> options.</p>
241 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
242 </li></ul></div></div></div><div id="method-animate" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-animate" rel="method-animate" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-method-animate" class="viewSource">view source</a></div><a name="animate"></a><a name="method-animate"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-animate" class="cls expand">animate</a>(
243 <span class="pre">Object config</span>)
244  : Object</div><div class="description"><div class="short">Perform custom animation on this object.
245 This method is applicable to both the the Component class and the Element cl...</div><div class="long"><p>Perform custom animation on this object.<p>
246 <p>This method is applicable to both the the <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Component</a> class and the <a href="Ext.core.Element.html" rel="Ext.core.Element" class="docClass">Element</a> class.
247 It performs animated transitions of certain properties of this object over a specified timeline.</p>
248 <p>The sole parameter is an object which specifies start property values, end property values, and properties which
249 describe the timeline. Of the properties listed below, only <b><code>to</code></b> is mandatory.</p>
250 <p>Properties include<ul>
251 <li><code>from</code> <div class="sub-desc">An object which specifies start values for the properties being animated.
252 If not supplied, properties are animated from current settings. The actual properties which may be animated depend upon
253 ths object being animated. See the sections below on Element and Component animation.<div></li>
254 <li><code>to</code> <div class="sub-desc">An object which specifies end values for the properties being animated.</div></li>
255 <li><code>duration</code><div class="sub-desc">The duration <b>in milliseconds</b> for which the animation will run.</div></li>
256 <li><code>easing</code> <div class="sub-desc">A string value describing an easing type to modify the rate of change from the default linear to non-linear. Values may be one of:<code><ul>
257 <li>ease</li>
258 <li>easeIn</li>
259 <li>easeOut</li>
260 <li>easeInOut</li>
261 <li>backIn</li>
262 <li>backOut</li>
263 <li>elasticIn</li>
264 <li>elasticOut</li>
265 <li>bounceIn</li>
266 <li>bounceOut</li>
267 </ul></code></div></li>
268 <li><code>keyframes</code> <div class="sub-desc">This is an object which describes the state of animated properties at certain points along the timeline.
269 it is an object containing properties who's names are the percentage along the timeline being described and who's values specify the animation state at that point.</div></li>
270 <li><code>listeners</code> <div class="sub-desc">This is a standard <a href="Ext.util.Observable.html#listeners" rel="Ext.util.Observable#listeners" class="docClass">listeners</a> configuration object which may be used
271 to inject behaviour at either the <code>beforeanimate</code> event or the <code>afteranimate</code> event.</div></li>
272 </ul></p>
273 <h3>Animating an <a href="Ext.core.Element.html" rel="Ext.core.Element" class="docClass">Element</a></h3>
274 When animating an Element, the following properties may be specified in <code>from</code>, <code>to</code>, and <code>keyframe</code> objects:<ul>
275 <li><code>x</code> <div class="sub-desc">The page X position in pixels.</div></li>
276 <li><code>y</code> <div class="sub-desc">The page Y position in pixels</div></li>
277 <li><code>left</code> <div class="sub-desc">The element's CSS <code>left</code> value. Units must be supplied.</div></li>
278 <li><code>top</code> <div class="sub-desc">The element's CSS <code>top</code> value. Units must be supplied.</div></li>
279 <li><code>width</code> <div class="sub-desc">The element's CSS <code>width</code> value. Units must be supplied.</div></li>
280 <li><code>height</code> <div class="sub-desc">The element's CSS <code>height</code> value. Units must be supplied.</div></li>
281 <li><code>scrollLeft</code> <div class="sub-desc">The element's <code>scrollLeft</code> value.</div></li>
282 <li><code>scrollTop</code> <div class="sub-desc">The element's <code>scrollLeft</code> value.</div></li>
283 <li><code>opacity</code> <div class="sub-desc">The element's <code>opacity</code> value. This must be a value between <code>0</code> and <code>1</code>.</div></li>
284 </ul>
285 <p><b>Be aware than animating an Element which is being used by an <a href="Ext.html" rel="Ext" class="docClass">Ext</a> Component without in some way informing the Component about the changed element state
286 will result in incorrect Component behaviour. This is because the Component will be using the old state of the element. To avoid this problem, it is now possible to
287 directly animate certain properties of Components.</b></p>
288 <h3>Animating a <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Component</a></h3>
289 When animating an Element, the following properties may be specified in <code>from</code>, <code>to</code>, and <code>keyframe</code> objects:<ul>
290 <li><code>x</code> <div class="sub-desc">The Component's page X position in pixels.</div></li>
291 <li><code>y</code> <div class="sub-desc">The Component's page Y position in pixels</div></li>
292 <li><code>left</code> <div class="sub-desc">The Component's <code>left</code> value in pixels.</div></li>
293 <li><code>top</code> <div class="sub-desc">The Component's <code>top</code> value in pixels.</div></li>
294 <li><code>width</code> <div class="sub-desc">The Component's <code>width</code> value in pixels.</div></li>
295 <li><code>width</code> <div class="sub-desc">The Component's <code>width</code> value in pixels.</div></li>
296 <li><code>dynamic</code> <div class="sub-desc">Specify as true to update the Component's layout (if it is a Container) at every frame
297 of the animation. <i>Use sparingly as laying out on every intermediate size change is an expensive operation</i>.</div></li>
298 </ul>
299 <p>For example, to animate a Window to a new size, ensuring that its internal layout, and any shadow is correct:</p>
300 <pre><code>myWindow = Ext.create('Ext.window.Window', {
301     title: 'Test Component animation',
302     width: 500,
303     height: 300,
304     layout: {
305         type: 'hbox',
306         align: 'stretch'
307     },
308     items: [{
309         title: 'Left: 33%',
310         margins: '5 0 5 5',
311         flex: 1
312     }, {
313         title: 'Left: 66%',
314         margins: '5 5 5 5',
315         flex: 2
316     }]
317 });
318 myWindow.show();
319 myWindow.header.el.on('click', function() {
320     myWindow.animate({
321         to: {
322             width: (myWindow.getWidth() == 500) ? 700 : 500,
323             height: (myWindow.getHeight() == 300) ? 400 : 300,
324         }
325     });
326 });
327 </code></pre>
328 <p>For performance reasons, by default, the internal layout is only updated when the Window reaches its final <code>"to"</code> size. If dynamic updating of the Window's child
329 Components is required, then configure the animation with <code>dynamic: true</code> and the two child items will maintain their proportions during the animation.</p>
330
331 <h3 class="pa">Parameters</h3><ul><li><span class="pre">config</span> : Object<div class="sub-desc"><p>An object containing properties which describe the animation's start and end states, and the timeline of the animation.</p>
332 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>this</p>
333 </li></ul></div></div></div><div id="method-capture" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-capture" rel="method-capture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-capture" class="viewSource">view source</a></div><a name="capture"></a><a name="method-capture"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-capture" class="cls expand">capture</a>(
334 <span class="pre">Observable o, Function fn, [Object scope]</span>)
335  : void</div><div class="description"><div class="short">Starts capture on the specified Observable. All events will be passed
336 to the supplied function with the event name + ...</div><div class="long"><p>Starts capture on the specified Observable. All events will be passed
337 to the supplied function with the event name + standard signature of the event
338 <b>before</b> the event is fired. If the supplied function returns false,
339 the event will not fire.</p>
340 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to capture events from.</p>
341 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call when an event is fired.</p>
342 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>
343 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
344 </li></ul></div></div></div><div id="method-clear" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-clear" rel="method-clear" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-clear" class="viewSource">view source</a></div><a name="clear"></a><a name="method-clear"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-clear" class="cls expand">clear</a> : void</div><div class="description"><div class="short"><p>Removes all items from the collection.  Fires the <a href="Ext.draw.CompositeSprite.html#clear" rel="Ext.draw.CompositeSprite#clear" class="docClass">clear</a> event when complete.</p>
345 </div><div class="long"><p>Removes all items from the collection.  Fires the <a href="Ext.draw.CompositeSprite.html#clear" rel="Ext.draw.CompositeSprite#clear" class="docClass">clear</a> event when complete.</p>
346 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
347 </li></ul></div></div></div><div id="method-clearListeners" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-clearListeners" rel="method-clearListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearListeners" class="viewSource">view source</a></div><a name="clearListeners"></a><a name="method-clearListeners"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-clearListeners" class="cls expand">clearListeners</a> : void</div><div class="description"><div class="short"><p>Removes all listeners for this object including the managed listeners</p>
348 </div><div class="long"><p>Removes all listeners for this object including the managed listeners</p>
349 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
350 </li></ul></div></div></div><div id="method-clearManagedListeners" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-clearManagedListeners" rel="method-clearManagedListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearManagedListeners" class="viewSource">view source</a></div><a name="clearManagedListeners"></a><a name="method-clearManagedListeners"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-clearManagedListeners" class="cls expand">clearManagedListeners</a> : void</div><div class="description"><div class="short"><p>Removes all managed listeners for this object.</p>
351 </div><div class="long"><p>Removes all managed listeners for this object.</p>
352 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
353 </li></ul></div></div></div><div id="method-clone" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-clone" rel="method-clone" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-clone" class="viewSource">view source</a></div><a name="clone"></a><a name="method-clone"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-clone" class="cls expand">clone</a> : MixedCollection</div><div class="description"><div class="short"><p>Creates a shallow copy of this collection</p>
354 </div><div class="long"><p>Creates a shallow copy of this collection</p>
355 <h3 class="pa">Returns</h3><ul><li><span class="pre">MixedCollection</span>&nbsp; &nbsp;
356 </li></ul></div></div></div><div id="method-collect" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-collect" rel="method-collect" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-collect" class="viewSource">view source</a></div><a name="collect"></a><a name="method-collect"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-collect" class="cls expand">collect</a>(
357 <span class="pre">String property, String root, [Boolean allowBlank]</span>)
358  : Array</div><div class="description"><div class="short"><p>Collects unique values of a particular property in this MixedCollection</p>
359 </div><div class="long"><p>Collects unique values of a particular property in this MixedCollection</p>
360 <h3 class="pa">Parameters</h3><ul><li><span class="pre">property</span> : String<div class="sub-desc"><p>The property to collect on</p>
361 </div></li><li><span class="pre">root</span> : String<div class="sub-desc"><p>Optional 'root' property to extract the first argument from. This is used mainly when
362 summing fields in records, where the fields are all stored inside the 'data' object</p>
363 </div></li><li><span class="pre">allowBlank</span> : Boolean<div class="sub-desc"><p>(optional) Pass true to allow null, undefined or empty string values</p>
364 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The unique values</p>
365 </li></ul></div></div></div><div id="method-contains" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-contains" rel="method-contains" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-contains" class="viewSource">view source</a></div><a name="contains"></a><a name="method-contains"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-contains" class="cls expand">contains</a>(
366 <span class="pre">Object o</span>)
367  : Boolean</div><div class="description"><div class="short"><p>Returns true if the collection contains the passed Object as an item.</p>
368 </div><div class="long"><p>Returns true if the collection contains the passed Object as an item.</p>
369 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object<div class="sub-desc"><p>The Object to look for in the collection.</p>
370 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the collection contains the Object as an item.</p>
371 </li></ul></div></div></div><div id="method-containsKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-containsKey" rel="method-containsKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-containsKey" class="viewSource">view source</a></div><a name="containsKey"></a><a name="method-containsKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-containsKey" class="cls expand">containsKey</a>(
372 <span class="pre">String key</span>)
373  : Boolean</div><div class="description"><div class="short"><p>Returns true if the collection contains the passed Object as a key.</p>
374 </div><div class="long"><p>Returns true if the collection contains the passed Object as a key.</p>
375 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key to look for in the collection.</p>
376 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the collection contains the Object as a key.</p>
377 </li></ul></div></div></div><div id="method-destroy" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-destroy" rel="method-destroy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-destroy" class="viewSource">view source</a></div><a name="destroy"></a><a name="method-destroy"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-destroy" class="cls expand">destroy</a> : void</div><div class="description"><div class="short"><p>Destroys the SpriteGroup</p>
378 </div><div class="long"><p>Destroys the SpriteGroup</p>
379 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
380 </li></ul></div></div></div><div id="method-each" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-each" rel="method-each" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-each" class="viewSource">view source</a></div><a name="each"></a><a name="method-each"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-each" class="cls expand">each</a>(
381 <span class="pre">Function fn, [Object scope]</span>)
382  : void</div><div class="description"><div class="short">Executes the specified function once for every item in the collection, passing the following arguments:
383
384
385 item : Mixe...</div><div class="long"><p>Executes the specified function once for every item in the collection, passing the following arguments:</p>
386
387 <div class="mdetail-params"><ul>
388 <li><b>item</b> : Mixed<p class="sub-desc">The collection item</p></li>
389 <li><b>index</b> : Number<p class="sub-desc">The item's index</p></li>
390 <li><b>length</b> : Number<p class="sub-desc">The total number of items in the collection</p></li>
391 </ul></div>
392
393
394 <p>The function should return a boolean value. Returning false from the function will stop the iteration.</p>
395 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to execute for each item.</p>
396 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the current item in the iteration.</p>
397 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
398 </li></ul></div></div></div><div id="method-eachKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-eachKey" rel="method-eachKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-eachKey" class="viewSource">view source</a></div><a name="eachKey"></a><a name="method-eachKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-eachKey" class="cls expand">eachKey</a>(
399 <span class="pre">Function fn, [Object scope]</span>)
400  : void</div><div class="description"><div class="short">Executes the specified function once for every key in the collection, passing each
401 key, and its associated item as th...</div><div class="long"><p>Executes the specified function once for every key in the collection, passing each
402 key, and its associated item as the first two parameters.</p>
403 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to execute for each item.</p>
404 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the browser window.</p>
405 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
406 </li></ul></div></div></div><div id="method-enableBubble" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-enableBubble" rel="method-enableBubble" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-enableBubble" class="viewSource">view source</a></div><a name="enableBubble"></a><a name="method-enableBubble"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-enableBubble" class="cls expand">enableBubble</a>(
407 <span class="pre">String/Array events</span>)
408  : void</div><div class="description"><div class="short">Enables events fired by this Observable to bubble up an owner hierarchy by calling
409 this.getBubbleTarget() if present....</div><div class="long"><p>Enables events fired by this Observable to bubble up an owner hierarchy by calling
410 <code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>
411
412
413 <p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>. The default
414 implementation in <a href="Ext.Component.html" 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
415 access the required target more quickly.</p>
416
417
418 <p>Example:</p>
419
420
421 <pre><code>Ext.override(Ext.form.field.Base, {
422 //  Add functionality to Field&#39;s initComponent to enable the change event to bubble
423 initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {
424     this.enableBubble('change');
425 }),
426
427 //  We know that we want Field&#39;s events to bubble directly to the FormPanel.
428 getBubbleTarget : function() {
429     if (!this.formPanel) {
430         this.formPanel = this.findParentByType('form');
431     }
432     return this.formPanel;
433 }
434 });
435
436 var myForm = new Ext.formPanel({
437 title: 'User Details',
438 items: [{
439     ...
440 }],
441 listeners: {
442     change: function() {
443         // Title goes red if form has been modified.
444         myForm.header.setStyle('color', 'red');
445     }
446 }
447 });
448 </code></pre>
449
450 <h3 class="pa">Parameters</h3><ul><li><span class="pre">events</span> : String/Array<div class="sub-desc"><p>The event name to bubble, or an Array of event names.</p>
451 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
452 </li></ul></div></div></div><div id="method-filter" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-filter" rel="method-filter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-filter" class="viewSource">view source</a></div><a name="filter"></a><a name="method-filter"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-filter" class="cls expand">filter</a>(
453 <span class="pre">Array/String property, String/RegExp value, [Boolean anyMatch], [Boolean caseSensitive]</span>)
454  : MixedCollection</div><div class="description"><div class="short">Filters the objects in this collection by a set of Filters, or by a single
455 property/value pair with optional paramete...</div><div class="long"><p>Filters the objects in this collection by a set of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filter</a>s, or by a single
456 property/value pair with optional parameters for substring matching and case sensitivity. See
457 <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filter</a> for an example of using Filter objects (preferred). Alternatively,
458 MixedCollection can be easily filtered by property like this:</p>
459
460
461 <pre><code>//create a simple store with a few people defined
462 var people = new Ext.util.MixedCollection();
463 people.addAll([
464     {id: 1, age: 25, name: 'Ed'},
465     {id: 2, age: 24, name: 'Tommy'},
466     {id: 3, age: 24, name: 'Arne'},
467     {id: 4, age: 26, name: 'Aaron'}
468 ]);
469
470 //a new MixedCollection containing only the items where age == 24
471 var middleAged = people.filter('age', 24);
472 </code></pre>
473
474 <h3 class="pa">Parameters</h3><ul><li><span class="pre">property</span> : Array/String<div class="sub-desc"><p>A property on your objects, or an array of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filter</a> objects</p>
475 </div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>Either string that the property values
476 should start with or a RegExp to test against the property</p>
477 </div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning</p>
478 </div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison (defaults to False).</p>
479 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">MixedCollection</span>&nbsp; &nbsp;<p>The new filtered collection</p>
480 </li></ul></div></div></div><div id="method-filterBy" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-filterBy" rel="method-filterBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-filterBy" class="viewSource">view source</a></div><a name="filterBy"></a><a name="method-filterBy"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-filterBy" class="cls expand">filterBy</a>(
481 <span class="pre">Function fn, [Object scope]</span>)
482  : MixedCollection</div><div class="description"><div class="short">Filter by a function. Returns a new collection that has been filtered.
483 The passed function will be called with each o...</div><div class="long"><p>Filter by a function. Returns a <i>new</i> collection that has been filtered.
484 The passed function will be called with each object in the collection.
485 If the function returns true, the value is included otherwise it is filtered.</p>
486 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called, it will receive the args o (the object), k (the key)</p>
487 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this MixedCollection.</p>
488 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">MixedCollection</span>&nbsp; &nbsp;<p>The new filtered collection</p>
489 </li></ul></div></div></div><div id="method-findBy" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-findBy" rel="method-findBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-findBy" class="viewSource">view source</a></div><a name="findBy"></a><a name="method-findBy"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-findBy" class="cls expand">findBy</a>(
490 <span class="pre">Function fn, [Object scope]</span>)
491  : Object</div><div class="description"><div class="short"><p>Returns the first item in the collection which elicits a true return value from the
492 passed selection function.</p>
493 </div><div class="long"><p>Returns the first item in the collection which elicits a true return value from the
494 passed selection function.</p>
495 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The selection function to execute for each item.</p>
496 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the browser window.</p>
497 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The first item in the collection which returned true from the selection function.</p>
498 </li></ul></div></div></div><div id="method-findIndex" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-findIndex" rel="method-findIndex" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-findIndex" class="viewSource">view source</a></div><a name="findIndex"></a><a name="method-findIndex"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-findIndex" class="cls expand">findIndex</a>(
499 <span class="pre">String property, String/RegExp value, [Number start], [Boolean anyMatch], [Boolean caseSensitive]</span>)
500  : Number</div><div class="description"><div class="short"><p>Finds the index of the first matching object in this collection by a specific property/value.</p>
501 </div><div class="long"><p>Finds the index of the first matching object in this collection by a specific property/value.</p>
502 <h3 class="pa">Parameters</h3><ul><li><span class="pre">property</span> : String<div class="sub-desc"><p>The name of a property on your objects.</p>
503 </div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>A string that the property values
504 should start with or a RegExp to test against the property.</p>
505 </div></li><li><span class="pre">start</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at (defaults to 0).</p>
506 </div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning.</p>
507 </div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison.</p>
508 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
509 </li></ul></div></div></div><div id="method-findIndexBy" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-findIndexBy" rel="method-findIndexBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-findIndexBy" class="viewSource">view source</a></div><a name="findIndexBy"></a><a name="method-findIndexBy"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-findIndexBy" class="cls expand">findIndexBy</a>(
510 <span class="pre">Function fn, [Object scope], [Number start]</span>)
511  : Number</div><div class="description"><div class="short">Find the index of the first matching object in this collection by a function.
512 If the function returns true it is cons...</div><div class="long"><p>Find the index of the first matching object in this collection by a function.
513 If the function returns <i>true</i> it is considered a match.</p>
514 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called, it will receive the args o (the object), k (the key).</p>
515 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this MixedCollection.</p>
516 </div></li><li><span class="pre">start</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at (defaults to 0).</p>
517 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
518 </li></ul></div></div></div><div id="method-fireEvent" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-fireEvent" rel="method-fireEvent" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-fireEvent" class="viewSource">view source</a></div><a name="fireEvent"></a><a name="method-fireEvent"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-fireEvent" class="cls expand">fireEvent</a>(
519 <span class="pre">String eventName, Object... args</span>)
520  : Boolean</div><div class="description"><div class="short">Fires the specified event with the passed parameters (minus the event name).
521
522
523 An event may be set to bubble up an Ob...</div><div class="long"><p>Fires the specified event with the passed parameters (minus the event name).</p>
524
525
526 <p>An event may be set to bubble up an Observable parent hierarchy (See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>)
527 by calling <a href="Ext.draw.CompositeSprite.html#enableBubble" rel="Ext.draw.CompositeSprite#enableBubble" class="docClass">enableBubble</a>.</p>
528
529 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to fire.</p>
530 </div></li><li><span class="pre">args</span> : Object...<div class="sub-desc"><p>Variable number of parameters are passed to handlers.</p>
531 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>returns false if any of the handlers return false otherwise it returns true.</p>
532 </li></ul></div></div></div><div id="method-first" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-first" rel="method-first" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-first" class="viewSource">view source</a></div><a name="first"></a><a name="method-first"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-first" class="cls expand">first</a> : Object</div><div class="description"><div class="short"><p>Returns the first item in the collection.</p>
533 </div><div class="long"><p>Returns the first item in the collection.</p>
534 <h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>the first item in the collection..</p>
535 </li></ul></div></div></div><div id="method-get" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-get" rel="method-get" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-get" class="viewSource">view source</a></div><a name="get"></a><a name="method-get"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-get" class="cls expand">get</a>(
536 <span class="pre">String/Number key</span>)
537  : Object</div><div class="description"><div class="short">Returns the item associated with the passed key OR index.
538 Key has priority over index.  This is the equivalent
539 of cal...</div><div class="long"><p>Returns the item associated with the passed key OR index.
540 Key has priority over index.  This is the equivalent
541 of calling <a href="Ext.draw.CompositeSprite.html#key" rel="Ext.draw.CompositeSprite#key" class="docClass">key</a> first, then if nothing matched calling <a href="Ext.draw.CompositeSprite.html#getAt" rel="Ext.draw.CompositeSprite#getAt" class="docClass">getAt</a>.</p>
542 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String/Number<div class="sub-desc"><p>The key or index of the item.</p>
543 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>If the item is found, returns the item.  If the item was not found, returns <tt>undefined</tt>.
544 If an item was found, but is a Class, returns <tt>null</tt>.</p>
545 </li></ul></div></div></div><div id="method-getActiveAnimation" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getActiveAnimation" rel="method-getActiveAnimation" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-method-getActiveAnimation" class="viewSource">view source</a></div><a name="getActiveAnimation"></a><a name="method-getActiveAnimation"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getActiveAnimation" class="cls expand">getActiveAnimation</a> : Mixed</div><div class="description"><div class="short"><p>Returns thq current animation if this object has any effects actively running or queued, else returns false.</p>
546 </div><div class="long"><p>Returns thq current animation if this object has any effects actively running or queued, else returns false.</p>
547 <h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed</span>&nbsp; &nbsp;<p>anim if element has active effects, else false</p>
548 </li></ul></div></div></div><div id="method-getAt" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getAt" rel="method-getAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-getAt" class="viewSource">view source</a></div><a name="getAt"></a><a name="method-getAt"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getAt" class="cls expand">getAt</a>(
549 <span class="pre">Number index</span>)
550  : Object</div><div class="description"><div class="short"><p>Returns the item at the specified index.</p>
551 </div><div class="long"><p>Returns the item at the specified index.</p>
552 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the item.</p>
553 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The item at the specified index.</p>
554 </li></ul></div></div></div><div id="method-getBBox" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-getBBox" rel="method-getBBox" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-getBBox" class="viewSource">view source</a></div><a name="getBBox"></a><a name="method-getBBox"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getBBox" class="cls expand">getBBox</a> : void</div><div class="description"><div class="short"><p>Returns the group bounding box.
555 Behaves like <a href="Ext.draw.Sprite.html" rel="Ext.draw.Sprite" class="docClass">Ext.draw.Sprite</a> getBBox method.</p>
556 </div><div class="long"><p>Returns the group bounding box.
557 Behaves like <a href="Ext.draw.Sprite.html" rel="Ext.draw.Sprite" class="docClass">Ext.draw.Sprite</a> getBBox method.</p>
558 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
559 </li></ul></div></div></div><div id="method-getByKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getByKey" rel="method-getByKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-getByKey" class="viewSource">view source</a></div><a name="getByKey"></a><a name="method-getByKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getByKey" class="cls expand">getByKey</a>(
560 <span class="pre">String/Number key</span>)
561  : Object</div><div class="description"><div class="short"><p>Returns the item associated with the passed key.</p>
562 </div><div class="long"><p>Returns the item associated with the passed key.</p>
563 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String/Number<div class="sub-desc"><p>The key of the item.</p>
564 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The item associated with the passed key.</p>
565 </li></ul></div></div></div><div id="method-getCount" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getCount" rel="method-getCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-getCount" class="viewSource">view source</a></div><a name="getCount"></a><a name="method-getCount"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getCount" class="cls expand">getCount</a> : Number</div><div class="description"><div class="short"><p>Returns the number of items in the collection.</p>
566 </div><div class="long"><p>Returns the number of items in the collection.</p>
567 <h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>the number of items in the collection.</p>
568 </li></ul></div></div></div><div id="method-getKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getKey" rel="method-getKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-getKey" class="viewSource">view source</a></div><a name="getKey"></a><a name="method-getKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getKey" class="cls expand">getKey</a>(
569 <span class="pre">Object item</span>)
570  : Object</div><div class="description"><div class="short">MixedCollection has a generic way to fetch keys if you implement getKey.  The default implementation
571 simply returns i...</div><div class="long"><p>MixedCollection has a generic way to fetch keys if you implement getKey.  The default implementation
572 simply returns <b><code>item.id</code></b> but you can provide your own implementation
573 to return a different value as in the following examples:</p>
574
575 <pre><code>// normal way
576 var mc = new Ext.util.MixedCollection();
577 mc.add(someEl.dom.id, someEl);
578 mc.add(otherEl.dom.id, otherEl);
579 //and so on
580
581 // using getKey
582 var mc = new Ext.util.MixedCollection();
583 mc.getKey = function(el){
584    return el.dom.id;
585 };
586 mc.add(someEl);
587 mc.add(otherEl);
588
589 // or via the constructor
590 var mc = new Ext.util.MixedCollection(false, function(el){
591    return el.dom.id;
592 });
593 mc.add(someEl);
594 mc.add(otherEl);
595 </code></pre>
596
597 <h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Object<div class="sub-desc"><p>The item for which to find the key.</p>
598 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The key for the passed item.</p>
599 </li></ul></div></div></div><div id="method-getRange" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getRange" rel="method-getRange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-getRange" class="viewSource">view source</a></div><a name="getRange"></a><a name="method-getRange"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getRange" class="cls expand">getRange</a>(
600 <span class="pre">[Number startIndex], [Number endIndex]</span>)
601  : Array</div><div class="description"><div class="short"><p>Returns a range of items in this collection</p>
602 </div><div class="long"><p>Returns a range of items in this collection</p>
603 <h3 class="pa">Parameters</h3><ul><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The starting index. Defaults to 0.</p>
604 </div></li><li><span class="pre">endIndex</span> : Number<div class="sub-desc"><p>(optional) The ending index. Defaults to the last item.</p>
605 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>An array of items</p>
606 </li></ul></div></div></div><div id="method-getSortState" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-getSortState" rel="method-getSortState" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-getSortState" class="viewSource">view source</a></div><a name="getSortState"></a><a name="method-getSortState"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-getSortState" class="cls expand">getSortState</a> : Object</div><div class="description"><div class="short"><p>Returns an object describing the current sort state of this Store.</p>
607 </div><div class="long"><p>Returns an object describing the current sort state of this Store.</p>
608 <h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The sort state of the Store. An object with two properties:<ul>
609 <li><b>field</b> : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
610 <li><b>direction</b> : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
611 </ul>
612 See <tt><a href="Ext.draw.CompositeSprite.html#sortInfo" rel="Ext.draw.CompositeSprite#sortInfo" class="docClass">sortInfo</a></tt> for additional details.</p>
613 </li></ul></div></div></div><div id="method-hasListener" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-hasListener" rel="method-hasListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-hasListener" class="viewSource">view source</a></div><a name="hasListener"></a><a name="method-hasListener"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-hasListener" class="cls expand">hasListener</a>(
614 <span class="pre">String eventName</span>)
615  : Boolean</div><div class="description"><div class="short"><p>Checks to see if this object has any listeners for a specified event</p>
616 </div><div class="long"><p>Checks to see if this object has any listeners for a specified event</p>
617 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to check for</p>
618 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the event is being listened for, else false</p>
619 </li></ul></div></div></div><div id="method-hide" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-hide" rel="method-hide" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-hide" class="viewSource">view source</a></div><a name="hide"></a><a name="method-hide"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-hide" class="cls expand">hide</a>(
620 <span class="pre">Object attrs</span>)
621  : void</div><div class="description"><div class="short"><p>Hides all sprites. If the first parameter of the method is true
622 then a redraw will be forced for each sprite.</p>
623 </div><div class="long"><p>Hides all sprites. If the first parameter of the method is true
624 then a redraw will be forced for each sprite.</p>
625 <h3 class="pa">Parameters</h3><ul><li><span class="pre">attrs</span> : Object<div class="sub-desc">
626 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
627 </li></ul></div></div></div><div id="method-indexOf" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-indexOf" rel="method-indexOf" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-indexOf" class="viewSource">view source</a></div><a name="indexOf"></a><a name="method-indexOf"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-indexOf" class="cls expand">indexOf</a>(
628 <span class="pre">Object o</span>)
629  : Number</div><div class="description"><div class="short"><p>Returns index within the collection of the passed Object.</p>
630 </div><div class="long"><p>Returns index within the collection of the passed Object.</p>
631 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object<div class="sub-desc"><p>The item to find the index of.</p>
632 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>index of the item. Returns -1 if not found.</p>
633 </li></ul></div></div></div><div id="method-indexOfKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-indexOfKey" rel="method-indexOfKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-indexOfKey" class="viewSource">view source</a></div><a name="indexOfKey"></a><a name="method-indexOfKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-indexOfKey" class="cls expand">indexOfKey</a>(
634 <span class="pre">String key</span>)
635  : Number</div><div class="description"><div class="short"><p>Returns index within the collection of the passed key.</p>
636 </div><div class="long"><p>Returns index within the collection of the passed key.</p>
637 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key to find the index of.</p>
638 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>index of the key.</p>
639 </li></ul></div></div></div><div id="method-initSortable" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-initSortable" rel="method-initSortable" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-initSortable" class="viewSource">view source</a></div><a name="initSortable"></a><a name="method-initSortable"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-initSortable" class="cls expand">initSortable</a> : void</div><div class="description"><div class="short">Performs initialization of this mixin. Component classes using this mixin should call this method
640 during their own in...</div><div class="long"><p>Performs initialization of this mixin. Component classes using this mixin should call this method
641 during their own initialization.</p>
642 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
643 </li></ul></div></div></div><div id="method-insert" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-insert" rel="method-insert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-insert" class="viewSource">view source</a></div><a name="insert"></a><a name="method-insert"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-insert" class="cls expand">insert</a>(
644 <span class="pre">Number index, String key, [Object o]</span>)
645  : Object</div><div class="description"><div class="short"><p>Inserts an item at the specified index in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#add" rel="Ext.draw.CompositeSprite#add" class="docClass">add</a> event when complete.</p>
646 </div><div class="long"><p>Inserts an item at the specified index in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#add" rel="Ext.draw.CompositeSprite#add" class="docClass">add</a> event when complete.</p>
647 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index to insert the item at.</p>
648 </div></li><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key to associate with the new item, or the item itself.</p>
649 </div></li><li><span class="pre">o</span> : Object<div class="sub-desc"><p>(optional) If the second parameter was a key, the new item.</p>
650 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The item inserted.</p>
651 </li></ul></div></div></div><div id="method-last" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-last" rel="method-last" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-last" class="viewSource">view source</a></div><a name="last"></a><a name="method-last"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-last" class="cls expand">last</a> : Object</div><div class="description"><div class="short"><p>Returns the last item in the collection.</p>
652 </div><div class="long"><p>Returns the last item in the collection.</p>
653 <h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>the last item in the collection..</p>
654 </li></ul></div></div></div><div id="method-observe" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-observe" rel="method-observe" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-observe" class="viewSource">view source</a></div><a name="observe"></a><a name="method-observe"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-observe" class="cls expand">observe</a>(
655 <span class="pre">Function c, Object listeners</span>)
656  : void</div><div class="description"><div class="short">Sets observability on the passed class constructor.
657
658 This makes any event fired on any instance of the passed class a...</div><div class="long"><p>Sets observability on the passed class constructor.</p>
659
660 <p>This makes any event fired on any instance of the passed class also fire a single event through
661 the <strong>class</strong> allowing for central handling of events on many instances at once.</p>
662
663 <p>Usage:</p>
664
665 <pre><code>Ext.util.Observable.observe(Ext.data.Connection);
666 Ext.data.Connection.on('beforerequest', function(con, options) {
667     console.log('Ajax request made to ' + options.url);
668 });
669 </code></pre>
670 <h3 class="pa">Parameters</h3><ul><li><span class="pre">c</span> : Function<div class="sub-desc"><p>The class constructor to make observable.</p>
671 </div></li><li><span class="pre">listeners</span> : Object<div class="sub-desc"><p>An object containing a series of listeners to add. See <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a>.</p>
672 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
673 </li></ul></div></div></div><div id="method-on" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-on" rel="method-on" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-on" class="viewSource">view source</a></div><a name="on"></a><a name="method-on"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-on" class="cls expand">on</a>(
674 <span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
675  : void</div><div class="description"><div class="short"><p>Appends an event handler to this object (shorthand for <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a>.)</p>
676 </div><div class="long"><p>Appends an event handler to this object (shorthand for <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a>.)</p>
677 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event to listen for</p>
678 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes</p>
679 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
680 <b>If omitted, defaults to the object which fired the event.</b></p>
681 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.</p>
682 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
683 </li></ul></div></div></div><div id="method-relayEvents" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-relayEvents" rel="method-relayEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-relayEvents" class="viewSource">view source</a></div><a name="relayEvents"></a><a name="method-relayEvents"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-relayEvents" class="cls expand">relayEvents</a>(
684 <span class="pre">Object origin, Array events, Object prefix</span>)
685  : void</div><div class="description"><div class="short"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
686 </div><div class="long"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
687 <h3 class="pa">Parameters</h3><ul><li><span class="pre">origin</span> : Object<div class="sub-desc"><p>The Observable whose events this object is to relay.</p>
688 </div></li><li><span class="pre">events</span> : Array<div class="sub-desc"><p>Array of event names to relay.</p>
689 </div></li><li><span class="pre">prefix</span> : Object<div class="sub-desc">
690 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
691 </li></ul></div></div></div><div id="method-releaseCapture" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-releaseCapture" rel="method-releaseCapture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-releaseCapture" class="viewSource">view source</a></div><a name="releaseCapture"></a><a name="method-releaseCapture"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-releaseCapture" class="cls expand">releaseCapture</a>(
692 <span class="pre">Observable o</span>)
693  : void</div><div class="description"><div class="short"><p>Removes <b>all</b> added captures from the Observable.</p>
694 </div><div class="long"><p>Removes <b>all</b> added captures from the Observable.</p>
695 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to release</p>
696 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
697 </li></ul></div></div></div><div id="method-remove" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-remove" rel="method-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="method-remove"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-remove" class="cls expand">remove</a>(
698 <span class="pre">Object o</span>)
699  : void</div><div class="description"><div class="short"><p>Remove a Sprite from the Group</p>
700 </div><div class="long"><p>Remove a Sprite from the Group</p>
701 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object<div class="sub-desc">
702 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
703 </li></ul></div></div></div><div id="method-removeAll" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-removeAll" rel="method-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="method-removeAll"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-removeAll" class="cls expand">removeAll</a>(
704 <span class="pre">Array items</span>)
705  : Ext.util.MixedCollection</div><div class="description"><div class="short"><p>Remove all items in the passed array from the collection.</p>
706 </div><div class="long"><p>Remove all items in the passed array from the collection.</p>
707 <h3 class="pa">Parameters</h3><ul><li><span class="pre">items</span> : Array<div class="sub-desc"><p>An array of items to be removed.</p>
708 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.util.MixedCollection</span>&nbsp; &nbsp;<p>this object</p>
709 </li></ul></div></div></div><div id="method-removeAt" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-removeAt" rel="method-removeAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-removeAt" class="viewSource">view source</a></div><a name="removeAt"></a><a name="method-removeAt"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-removeAt" class="cls expand">removeAt</a>(
710 <span class="pre">Number index</span>)
711  : Object</div><div class="description"><div class="short"><p>Remove an item from a specified index in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#remove" rel="Ext.draw.CompositeSprite#remove" class="docClass">remove</a> event when complete.</p>
712 </div><div class="long"><p>Remove an item from a specified index in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#remove" rel="Ext.draw.CompositeSprite#remove" class="docClass">remove</a> event when complete.</p>
713 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index within the collection of the item to remove.</p>
714 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The item removed or false if no item was removed.</p>
715 </li></ul></div></div></div><div id="method-removeAtKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-removeAtKey" rel="method-removeAtKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-removeAtKey" class="viewSource">view source</a></div><a name="removeAtKey"></a><a name="method-removeAtKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-removeAtKey" class="cls expand">removeAtKey</a>(
716 <span class="pre">String key</span>)
717  : Object</div><div class="description"><div class="short"><p>Removed an item associated with the passed key fom the collection.</p>
718 </div><div class="long"><p>Removed an item associated with the passed key fom the collection.</p>
719 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key of the item to remove.</p>
720 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The item removed or false if no item was removed.</p>
721 </li></ul></div></div></div><div id="method-removeListener" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-removeListener" rel="method-removeListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeListener" class="viewSource">view source</a></div><a name="removeListener"></a><a name="method-removeListener"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-removeListener" class="cls expand">removeListener</a>(
722 <span class="pre">String eventName, Function handler, [Object scope]</span>)
723  : void</div><div class="description"><div class="short"><p>Removes an event handler.</p>
724 </div><div class="long"><p>Removes an event handler.</p>
725 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
726 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a> call.</b></p>
727 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
728 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
729 </li></ul></div></div></div><div id="method-removeManagedListener" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-removeManagedListener" rel="method-removeManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeManagedListener" class="viewSource">view source</a></div><a name="removeManagedListener"></a><a name="method-removeManagedListener"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-removeManagedListener" class="cls expand">removeManagedListener</a>(
730 <span class="pre">Observable|Element item, Object|String ename, Function fn, Object scope</span>)
731  : void</div><div class="description"><div class="short"><p>Removes listeners that were added by the <a href="Ext.draw.CompositeSprite.html#mon" rel="Ext.draw.CompositeSprite#mon" class="docClass">mon</a> method.</p>
732 </div><div class="long"><p>Removes listeners that were added by the <a href="Ext.draw.CompositeSprite.html#mon" rel="Ext.draw.CompositeSprite#mon" class="docClass">mon</a> method.</p>
733 <h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable|Element<div class="sub-desc"><p>The item from which to remove a listener/listeners.</p>
734 </div></li><li><span class="pre">ename</span> : Object|String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
735 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
736 is the handler function.</p>
737 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
738 is the scope (<code>this</code> reference) in which the handler function is executed.</p>
739 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
740 </li></ul></div></div></div><div id="method-reorder" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-reorder" rel="method-reorder" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.MixedCollection.html" class="definedIn docClass">Ext.util.MixedCollection</a><br/><a href="../source/MixedCollection.html#Ext-util.MixedCollection-method-reorder" class="viewSource">view source</a></div><a name="reorder"></a><a name="method-reorder"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-reorder" class="cls expand">reorder</a>(
741 <span class="pre">Object mapping</span>)
742  : void</div><div class="description"><div class="short">Reorders each of the items based on a mapping from old index to new index. Internally this
743 just translates into a sor...</div><div class="long"><p>Reorders each of the items based on a mapping from old index to new index. Internally this
744 just translates into a sort. The 'sort' event is fired whenever reordering has occured.</p>
745 <h3 class="pa">Parameters</h3><ul><li><span class="pre">mapping</span> : Object<div class="sub-desc"><p>Mapping from old item index to new item index</p>
746 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
747 </li></ul></div></div></div><div id="method-replace" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-replace" rel="method-replace" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-replace" class="viewSource">view source</a></div><a name="replace"></a><a name="method-replace"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-replace" class="cls expand">replace</a>(
748 <span class="pre">String key, [Object o]</span>)
749  : Object</div><div class="description"><div class="short"><p>Replaces an item in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#replace" rel="Ext.draw.CompositeSprite#replace" class="docClass">replace</a> event when complete.</p>
750 </div><div class="long"><p>Replaces an item in the collection. Fires the <a href="Ext.draw.CompositeSprite.html#replace" rel="Ext.draw.CompositeSprite#replace" class="docClass">replace</a> event when complete.</p>
751 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key associated with the item to replace, or the replacement item.</p>
752
753
754 <p>If you supplied a <a href="Ext.draw.CompositeSprite.html#getKey" rel="Ext.draw.CompositeSprite#getKey" class="docClass">getKey</a> implementation for this MixedCollection, or if the key
755 of your stored items is in a property called <tt><b>id</b></tt>, then the MixedCollection
756 will be able to <i>derive</i> the key of the replacement item. If you want to replace an item
757 with one having the same key value, then just pass the replacement item in this parameter.</p>
758
759 </div></li><li><span class="pre">o</span> : Object<div class="sub-desc"><p>{Object} o (optional) If the first parameter passed was a key, the item to associate
760 with that key.</p>
761 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The new item.</p>
762 </li></ul></div></div></div><div id="method-resumeEvents" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-resumeEvents" rel="method-resumeEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-resumeEvents" class="viewSource">view source</a></div><a name="resumeEvents"></a><a name="method-resumeEvents"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-resumeEvents" class="cls expand">resumeEvents</a> : void</div><div class="description"><div class="short">Resume firing events. (see suspendEvents)
763 If events were suspended using the queueSuspended parameter, then all
764 event...</div><div class="long"><p>Resume firing events. (see <a href="Ext.draw.CompositeSprite.html#suspendEvents" rel="Ext.draw.CompositeSprite#suspendEvents" class="docClass">suspendEvents</a>)
765 If events were suspended using the <code><b>queueSuspended</b></code> parameter, then all
766 events fired during event suspension will be sent to any listeners now.</p>
767 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
768 </li></ul></div></div></div><div id="method-sequenceFx" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-sequenceFx" rel="method-sequenceFx" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-method-sequenceFx" class="viewSource">view source</a></div><a name="sequenceFx"></a><a name="method-sequenceFx"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-sequenceFx" class="cls expand">sequenceFx</a> : Ext.core.Element</div><div class="description"><div class="short">Ensures that all effects queued after sequenceFx is called on this object are
769 run in sequence.  This is the opposite ...</div><div class="long"><p>Ensures that all effects queued after sequenceFx is called on this object are
770 run in sequence.  This is the opposite of <a href="Ext.draw.CompositeSprite.html#syncFx" rel="Ext.draw.CompositeSprite#syncFx" class="docClass">syncFx</a>.</p>
771 <h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.core.Element</span>&nbsp; &nbsp;<p>The Element</p>
772 </li></ul></div></div></div><div id="method-setAttributes" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-setAttributes" rel="method-setAttributes" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-setAttributes" class="viewSource">view source</a></div><a name="setAttributes"></a><a name="method-setAttributes"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-setAttributes" class="cls expand">setAttributes</a>(
773 <span class="pre">Object attrs, Object redraw</span>)
774  : void</div><div class="description"><div class="short">Iterates through all sprites calling
775  setAttributes on each one. For more information
776  Ext.draw.Sprite provides a des...</div><div class="long"><p>Iterates through all sprites calling
777  <code>setAttributes</code> on each one. For more information
778  <a href="Ext.draw.Sprite.html" rel="Ext.draw.Sprite" class="docClass">Ext.draw.Sprite</a> provides a description of the
779  attributes that can be set with this method.</p>
780 <h3 class="pa">Parameters</h3><ul><li><span class="pre">attrs</span> : Object<div class="sub-desc">
781 </div></li><li><span class="pre">redraw</span> : Object<div class="sub-desc">
782 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
783 </li></ul></div></div></div><div id="method-show" class="member ni"><a href="Ext.draw.CompositeSprite.html#method-show" rel="method-show" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.draw.CompositeSprite.html" class="definedIn docClass">Ext.draw.CompositeSprite</a><br/><a href="../source/CompositeSprite.html#Ext-draw.CompositeSprite-method-show" class="viewSource">view source</a></div><a name="show"></a><a name="method-show"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-show" class="cls expand">show</a>(
784 <span class="pre">Object attrs</span>)
785  : void</div><div class="description"><div class="short"><p>Shows all sprites. If the first parameter of the method is true
786 then a redraw will be forced for each sprite.</p>
787 </div><div class="long"><p>Shows all sprites. If the first parameter of the method is true
788 then a redraw will be forced for each sprite.</p>
789 <h3 class="pa">Parameters</h3><ul><li><span class="pre">attrs</span> : Object<div class="sub-desc">
790 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
791 </li></ul></div></div></div><div id="method-sort" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-sort" rel="method-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="method-sort"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-sort" class="cls expand">sort</a>(
792 <span class="pre">String|Array sorters, String direction, Object where, Object doSort</span>)
793  : void</div><div class="description"><div class="short">Sorts the data in the Store by one or more of its properties. Example usage:
794
795
796 //sort by a single field
797 myStore.sort(...</div><div class="long"><p>Sorts the data in the Store by one or more of its properties. Example usage:</p>
798
799
800 <pre><code>//sort by a single field
801 myStore.sort('myField', 'DESC');
802
803 //sorting by multiple fields
804 myStore.sort([
805     {
806         property : 'age',
807         direction: 'ASC'
808     },
809     {
810         property : 'name',
811         direction: 'DESC'
812     }
813 ]);
814 </code></pre>
815
816
817 <p>Internally, Store converts the passed arguments into an array of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Ext.util.Sorter</a> instances, and delegates the actual
818 sorting to its internal <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a>.</p>
819
820
821 <p>When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:</p>
822
823
824 <pre><code>store.sort('myField');
825 store.sort('myField');
826      </code></pre>
827
828
829 <p>Is equivalent to this code, because Store handles the toggling automatically:</p>
830
831
832 <pre><code>store.sort('myField', 'ASC');
833 store.sort('myField', 'DESC');
834 </code></pre>
835
836 <h3 class="pa">Parameters</h3><ul><li><span class="pre">sorters</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
837 or an Array of sorter configurations.</p>
838 </div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to sort the data by. Defaults to "ASC".</p>
839 </div></li><li><span class="pre">where</span> : Object<div class="sub-desc">
840 </div></li><li><span class="pre">doSort</span> : Object<div class="sub-desc">
841 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
842 </li></ul></div></div></div><div id="method-sortBy" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-sortBy" rel="method-sortBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.MixedCollection.html" class="definedIn docClass">Ext.util.MixedCollection</a><br/><a href="../source/MixedCollection.html#Ext-util.MixedCollection-method-sortBy" class="viewSource">view source</a></div><a name="sortBy"></a><a name="method-sortBy"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-sortBy" class="cls expand">sortBy</a>(
843 <span class="pre">Function sorterFn</span>)
844  : void</div><div class="description"><div class="short"><p>Sorts the collection by a single sorter function</p>
845 </div><div class="long"><p>Sorts the collection by a single sorter function</p>
846 <h3 class="pa">Parameters</h3><ul><li><span class="pre">sorterFn</span> : Function<div class="sub-desc"><p>The function to sort by</p>
847 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
848 </li></ul></div></div></div><div id="method-sortByKey" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-sortByKey" rel="method-sortByKey" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.MixedCollection.html" class="definedIn docClass">Ext.util.MixedCollection</a><br/><a href="../source/MixedCollection.html#Ext-util.MixedCollection-method-sortByKey" class="viewSource">view source</a></div><a name="sortByKey"></a><a name="method-sortByKey"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-sortByKey" class="cls expand">sortByKey</a>(
849 <span class="pre">[String direction], [Function fn]</span>)
850  : void</div><div class="description"><div class="short"><p>Sorts this collection by <b>key</b>s.</p>
851 </div><div class="long"><p>Sorts this collection by <b>key</b>s.</p>
852 <h3 class="pa">Parameters</h3><ul><li><span class="pre">direction</span> : String<div class="sub-desc"><p>(optional) 'ASC' or 'DESC'. Defaults to 'ASC'.</p>
853 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>(optional) Comparison function that defines the sort order.
854 Defaults to sorting by case insensitive string.</p>
855 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
856 </li></ul></div></div></div><div id="method-stopAnimation" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-stopAnimation" rel="method-stopAnimation" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-method-stopAnimation" class="viewSource">view source</a></div><a name="stopAnimation"></a><a name="method-stopAnimation"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-stopAnimation" class="cls expand">stopAnimation</a> : Ext.core.Element</div><div class="description"><div class="short">@deprecated 4.0 Replaced by stopAnimation
857 Stops any running effects and clears this object's internal effects queue i...</div><div class="long"><p>@deprecated 4.0 Replaced by <a href="Ext.draw.CompositeSprite.html#stopAnimation" rel="Ext.draw.CompositeSprite#stopAnimation" class="docClass">stopAnimation</a>
858 Stops any running effects and clears this object's internal effects queue if it contains
859 any additional effects that haven't started yet.</p>
860 <h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.core.Element</span>&nbsp; &nbsp;<p>The Element</p>
861 </li></ul></div></div></div><div id="method-sum" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-sum" rel="method-sum" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-method-sum" class="viewSource">view source</a></div><a name="sum"></a><a name="method-sum"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-sum" class="cls expand">sum</a>(
862 <span class="pre">String property, String root, [Number start], [Number end]</span>)
863  : Number</div><div class="description"><div class="short"><p>Collects all of the values of the given property and returns their sum</p>
864 </div><div class="long"><p>Collects all of the values of the given property and returns their sum</p>
865 <h3 class="pa">Parameters</h3><ul><li><span class="pre">property</span> : String<div class="sub-desc"><p>The property to sum by</p>
866 </div></li><li><span class="pre">root</span> : String<div class="sub-desc"><p>Optional 'root' property to extract the first argument from. This is used mainly when
867 summing fields in records, where the fields are all stored inside the 'data' object</p>
868 </div></li><li><span class="pre">start</span> : Number<div class="sub-desc"><p>(optional) The record index to start at (defaults to <tt>0</tt>)</p>
869 </div></li><li><span class="pre">end</span> : Number<div class="sub-desc"><p>(optional) The record index to end at (defaults to <tt>-1</tt>)</p>
870 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The total</p>
871 </li></ul></div></div></div><div id="method-suspendEvents" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-suspendEvents" rel="method-suspendEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-suspendEvents" class="viewSource">view source</a></div><a name="suspendEvents"></a><a name="method-suspendEvents"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-suspendEvents" class="cls expand">suspendEvents</a>(
872 <span class="pre">Boolean queueSuspended</span>)
873  : void</div><div class="description"><div class="short"><p>Suspend the firing of all events. (see <a href="Ext.draw.CompositeSprite.html#resumeEvents" rel="Ext.draw.CompositeSprite#resumeEvents" class="docClass">resumeEvents</a>)</p>
874 </div><div class="long"><p>Suspend the firing of all events. (see <a href="Ext.draw.CompositeSprite.html#resumeEvents" rel="Ext.draw.CompositeSprite#resumeEvents" class="docClass">resumeEvents</a>)</p>
875 <h3 class="pa">Parameters</h3><ul><li><span class="pre">queueSuspended</span> : Boolean<div class="sub-desc"><p>Pass as true to queue up suspended events to be fired
876 after the <a href="Ext.draw.CompositeSprite.html#resumeEvents" rel="Ext.draw.CompositeSprite#resumeEvents" class="docClass">resumeEvents</a> call instead of discarding all suspended events;</p>
877 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
878 </li></ul></div></div></div><div id="method-syncFx" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-syncFx" rel="method-syncFx" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Animate.html" class="definedIn docClass">Ext.util.Animate</a><br/><a href="../source/Animate.html#Ext-util.Animate-method-syncFx" class="viewSource">view source</a></div><a name="syncFx"></a><a name="method-syncFx"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-syncFx" class="cls expand">syncFx</a> : Ext.core.Element</div><div class="description"><div class="short">Ensures that all effects queued after syncFx is called on this object are
879 run concurrently.  This is the opposite of ...</div><div class="long"><p>Ensures that all effects queued after syncFx is called on this object are
880 run concurrently.  This is the opposite of <a href="Ext.draw.CompositeSprite.html#sequenceFx" rel="Ext.draw.CompositeSprite#sequenceFx" class="docClass">sequenceFx</a>.</p>
881 <h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.core.Element</span>&nbsp; &nbsp;<p>The Element</p>
882 </li></ul></div></div></div><div id="method-un" class="member inherited"><a href="Ext.draw.CompositeSprite.html#method-un" rel="method-un" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-un" class="viewSource">view source</a></div><a name="un"></a><a name="method-un"></a><a href="Ext.draw.CompositeSprite.html#" rel="method-un" class="cls expand">un</a>(
883 <span class="pre">String eventName, Function handler, [Object scope]</span>)
884  : void</div><div class="description"><div class="short"><p>Removes an event handler (shorthand for <a href="Ext.draw.CompositeSprite.html#removeListener" rel="Ext.draw.CompositeSprite#removeListener" class="docClass">removeListener</a>.)</p>
885 </div><div class="long"><p>Removes an event handler (shorthand for <a href="Ext.draw.CompositeSprite.html#removeListener" rel="Ext.draw.CompositeSprite#removeListener" class="docClass">removeListener</a>.)</p>
886 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
887 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.draw.CompositeSprite.html#addListener" rel="Ext.draw.CompositeSprite#addListener" class="docClass">addListener</a> call.</b></p>
888 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
889 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
890 </li></ul></div></div></div></div><div class="m-events"><a name="events"></a><div class="definedBy">Defined By</div><h3 class="evt p">Events</h3><div id="event-add" class="member f inherited"><a href="Ext.draw.CompositeSprite.html#event-add" rel="event-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-event-add" class="viewSource">view source</a></div><a name="add"></a><a name="event-add"></a><a href="Ext.draw.CompositeSprite.html#" rel="event-add" class="cls expand">add</a>(
891 <span class="pre">Number index, Object o, String key</span>)
892 </div><div class="description"><div class="short"><p>Fires when an item is added to the collection.</p>
893 </div><div class="long"><p>Fires when an item is added to the collection.</p>
894 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index at which the item was added.</p>
895 </div></li><li><span class="pre">o</span> : Object<div class="sub-desc"><p>The item added.</p>
896 </div></li><li><span class="pre">key</span> : String<div class="sub-desc"><p>The key associated with the added item.</p>
897 </div></li></ul></div></div></div><div id="event-clear" class="member inherited"><a href="Ext.draw.CompositeSprite.html#event-clear" rel="event-clear" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-event-clear" class="viewSource">view source</a></div><a name="clear"></a><a name="event-clear"></a><a href="Ext.draw.CompositeSprite.html#" rel="event-clear" class="cls expand">clear</a></div><div class="description"><div class="short"><p>Fires when the collection is cleared.</p>
898 </div><div class="long"><p>Fires when the collection is cleared.</p>
899 </div></div></div><div id="event-remove" class="member inherited"><a href="Ext.draw.CompositeSprite.html#event-remove" rel="event-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-event-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="event-remove"></a><a href="Ext.draw.CompositeSprite.html#" rel="event-remove" class="cls expand">remove</a>(
900 <span class="pre">Object o, [String key]</span>)
901 </div><div class="description"><div class="short"><p>Fires when an item is removed from the collection.</p>
902 </div><div class="long"><p>Fires when an item is removed from the collection.</p>
903 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object<div class="sub-desc"><p>The item being removed.</p>
904 </div></li><li><span class="pre">key</span> : String<div class="sub-desc"><p>(optional) The key associated with the removed item.</p>
905 </div></li></ul></div></div></div><div id="event-replace" class="member inherited"><a href="Ext.draw.CompositeSprite.html#event-replace" rel="event-replace" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.AbstractMixedCollection.html" class="definedIn docClass">Ext.util.AbstractMixedCollection</a><br/><a href="../source/AbstractMixedCollection.html#Ext-util.AbstractMixedCollection-event-replace" class="viewSource">view source</a></div><a name="replace"></a><a name="event-replace"></a><a href="Ext.draw.CompositeSprite.html#" rel="event-replace" class="cls expand">replace</a>(
906 <span class="pre">String key, Object old, Object new</span>)
907 </div><div class="description"><div class="short"><p>Fires when an item is replaced in the collection.</p>
908 </div><div class="long"><p>Fires when an item is replaced in the collection.</p>
909 <h3 class="pa">Parameters</h3><ul><li><span class="pre">key</span> : String<div class="sub-desc"><p>he key associated with the new added.</p>
910 </div></li><li><span class="pre">old</span> : Object<div class="sub-desc"><p>The item being replaced.</p>
911 </div></li><li><span class="pre">new</span> : Object<div class="sub-desc"><p>The new item.</p>
912 </div></li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>