1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.util.MixedCollection</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.util.MixedCollection-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.util.MixedCollection-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.util.MixedCollection-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.util.MixedCollection-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.util.MixedCollection
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.util.MixedCollection
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo.util</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_util_MixedCollection.js.html">Roo/util/MixedCollection.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">MixedCollection</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 A Collection class that maintains both numeric indexes and keys and exposes events.
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.util.MixedCollection';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo.util" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.util.MixedCollection.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.util.MixedCollection-configs"></a>
113 <table cellspacing="0" class="member-table">
114 <caption>Config Options (Usually are also Properties)</caption>
118 <th class="sig-header" colspan="2">Options</th>
120 <th class="msource-header">Defined By</th>
127 <tr class="config-row expandable config-row-alt0">
128 <td class="micon"><a class="exi" href="#expand"> </a></td>
131 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
132 <div class="fixedFont">
133 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
139 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
144 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
154 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
170 <!-- ============================== public properties ==================== -->
174 <a id="Roo.util.MixedCollection-props"></a>
180 <table cellspacing="0" class="member-table">
181 <caption class="Empty">Public Properties - Has None</caption>
187 <!-- ============================== methods summary / details ======================== -->
190 <a id="Roo.util.MixedCollection-methods"></a>
191 <!-- constructor?? -->
198 <!-- then dynamics first -->
205 <table cellspacing="0" class="member-table">
206 <caption>Public Methods</caption>
208 <th class="sig-header" colspan="2">Method</th>
209 <th class="msource-header">Defined By</th>
219 <tr class="method-row config-row-alt0 expandable notInherited">
220 <td class="micon"><a class="exi" href="#expand"> </a></td>
224 <a id="Roo.util-method-MixedCollection" name=".MixedCollection"></a>
225 <div class="fixedFont">
226 <span class="attributes">new <B>Roo.util.</B></span><b class="itemname">MixedCollection</b>
228 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>allowFunctions</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>keyFn</i></B>)
236 <div class="short">Create a new Roo.util.MixedCollection</div>
243 Create a new Roo.util.MixedCollection
246 <dl class="detailList">
247 <dt class="heading">Parameters:</dt>
250 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>allowFunctions</b>
253 <dd>True if the addAll function should add function references to the<br/>collection (defaults to false)</dd>
256 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>keyFn</b>
259 <dd>A function that can accept an item of the type(s) stored in this MixedCollection<br/>and return the key value for that item. This is used when available to look up the key on items that<br/>were passed without an explicit key parameter to a MixedCollection method. Passing this parameter is<br/>equivalent to providing an implementation for the {<b>link</b> <b>getKey</b>} method.</dd>
283 <tr class="method-row config-row-alt1 expandable notInherited">
284 <td class="micon"><a class="exi" href="#expand"> </a></td>
288 <a id="Roo.util.MixedCollection-method-add" name=".add"></a>
289 <div class="fixedFont">
290 <span class="attributes"></span><b class="itemname">add</b>
292 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
298 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
307 <div class="short">Adds an item to the collection.</div>
313 Adds an item to the collection.
320 <dl class="detailList">
321 <dt class="heading">Parameters:</dt>
324 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
327 <dd>The key to associate with the item</dd>
330 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
333 <dd>The item to add.</dd>
341 <dl class="detailList">
342 <dt class="heading">Returns:</dt>
344 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item added.</dd>
360 Roo.util.MixedCollection
366 <tr class="method-row config-row-alt0 expandable notInherited">
367 <td class="micon"><a class="exi" href="#expand"> </a></td>
371 <a id="Roo.util.MixedCollection-method-addAll" name=".addAll"></a>
372 <div class="fixedFont">
373 <span class="attributes"></span><b class="itemname">addAll</b>
375 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array <B><i>objs</i></B>)
382 <div class="short">Adds all elements of an Array or an Object to the collection.</div>
388 Adds all elements of an Array or an Object to the collection.
395 <dl class="detailList">
396 <dt class="heading">Parameters:</dt>
399 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array</span> <b>objs</b>
402 <dd>An Object containing properties which will be added to the collection, or<br/>an Array of values, each of which are added to the collection.</dd>
422 Roo.util.MixedCollection
428 <tr class="method-row config-row-alt1 expandable">
429 <td class="micon"><a class="exi" href="#expand"> </a></td>
433 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
434 <div class="fixedFont">
435 <span class="attributes"></span><b class="itemname">addEvents</b>
437 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
444 <div class="short">Used to define events on this Observable</div>
450 Used to define events on this Observable
457 <dl class="detailList">
458 <dt class="heading">Parameters:</dt>
461 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
464 <dd>The object with the events defined</dd>
484 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
490 <tr class="method-row config-row-alt0 expandable">
491 <td class="micon"><a class="exi" href="#expand"> </a></td>
495 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
496 <div class="fixedFont">
497 <span class="attributes"></span><b class="itemname">addListener</b>
499 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
506 <div class="short">Appends an event handler to this component</div>
512 Appends an event handler to this component
519 <dl class="detailList">
520 <dt class="heading">Parameters:</dt>
523 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
526 <dd>The type of event to listen for</dd>
529 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
532 <dd>The method the event invokes</dd>
535 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
538 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
541 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
544 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
564 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
570 <tr class="method-row config-row-alt1 expandable notInherited">
571 <td class="micon"><a class="exi" href="#expand"> </a></td>
575 <a id="Roo.util.MixedCollection-method-clear" name=".clear"></a>
576 <div class="fixedFont">
577 <span class="attributes"></span><b class="itemname">clear</b>
586 <div class="short">Removes all items from the collection.</div>
592 Removes all items from the collection.
615 Roo.util.MixedCollection
621 <tr class="method-row config-row-alt0 expandable notInherited">
622 <td class="micon"><a class="exi" href="#expand"> </a></td>
626 <a id="Roo.util.MixedCollection-method-clone" name=".clone"></a>
627 <div class="fixedFont">
628 <span class="attributes"></span><b class="itemname">clone</b>
645 <div class="short">Creates a duplicate of this collection</div>
651 Creates a duplicate of this collection
662 <dl class="detailList">
663 <dt class="heading">Returns:</dt>
665 <dd><span class="fixedFont">MixedCollection</span> </dd>
681 Roo.util.MixedCollection
687 <tr class="method-row config-row-alt1 expandable notInherited">
688 <td class="micon"><a class="exi" href="#expand"> </a></td>
692 <a id="Roo.util.MixedCollection-method-contains" name=".contains"></a>
693 <div class="fixedFont">
694 <span class="attributes"></span><b class="itemname">contains</b>
696 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
702 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
711 <div class="short">Returns true if the collection contains the passed Object as an item.</div>
717 Returns true if the collection contains the passed Object as an item.
724 <dl class="detailList">
725 <dt class="heading">Parameters:</dt>
728 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
731 <dd>The Object to look for in the collection.</dd>
739 <dl class="detailList">
740 <dt class="heading">Returns:</dt>
742 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the collection contains the Object as an item.</dd>
758 Roo.util.MixedCollection
764 <tr class="method-row config-row-alt0 expandable notInherited">
765 <td class="micon"><a class="exi" href="#expand"> </a></td>
769 <a id="Roo.util.MixedCollection-method-containsKey" name=".containsKey"></a>
770 <div class="fixedFont">
771 <span class="attributes"></span><b class="itemname">containsKey</b>
773 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
779 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
788 <div class="short">Returns true if the collection contains the passed Object as a key.</div>
794 Returns true if the collection contains the passed Object as a key.
801 <dl class="detailList">
802 <dt class="heading">Parameters:</dt>
805 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
808 <dd>The key to look for in the collection.</dd>
816 <dl class="detailList">
817 <dt class="heading">Returns:</dt>
819 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the collection contains the Object as a key.</dd>
835 Roo.util.MixedCollection
841 <tr class="method-row config-row-alt1 expandable notInherited">
842 <td class="micon"><a class="exi" href="#expand"> </a></td>
846 <a id="Roo.util.MixedCollection-method-each" name=".each"></a>
847 <div class="fixedFont">
848 <span class="attributes"></span><b class="itemname">each</b>
850 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
857 <div class="short">Executes the specified function once for every item in the collection, passing each<br/>item as the first and only parameter.</div>
863 Executes the specified function once for every item in the collection, passing each<br/>item as the first and only parameter. returning false from the function will stop the iteration.
870 <dl class="detailList">
871 <dt class="heading">Parameters:</dt>
874 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
877 <dd>The function to execute for each item.</dd>
880 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
883 <dd>(optional) The scope in which to execute the function.</dd>
903 Roo.util.MixedCollection
909 <tr class="method-row config-row-alt0 expandable notInherited">
910 <td class="micon"><a class="exi" href="#expand"> </a></td>
914 <a id="Roo.util.MixedCollection-method-eachKey" name=".eachKey"></a>
915 <div class="fixedFont">
916 <span class="attributes"></span><b class="itemname">eachKey</b>
918 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
925 <div class="short">Executes the specified function once for every key in the collection, passing each<br/>key, and its associated item as the first two parameters.</div>
931 Executes the specified function once for every key in the collection, passing each<br/>key, and its associated item as the first two parameters.
938 <dl class="detailList">
939 <dt class="heading">Parameters:</dt>
942 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
945 <dd>The function to execute for each item.</dd>
948 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
951 <dd>(optional) The scope in which to execute the function.</dd>
971 Roo.util.MixedCollection
977 <tr class="method-row config-row-alt1 expandable notInherited">
978 <td class="micon"><a class="exi" href="#expand"> </a></td>
982 <a id="Roo.util.MixedCollection-method-filter" name=".filter"></a>
983 <div class="fixedFont">
984 <span class="attributes"></span><b class="itemname">filter</b>
986 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>)
1001 <div class="short">Filter the <i>objects</i> in this collection by a specific property.</div>
1007 Filter the <i>objects</i> in this collection by a specific property. <br/>Returns a new collection that has been filtered.
1014 <dl class="detailList">
1015 <dt class="heading">Parameters:</dt>
1018 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
1021 <dd>A property on your objects</dd>
1024 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1027 <dd>Either string that the property values <br/>should start with or a RegExp to test against the property</dd>
1035 <dl class="detailList">
1036 <dt class="heading">Returns:</dt>
1038 <dd><span class="fixedFont">MixedCollection</span> The new filtered collection</dd>
1052 <td class="msource">
1054 Roo.util.MixedCollection
1060 <tr class="method-row config-row-alt0 expandable notInherited">
1061 <td class="micon"><a class="exi" href="#expand"> </a></td>
1065 <a id="Roo.util.MixedCollection-method-filterBy" name=".filterBy"></a>
1066 <div class="fixedFont">
1067 <span class="attributes"></span><b class="itemname">filterBy</b>
1069 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1084 <div class="short">Filter by a function.</div>
1090 Filter by a function. * Returns a new collection that has been filtered.<br/>The passed function will be called with each <br/>object in the collection. If the function returns true, the value is included <br/>otherwise it is filtered.
1097 <dl class="detailList">
1098 <dt class="heading">Parameters:</dt>
1101 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1104 <dd>The function to be called, it will receive the args o (the object), k (the key)</dd>
1107 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1110 <dd>(optional) The scope of the function (defaults to this)</dd>
1118 <dl class="detailList">
1119 <dt class="heading">Returns:</dt>
1121 <dd><span class="fixedFont">MixedCollection</span> The new filtered collection</dd>
1135 <td class="msource">
1137 Roo.util.MixedCollection
1143 <tr class="method-row config-row-alt1 expandable notInherited">
1144 <td class="micon"><a class="exi" href="#expand"> </a></td>
1148 <a id="Roo.util.MixedCollection-method-find" name=".find"></a>
1149 <div class="fixedFont">
1150 <span class="attributes"></span><b class="itemname">find</b>
1152 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1158 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1167 <div class="short">Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.</div>
1173 Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.
1180 <dl class="detailList">
1181 <dt class="heading">Parameters:</dt>
1184 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1187 <dd>The selection function to execute for each item.</dd>
1190 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1193 <dd>(optional) The scope in which to execute the function.</dd>
1201 <dl class="detailList">
1202 <dt class="heading">Returns:</dt>
1204 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The first item in the collection which returned true from the selection function.</dd>
1218 <td class="msource">
1220 Roo.util.MixedCollection
1226 <tr class="method-row config-row-alt0 expandable">
1227 <td class="micon"><a class="exi" href="#expand"> </a></td>
1231 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1232 <div class="fixedFont">
1233 <span class="attributes"></span><b class="itemname">fireEvent</b>
1235 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
1241 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1250 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1256 Fires the specified event with the passed parameters (minus the event name).
1263 <dl class="detailList">
1264 <dt class="heading">Parameters:</dt>
1267 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1273 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
1276 <dd>Variable number of parameters are passed to handlers</dd>
1284 <dl class="detailList">
1285 <dt class="heading">Returns:</dt>
1287 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1301 <td class="msource">
1303 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1309 <tr class="method-row config-row-alt1 expandable notInherited">
1310 <td class="micon"><a class="exi" href="#expand"> </a></td>
1314 <a id="Roo.util.MixedCollection-method-first" name=".first"></a>
1315 <div class="fixedFont">
1316 <span class="attributes"></span><b class="itemname">first</b>
1324 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1333 <div class="short">Returns the first item in the collection.</div>
1339 Returns the first item in the collection.
1350 <dl class="detailList">
1351 <dt class="heading">Returns:</dt>
1353 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> the first item in the collection..</dd>
1367 <td class="msource">
1369 Roo.util.MixedCollection
1375 <tr class="method-row config-row-alt0 expandable notInherited">
1376 <td class="micon"><a class="exi" href="#expand"> </a></td>
1380 <a id="Roo.util.MixedCollection-method-get" name=".get"></a>
1381 <div class="fixedFont">
1382 <span class="attributes"></span><b class="itemname">get</b>
1384 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
1390 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1399 <div class="short">Returns the item associated with the passed key or index.</div>
1405 Returns the item associated with the passed key or index.
1412 <dl class="detailList">
1413 <dt class="heading">Parameters:</dt>
1416 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
1419 <dd>The key or index of the item.</dd>
1427 <dl class="detailList">
1428 <dt class="heading">Returns:</dt>
1430 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item associated with the passed key.</dd>
1444 <td class="msource">
1446 Roo.util.MixedCollection
1452 <tr class="method-row config-row-alt1 expandable notInherited">
1453 <td class="micon"><a class="exi" href="#expand"> </a></td>
1457 <a id="Roo.util.MixedCollection-method-getCount" name=".getCount"></a>
1458 <div class="fixedFont">
1459 <span class="attributes"></span><b class="itemname">getCount</b>
1467 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1476 <div class="short">Returns the number of items in the collection.</div>
1482 Returns the number of items in the collection.
1493 <dl class="detailList">
1494 <dt class="heading">Returns:</dt>
1496 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> the number of items in the collection.</dd>
1510 <td class="msource">
1512 Roo.util.MixedCollection
1518 <tr class="method-row config-row-alt0 expandable notInherited">
1519 <td class="micon"><a class="exi" href="#expand"> </a></td>
1523 <a id="Roo.util.MixedCollection-method-getKey" name=".getKey"></a>
1524 <div class="fixedFont">
1525 <span class="attributes"></span><b class="itemname">getKey</b>
1533 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1542 <div class="short">MixedCollection has a generic way to fetch keys if you implement getKey.</div>
1548 MixedCollection has a generic way to fetch keys if you implement getKey.<br/><pre><code><br/>// normal way<br/>var mc = new Roo.util.MixedCollection();<br/>mc.add(someEl.dom.id, someEl);<br/>mc.add(otherEl.dom.id, otherEl);<br/>//and so on<br/><br/>// using getKey<br/>var mc = new Roo.util.MixedCollection();<br/>mc.getKey = function(el){<br/> return el.dom.id;<br/>};<br/>mc.add(someEl);<br/>mc.add(otherEl);<br/><br/>// or via the constructor<br/>var mc = new Roo.util.MixedCollection(false, function(el){<br/> return el.dom.id;<br/>});<br/>mc.add(someEl);<br/>mc.add(otherEl);<br/></code></pre>
1555 <dl class="detailList">
1556 <dt class="heading">Parameters:</dt>
1562 <dd>{Object} The item for which to find the key.</dd>
1570 <dl class="detailList">
1571 <dt class="heading">Returns:</dt>
1573 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The key for the passed item.</dd>
1587 <td class="msource">
1589 Roo.util.MixedCollection
1595 <tr class="method-row config-row-alt1 expandable notInherited">
1596 <td class="micon"><a class="exi" href="#expand"> </a></td>
1600 <a id="Roo.util.MixedCollection-method-getRange" name=".getRange"></a>
1601 <div class="fixedFont">
1602 <span class="attributes"></span><b class="itemname">getRange</b>
1604 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>)
1610 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1619 <div class="short">Returns a range of items in this collection</div>
1625 Returns a range of items in this collection
1632 <dl class="detailList">
1633 <dt class="heading">Parameters:</dt>
1636 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1639 <dd>(optional) defaults to 0</dd>
1642 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1645 <dd>(optional) default to the last item</dd>
1653 <dl class="detailList">
1654 <dt class="heading">Returns:</dt>
1656 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of items</dd>
1670 <td class="msource">
1672 Roo.util.MixedCollection
1678 <tr class="method-row config-row-alt0 expandable">
1679 <td class="micon"><a class="exi" href="#expand"> </a></td>
1683 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1684 <div class="fixedFont">
1685 <span class="attributes"></span><b class="itemname">hasListener</b>
1687 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1693 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1702 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1708 Checks to see if this object has any listeners for a specified event
1715 <dl class="detailList">
1716 <dt class="heading">Parameters:</dt>
1719 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1722 <dd>The name of the event to check for</dd>
1730 <dl class="detailList">
1731 <dt class="heading">Returns:</dt>
1733 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1747 <td class="msource">
1749 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1755 <tr class="method-row config-row-alt1 expandable notInherited">
1756 <td class="micon"><a class="exi" href="#expand"> </a></td>
1760 <a id="Roo.util.MixedCollection-method-indexOf" name=".indexOf"></a>
1761 <div class="fixedFont">
1762 <span class="attributes"></span><b class="itemname">indexOf</b>
1764 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
1770 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1779 <div class="short">Returns index within the collection of the passed Object.</div>
1785 Returns index within the collection of the passed Object.
1792 <dl class="detailList">
1793 <dt class="heading">Parameters:</dt>
1796 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
1799 <dd>The item to find the index of.</dd>
1807 <dl class="detailList">
1808 <dt class="heading">Returns:</dt>
1810 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> index of the item.</dd>
1824 <td class="msource">
1826 Roo.util.MixedCollection
1832 <tr class="method-row config-row-alt0 expandable notInherited">
1833 <td class="micon"><a class="exi" href="#expand"> </a></td>
1837 <a id="Roo.util.MixedCollection-method-indexOfKey" name=".indexOfKey"></a>
1838 <div class="fixedFont">
1839 <span class="attributes"></span><b class="itemname">indexOfKey</b>
1841 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
1847 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1856 <div class="short">Returns index within the collection of the passed key.</div>
1862 Returns index within the collection of the passed key.
1869 <dl class="detailList">
1870 <dt class="heading">Parameters:</dt>
1873 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
1876 <dd>The key to find the index of.</dd>
1884 <dl class="detailList">
1885 <dt class="heading">Returns:</dt>
1887 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> index of the key.</dd>
1901 <td class="msource">
1903 Roo.util.MixedCollection
1909 <tr class="method-row config-row-alt1 expandable notInherited">
1910 <td class="micon"><a class="exi" href="#expand"> </a></td>
1914 <a id="Roo.util.MixedCollection-method-insert" name=".insert"></a>
1915 <div class="fixedFont">
1916 <span class="attributes"></span><b class="itemname">insert</b>
1918 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
1924 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1933 <div class="short">Inserts an item at the specified index in the collection.</div>
1939 Inserts an item at the specified index in the collection.
1946 <dl class="detailList">
1947 <dt class="heading">Parameters:</dt>
1950 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1953 <dd>The index to insert the item at.</dd>
1956 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
1959 <dd>The key to associate with the new item, or the item itself.</dd>
1962 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
1965 <dd>(optional) If the second parameter was a key, the new item.</dd>
1973 <dl class="detailList">
1974 <dt class="heading">Returns:</dt>
1976 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item inserted.</dd>
1990 <td class="msource">
1992 Roo.util.MixedCollection
1998 <tr class="method-row config-row-alt0 expandable notInherited">
1999 <td class="micon"><a class="exi" href="#expand"> </a></td>
2003 <a id="Roo.util.MixedCollection-method-item" name=".item"></a>
2004 <div class="fixedFont">
2005 <span class="attributes"></span><b class="itemname">item</b>
2007 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
2013 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2022 <div class="short">Returns the item associated with the passed key OR index.</div>
2028 Returns the item associated with the passed key OR index. Key has priority over index.
2035 <dl class="detailList">
2036 <dt class="heading">Parameters:</dt>
2039 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
2042 <dd>The key or index of the item.</dd>
2050 <dl class="detailList">
2051 <dt class="heading">Returns:</dt>
2053 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item associated with the passed key.</dd>
2067 <td class="msource">
2069 Roo.util.MixedCollection
2075 <tr class="method-row config-row-alt1 expandable notInherited">
2076 <td class="micon"><a class="exi" href="#expand"> </a></td>
2080 <a id="Roo.util.MixedCollection-method-itemAt" name=".itemAt"></a>
2081 <div class="fixedFont">
2082 <span class="attributes"></span><b class="itemname">itemAt</b>
2084 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2090 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2099 <div class="short">Returns the item at the specified index.</div>
2105 Returns the item at the specified index.
2112 <dl class="detailList">
2113 <dt class="heading">Parameters:</dt>
2116 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2119 <dd>The index of the item.</dd>
2127 <dl class="detailList">
2128 <dt class="heading">Returns:</dt>
2130 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> </dd>
2144 <td class="msource">
2146 Roo.util.MixedCollection
2152 <tr class="method-row config-row-alt0 expandable notInherited">
2153 <td class="micon"><a class="exi" href="#expand"> </a></td>
2157 <a id="Roo.util.MixedCollection-method-key" name=".key"></a>
2158 <div class="fixedFont">
2159 <span class="attributes"></span><b class="itemname">key</b>
2161 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
2167 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2176 <div class="short">Returns the item associated with the passed key.</div>
2182 Returns the item associated with the passed key.
2189 <dl class="detailList">
2190 <dt class="heading">Parameters:</dt>
2193 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
2196 <dd>The key of the item.</dd>
2204 <dl class="detailList">
2205 <dt class="heading">Returns:</dt>
2207 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item associated with the passed key.</dd>
2221 <td class="msource">
2223 Roo.util.MixedCollection
2229 <tr class="method-row config-row-alt1 expandable notInherited">
2230 <td class="micon"><a class="exi" href="#expand"> </a></td>
2234 <a id="Roo.util.MixedCollection-method-keySort" name=".keySort"></a>
2235 <div class="fixedFont">
2236 <span class="attributes"></span><b class="itemname">keySort</b>
2238 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>direction</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>)
2245 <div class="short">Sorts this collection by keys</div>
2251 Sorts this collection by keys
2258 <dl class="detailList">
2259 <dt class="heading">Parameters:</dt>
2262 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2265 <dd>(optional) "ASC" or "DESC"</dd>
2268 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2271 <dd>(optional) a comparison function (defaults to case insensitive string)</dd>
2289 <td class="msource">
2291 Roo.util.MixedCollection
2297 <tr class="method-row config-row-alt0 expandable notInherited">
2298 <td class="micon"><a class="exi" href="#expand"> </a></td>
2302 <a id="Roo.util.MixedCollection-method-last" name=".last"></a>
2303 <div class="fixedFont">
2304 <span class="attributes"></span><b class="itemname">last</b>
2312 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2321 <div class="short">Returns the last item in the collection.</div>
2327 Returns the last item in the collection.
2338 <dl class="detailList">
2339 <dt class="heading">Returns:</dt>
2341 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> the last item in the collection..</dd>
2355 <td class="msource">
2357 Roo.util.MixedCollection
2363 <tr class="method-row config-row-alt1 expandable">
2364 <td class="micon"><a class="exi" href="#expand"> </a></td>
2368 <a id="Roo.util.Observable-method-on" name=".on"></a>
2369 <div class="fixedFont">
2370 <span class="attributes"></span><b class="itemname">on</b>
2372 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2379 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2385 Appends an event handler to this element (shorthand for addListener)
2392 <dl class="detailList">
2393 <dt class="heading">Parameters:</dt>
2396 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2399 <dd>The type of event to listen for</dd>
2402 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2405 <dd>The method the event invokes</dd>
2408 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2411 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2414 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2435 <td class="msource">
2437 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2443 <tr class="method-row config-row-alt0 expandable">
2444 <td class="micon"><a class="exi" href="#expand"> </a></td>
2448 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2449 <div class="fixedFont">
2450 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2459 <div class="short">Removes all listeners for this object</div>
2465 Removes all listeners for this object
2486 <td class="msource">
2488 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2494 <tr class="method-row config-row-alt1 expandable notInherited">
2495 <td class="micon"><a class="exi" href="#expand"> </a></td>
2499 <a id="Roo.util.MixedCollection-method-remove" name=".remove"></a>
2500 <div class="fixedFont">
2501 <span class="attributes"></span><b class="itemname">remove</b>
2503 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
2509 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2518 <div class="short">Removed an item from the collection.</div>
2524 Removed an item from the collection.
2531 <dl class="detailList">
2532 <dt class="heading">Parameters:</dt>
2535 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
2538 <dd>The item to remove.</dd>
2546 <dl class="detailList">
2547 <dt class="heading">Returns:</dt>
2549 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The item removed.</dd>
2563 <td class="msource">
2565 Roo.util.MixedCollection
2571 <tr class="method-row config-row-alt0 expandable notInherited">
2572 <td class="micon"><a class="exi" href="#expand"> </a></td>
2576 <a id="Roo.util.MixedCollection-method-removeAt" name=".removeAt"></a>
2577 <div class="fixedFont">
2578 <span class="attributes"></span><b class="itemname">removeAt</b>
2580 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2587 <div class="short">Remove an item from a specified index in the collection.</div>
2593 Remove an item from a specified index in the collection.
2600 <dl class="detailList">
2601 <dt class="heading">Parameters:</dt>
2604 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2607 <dd>The index within the collection of the item to remove.</dd>
2625 <td class="msource">
2627 Roo.util.MixedCollection
2633 <tr class="method-row config-row-alt1 expandable notInherited">
2634 <td class="micon"><a class="exi" href="#expand"> </a></td>
2638 <a id="Roo.util.MixedCollection-method-removeKey" name=".removeKey"></a>
2639 <div class="fixedFont">
2640 <span class="attributes"></span><b class="itemname">removeKey</b>
2642 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
2649 <div class="short">Removed an item associated with the passed key fom the collection.</div>
2655 Removed an item associated with the passed key fom the collection.
2662 <dl class="detailList">
2663 <dt class="heading">Parameters:</dt>
2666 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
2669 <dd>The key of the item to remove.</dd>
2687 <td class="msource">
2689 Roo.util.MixedCollection
2695 <tr class="method-row config-row-alt0 expandable">
2696 <td class="micon"><a class="exi" href="#expand"> </a></td>
2700 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2701 <div class="fixedFont">
2702 <span class="attributes"></span><b class="itemname">removeListener</b>
2704 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2711 <div class="short">Removes a listener</div>
2724 <dl class="detailList">
2725 <dt class="heading">Parameters:</dt>
2728 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2731 <dd>The type of event to listen for</dd>
2734 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2737 <dd>The handler to remove</dd>
2740 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2743 <dd>(optional) The scope (this object) for the handler</dd>
2761 <td class="msource">
2763 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2769 <tr class="method-row config-row-alt1 expandable notInherited">
2770 <td class="micon"><a class="exi" href="#expand"> </a></td>
2774 <a id="Roo.util.MixedCollection-method-replace" name=".replace"></a>
2775 <div class="fixedFont">
2776 <span class="attributes"></span><b class="itemname">replace</b>
2778 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <B><i>o</i></B>)
2784 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2793 <div class="short">Replaces an item in the collection.</div>
2799 Replaces an item in the collection.
2806 <dl class="detailList">
2807 <dt class="heading">Parameters:</dt>
2810 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
2813 <dd>The key associated with the item to replace, or the item to replace.</dd>
2819 <dd>{Object} o (optional) If the first parameter passed was a key, the item to associate with that key.</dd>
2827 <dl class="detailList">
2828 <dt class="heading">Returns:</dt>
2830 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The new item.</dd>
2844 <td class="msource">
2846 Roo.util.MixedCollection
2852 <tr class="method-row config-row-alt0 expandable notInherited">
2853 <td class="micon"><a class="exi" href="#expand"> </a></td>
2857 <a id="Roo.util.MixedCollection-method-sort" name=".sort"></a>
2858 <div class="fixedFont">
2859 <span class="attributes"></span><b class="itemname">sort</b>
2861 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>direction</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>)
2868 <div class="short">Sorts this collection with the passed comparison function</div>
2874 Sorts this collection with the passed comparison function
2881 <dl class="detailList">
2882 <dt class="heading">Parameters:</dt>
2885 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2888 <dd>(optional) "ASC" or "DESC"</dd>
2891 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2894 <dd>(optional) comparison function</dd>
2912 <td class="msource">
2914 Roo.util.MixedCollection
2920 <tr class="method-row config-row-alt1 expandable">
2921 <td class="micon"><a class="exi" href="#expand"> </a></td>
2925 <a id="Roo.util.Observable-method-un" name=".un"></a>
2926 <div class="fixedFont">
2927 <span class="attributes"></span><b class="itemname">un</b>
2929 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2936 <div class="short">Removes a listener (shorthand for removeListener)</div>
2942 Removes a listener (shorthand for removeListener)
2949 <dl class="detailList">
2950 <dt class="heading">Parameters:</dt>
2953 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2956 <dd>The type of event to listen for</dd>
2959 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2962 <dd>The handler to remove</dd>
2965 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2968 <dd>(optional) The scope (this object) for the handler</dd>
2986 <td class="msource">
2988 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2997 <!-- ============================== events summary / details ======================== -->
3000 <a id="Roo.util.MixedCollection-events"></a>
3009 <table cellspacing="0" class="member-table">
3010 <caption>Events</caption>
3013 <th class="sig-header" colspan="2">Event</th>
3014 <th class="msource-header">Defined By</th>
3023 <tr class="method-row expandable config-row-alt0 notInherited">
3024 <td class="micon"><a class="exi" href="#expand"> </a></td>
3027 <a id="Roo.util.MixedCollection-event-*add"></a>
3029 <div class="fixedFont">
3030 <b class="itemname">add</b> (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
3036 <div class="short">Fires when an item is added to the collection.
3042 Fires when an item is added to the collection.
3048 <dl class="detailList">
3049 <dt class="heading">Parameters:</dt>
3052 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3055 <dd>The index at which the item was added.</dd>
3058 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
3061 <dd>The item added.</dd>
3064 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3067 <dd>The key associated with the added item.</dd>
3085 <td class="msource">
3086 Roo.util.MixedCollection
3090 <tr class="method-row expandable config-row-alt1 notInherited">
3091 <td class="micon"><a class="exi" href="#expand"> </a></td>
3094 <a id="Roo.util.MixedCollection-event-*clear"></a>
3096 <div class="fixedFont">
3097 <b class="itemname">clear</b> ()
3103 <div class="short">Fires when the collection is cleared.
3109 Fires when the collection is cleared.
3129 <td class="msource">
3130 Roo.util.MixedCollection
3134 <tr class="method-row expandable config-row-alt0 notInherited">
3135 <td class="micon"><a class="exi" href="#expand"> </a></td>
3138 <a id="Roo.util.MixedCollection-event-*remove"></a>
3140 <div class="fixedFont">
3141 <b class="itemname">remove</b> (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
3147 <div class="short">Fires when an item is removed from the collection.
3153 Fires when an item is removed from the collection.
3159 <dl class="detailList">
3160 <dt class="heading">Parameters:</dt>
3163 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>o</b>
3166 <dd>The item being removed.</dd>
3169 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3172 <dd>(optional) The key associated with the removed item.</dd>
3190 <td class="msource">
3191 Roo.util.MixedCollection
3195 <tr class="method-row expandable config-row-alt1 notInherited">
3196 <td class="micon"><a class="exi" href="#expand"> </a></td>
3199 <a id="Roo.util.MixedCollection-event-*replace"></a>
3201 <div class="fixedFont">
3202 <b class="itemname">replace</b> (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>old</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>new</i></B>)
3208 <div class="short">Fires when an item is replaced in the collection.
3214 Fires when an item is replaced in the collection.
3220 <dl class="detailList">
3221 <dt class="heading">Parameters:</dt>
3224 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3227 <dd>he key associated with the new added.</dd>
3230 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>old</b>
3233 <dd>The item being replaced.</dd>
3236 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>new</b>
3239 <dd>The new item.</dd>
3257 <td class="msource">
3258 Roo.util.MixedCollection
3269 <!-- ============================== footer ================================= -->
3270 <div class="fineprint" style="clear:both">
3272 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Oct 14 2016 10:07:57 GMT+0800 (HKT)
3274 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>