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>
143 <div class="long">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></div>
151 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
167 <!-- ============================== public properties ==================== -->
171 <a id="Roo.util.MixedCollection-props"></a>
177 <table cellspacing="0" class="member-table">
178 <caption class="Empty">Public Properties - Has None</caption>
184 <!-- ============================== methods summary / details ======================== -->
187 <a id="Roo.util.MixedCollection-methods"></a>
188 <!-- constructor?? -->
195 <!-- then dynamics first -->
202 <table cellspacing="0" class="member-table">
203 <caption>Public Methods</caption>
205 <th class="sig-header" colspan="2">Method</th>
206 <th class="msource-header">Defined By</th>
216 <tr class="method-row config-row-alt0 expandable notInherited">
217 <td class="micon"><a class="exi" href="#expand"> </a></td>
221 <a id="Roo.util-method-MixedCollection" name=".MixedCollection"></a>
222 <div class="fixedFont">
223 <span class="attributes">new <B>Roo.util.</B></span><b class="itemname">MixedCollection</b>
225 (<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>)
233 <div class="short">Create a new Roo.util.MixedCollection</div>
240 Create a new Roo.util.MixedCollection
243 <dl class="detailList">
244 <dt class="heading">Parameters:</dt>
247 <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>
250 <dd>True if the addAll function should add function references to the<br/>collection (defaults to false)</dd>
253 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>keyFn</b>
256 <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>
280 <tr class="method-row config-row-alt1 expandable notInherited">
281 <td class="micon"><a class="exi" href="#expand"> </a></td>
285 <a id="Roo.util.MixedCollection-method-add" name=".add"></a>
286 <div class="fixedFont">
287 <span class="attributes"></span><b class="itemname">add</b>
289 (<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>)
295 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
304 <div class="short">Adds an item to the collection.</div>
310 Adds an item to the collection.
317 <dl class="detailList">
318 <dt class="heading">Parameters:</dt>
321 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
324 <dd>The key to associate with the item</dd>
327 <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>
330 <dd>The item to add.</dd>
338 <dl class="detailList">
339 <dt class="heading">Returns:</dt>
341 <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>
357 Roo.util.MixedCollection
363 <tr class="method-row config-row-alt0 expandable notInherited">
364 <td class="micon"><a class="exi" href="#expand"> </a></td>
368 <a id="Roo.util.MixedCollection-method-addAll" name=".addAll"></a>
369 <div class="fixedFont">
370 <span class="attributes"></span><b class="itemname">addAll</b>
372 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array <B><i>objs</i></B>)
379 <div class="short">Adds all elements of an Array or an Object to the collection.</div>
385 Adds all elements of an Array or an Object to the collection.
392 <dl class="detailList">
393 <dt class="heading">Parameters:</dt>
396 <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>
399 <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>
419 Roo.util.MixedCollection
425 <tr class="method-row config-row-alt1 expandable">
426 <td class="micon"><a class="exi" href="#expand"> </a></td>
430 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
431 <div class="fixedFont">
432 <span class="attributes"></span><b class="itemname">addEvents</b>
434 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
441 <div class="short">Used to define events on this Observable</div>
447 Used to define events on this Observable
454 <dl class="detailList">
455 <dt class="heading">Parameters:</dt>
458 <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>
461 <dd>The object with the events defined</dd>
481 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
487 <tr class="method-row config-row-alt0 expandable">
488 <td class="micon"><a class="exi" href="#expand"> </a></td>
492 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
493 <div class="fixedFont">
494 <span class="attributes"></span><b class="itemname">addListener</b>
496 (<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>)
503 <div class="short">Appends an event handler to this component</div>
509 Appends an event handler to this component
516 <dl class="detailList">
517 <dt class="heading">Parameters:</dt>
520 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
523 <dd>The type of event to listen for</dd>
526 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
529 <dd>The method the event invokes</dd>
532 <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>
535 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
538 <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>
541 <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>
561 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
567 <tr class="method-row config-row-alt1 expandable notInherited">
568 <td class="micon"><a class="exi" href="#expand"> </a></td>
572 <a id="Roo.util.MixedCollection-method-clear" name=".clear"></a>
573 <div class="fixedFont">
574 <span class="attributes"></span><b class="itemname">clear</b>
583 <div class="short">Removes all items from the collection.</div>
589 Removes all items from the collection.
612 Roo.util.MixedCollection
618 <tr class="method-row config-row-alt0 expandable notInherited">
619 <td class="micon"><a class="exi" href="#expand"> </a></td>
623 <a id="Roo.util.MixedCollection-method-clone" name=".clone"></a>
624 <div class="fixedFont">
625 <span class="attributes"></span><b class="itemname">clone</b>
642 <div class="short">Creates a duplicate of this collection</div>
648 Creates a duplicate of this collection
659 <dl class="detailList">
660 <dt class="heading">Returns:</dt>
662 <dd><span class="fixedFont">MixedCollection</span> </dd>
678 Roo.util.MixedCollection
684 <tr class="method-row config-row-alt1 expandable notInherited">
685 <td class="micon"><a class="exi" href="#expand"> </a></td>
689 <a id="Roo.util.MixedCollection-method-contains" name=".contains"></a>
690 <div class="fixedFont">
691 <span class="attributes"></span><b class="itemname">contains</b>
693 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
699 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
708 <div class="short">Returns true if the collection contains the passed Object as an item.</div>
714 Returns true if the collection contains the passed Object as an item.
721 <dl class="detailList">
722 <dt class="heading">Parameters:</dt>
725 <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>
728 <dd>The Object to look for in the collection.</dd>
736 <dl class="detailList">
737 <dt class="heading">Returns:</dt>
739 <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>
755 Roo.util.MixedCollection
761 <tr class="method-row config-row-alt0 expandable notInherited">
762 <td class="micon"><a class="exi" href="#expand"> </a></td>
766 <a id="Roo.util.MixedCollection-method-containsKey" name=".containsKey"></a>
767 <div class="fixedFont">
768 <span class="attributes"></span><b class="itemname">containsKey</b>
770 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
776 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
785 <div class="short">Returns true if the collection contains the passed Object as a key.</div>
791 Returns true if the collection contains the passed Object as a key.
798 <dl class="detailList">
799 <dt class="heading">Parameters:</dt>
802 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
805 <dd>The key to look for in the collection.</dd>
813 <dl class="detailList">
814 <dt class="heading">Returns:</dt>
816 <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>
832 Roo.util.MixedCollection
838 <tr class="method-row config-row-alt1 expandable notInherited">
839 <td class="micon"><a class="exi" href="#expand"> </a></td>
843 <a id="Roo.util.MixedCollection-method-each" name=".each"></a>
844 <div class="fixedFont">
845 <span class="attributes"></span><b class="itemname">each</b>
847 (<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>)
854 <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>
860 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.
867 <dl class="detailList">
868 <dt class="heading">Parameters:</dt>
871 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
874 <dd>The function to execute for each item.</dd>
877 <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>
880 <dd>(optional) The scope in which to execute the function.</dd>
900 Roo.util.MixedCollection
906 <tr class="method-row config-row-alt0 expandable notInherited">
907 <td class="micon"><a class="exi" href="#expand"> </a></td>
911 <a id="Roo.util.MixedCollection-method-eachKey" name=".eachKey"></a>
912 <div class="fixedFont">
913 <span class="attributes"></span><b class="itemname">eachKey</b>
915 (<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>)
922 <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>
928 Executes the specified function once for every key in the collection, passing each<br/>key, and its associated item as the first two parameters.
935 <dl class="detailList">
936 <dt class="heading">Parameters:</dt>
939 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
942 <dd>The function to execute for each item.</dd>
945 <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>
948 <dd>(optional) The scope in which to execute the function.</dd>
968 Roo.util.MixedCollection
974 <tr class="method-row config-row-alt1 expandable notInherited">
975 <td class="micon"><a class="exi" href="#expand"> </a></td>
979 <a id="Roo.util.MixedCollection-method-filter" name=".filter"></a>
980 <div class="fixedFont">
981 <span class="attributes"></span><b class="itemname">filter</b>
983 (<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>)
998 <div class="short">Filter the <i>objects</i> in this collection by a specific property.</div>
1004 Filter the <i>objects</i> in this collection by a specific property. <br/>Returns a new collection that has been filtered.
1011 <dl class="detailList">
1012 <dt class="heading">Parameters:</dt>
1015 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
1018 <dd>A property on your objects</dd>
1021 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1024 <dd>Either string that the property values <br/>should start with or a RegExp to test against the property</dd>
1032 <dl class="detailList">
1033 <dt class="heading">Returns:</dt>
1035 <dd><span class="fixedFont">MixedCollection</span> The new filtered collection</dd>
1049 <td class="msource">
1051 Roo.util.MixedCollection
1057 <tr class="method-row config-row-alt0 expandable notInherited">
1058 <td class="micon"><a class="exi" href="#expand"> </a></td>
1062 <a id="Roo.util.MixedCollection-method-filterBy" name=".filterBy"></a>
1063 <div class="fixedFont">
1064 <span class="attributes"></span><b class="itemname">filterBy</b>
1066 (<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>)
1081 <div class="short">Filter by a function.</div>
1087 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.
1094 <dl class="detailList">
1095 <dt class="heading">Parameters:</dt>
1098 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1101 <dd>The function to be called, it will receive the args o (the object), k (the key)</dd>
1104 <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>
1107 <dd>(optional) The scope of the function (defaults to this)</dd>
1115 <dl class="detailList">
1116 <dt class="heading">Returns:</dt>
1118 <dd><span class="fixedFont">MixedCollection</span> The new filtered collection</dd>
1132 <td class="msource">
1134 Roo.util.MixedCollection
1140 <tr class="method-row config-row-alt1 expandable notInherited">
1141 <td class="micon"><a class="exi" href="#expand"> </a></td>
1145 <a id="Roo.util.MixedCollection-method-find" name=".find"></a>
1146 <div class="fixedFont">
1147 <span class="attributes"></span><b class="itemname">find</b>
1149 (<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>)
1155 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1164 <div class="short">Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.</div>
1170 Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.
1177 <dl class="detailList">
1178 <dt class="heading">Parameters:</dt>
1181 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1184 <dd>The selection function to execute for each item.</dd>
1187 <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>
1190 <dd>(optional) The scope in which to execute the function.</dd>
1198 <dl class="detailList">
1199 <dt class="heading">Returns:</dt>
1201 <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>
1215 <td class="msource">
1217 Roo.util.MixedCollection
1223 <tr class="method-row config-row-alt0 expandable">
1224 <td class="micon"><a class="exi" href="#expand"> </a></td>
1228 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1229 <div class="fixedFont">
1230 <span class="attributes"></span><b class="itemname">fireEvent</b>
1232 (<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>)
1238 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1247 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1253 Fires the specified event with the passed parameters (minus the event name).
1260 <dl class="detailList">
1261 <dt class="heading">Parameters:</dt>
1264 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1270 <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>
1273 <dd>Variable number of parameters are passed to handlers</dd>
1281 <dl class="detailList">
1282 <dt class="heading">Returns:</dt>
1284 <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>
1298 <td class="msource">
1300 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1306 <tr class="method-row config-row-alt1 expandable notInherited">
1307 <td class="micon"><a class="exi" href="#expand"> </a></td>
1311 <a id="Roo.util.MixedCollection-method-first" name=".first"></a>
1312 <div class="fixedFont">
1313 <span class="attributes"></span><b class="itemname">first</b>
1321 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1330 <div class="short">Returns the first item in the collection.</div>
1336 Returns the first item in the collection.
1347 <dl class="detailList">
1348 <dt class="heading">Returns:</dt>
1350 <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>
1364 <td class="msource">
1366 Roo.util.MixedCollection
1372 <tr class="method-row config-row-alt0 expandable notInherited">
1373 <td class="micon"><a class="exi" href="#expand"> </a></td>
1377 <a id="Roo.util.MixedCollection-method-get" name=".get"></a>
1378 <div class="fixedFont">
1379 <span class="attributes"></span><b class="itemname">get</b>
1381 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
1387 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1396 <div class="short">Returns the item associated with the passed key or index.</div>
1402 Returns the item associated with the passed key or index.
1409 <dl class="detailList">
1410 <dt class="heading">Parameters:</dt>
1413 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
1416 <dd>The key or index of the item.</dd>
1424 <dl class="detailList">
1425 <dt class="heading">Returns:</dt>
1427 <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>
1441 <td class="msource">
1443 Roo.util.MixedCollection
1449 <tr class="method-row config-row-alt1 expandable notInherited">
1450 <td class="micon"><a class="exi" href="#expand"> </a></td>
1454 <a id="Roo.util.MixedCollection-method-getCount" name=".getCount"></a>
1455 <div class="fixedFont">
1456 <span class="attributes"></span><b class="itemname">getCount</b>
1464 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1473 <div class="short">Returns the number of items in the collection.</div>
1479 Returns the number of items in the collection.
1490 <dl class="detailList">
1491 <dt class="heading">Returns:</dt>
1493 <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>
1507 <td class="msource">
1509 Roo.util.MixedCollection
1515 <tr class="method-row config-row-alt0 expandable notInherited">
1516 <td class="micon"><a class="exi" href="#expand"> </a></td>
1520 <a id="Roo.util.MixedCollection-method-getKey" name=".getKey"></a>
1521 <div class="fixedFont">
1522 <span class="attributes"></span><b class="itemname">getKey</b>
1530 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1539 <div class="short">MixedCollection has a generic way to fetch keys if you implement getKey.</div>
1545 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>
1552 <dl class="detailList">
1553 <dt class="heading">Parameters:</dt>
1559 <dd>{Object} The item for which to find the key.</dd>
1567 <dl class="detailList">
1568 <dt class="heading">Returns:</dt>
1570 <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>
1584 <td class="msource">
1586 Roo.util.MixedCollection
1592 <tr class="method-row config-row-alt1 expandable notInherited">
1593 <td class="micon"><a class="exi" href="#expand"> </a></td>
1597 <a id="Roo.util.MixedCollection-method-getRange" name=".getRange"></a>
1598 <div class="fixedFont">
1599 <span class="attributes"></span><b class="itemname">getRange</b>
1601 (<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>)
1607 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1616 <div class="short">Returns a range of items in this collection</div>
1622 Returns a range of items in this collection
1629 <dl class="detailList">
1630 <dt class="heading">Parameters:</dt>
1633 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1636 <dd>(optional) defaults to 0</dd>
1639 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1642 <dd>(optional) default to the last item</dd>
1650 <dl class="detailList">
1651 <dt class="heading">Returns:</dt>
1653 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of items</dd>
1667 <td class="msource">
1669 Roo.util.MixedCollection
1675 <tr class="method-row config-row-alt0 expandable">
1676 <td class="micon"><a class="exi" href="#expand"> </a></td>
1680 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1681 <div class="fixedFont">
1682 <span class="attributes"></span><b class="itemname">hasListener</b>
1684 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1690 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1699 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1705 Checks to see if this object has any listeners for a specified event
1712 <dl class="detailList">
1713 <dt class="heading">Parameters:</dt>
1716 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1719 <dd>The name of the event to check for</dd>
1727 <dl class="detailList">
1728 <dt class="heading">Returns:</dt>
1730 <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>
1744 <td class="msource">
1746 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1752 <tr class="method-row config-row-alt1 expandable notInherited">
1753 <td class="micon"><a class="exi" href="#expand"> </a></td>
1757 <a id="Roo.util.MixedCollection-method-indexOf" name=".indexOf"></a>
1758 <div class="fixedFont">
1759 <span class="attributes"></span><b class="itemname">indexOf</b>
1761 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
1767 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1776 <div class="short">Returns index within the collection of the passed Object.</div>
1782 Returns index within the collection of the passed Object.
1789 <dl class="detailList">
1790 <dt class="heading">Parameters:</dt>
1793 <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>
1796 <dd>The item to find the index of.</dd>
1804 <dl class="detailList">
1805 <dt class="heading">Returns:</dt>
1807 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> index of the item.</dd>
1821 <td class="msource">
1823 Roo.util.MixedCollection
1829 <tr class="method-row config-row-alt0 expandable notInherited">
1830 <td class="micon"><a class="exi" href="#expand"> </a></td>
1834 <a id="Roo.util.MixedCollection-method-indexOfKey" name=".indexOfKey"></a>
1835 <div class="fixedFont">
1836 <span class="attributes"></span><b class="itemname">indexOfKey</b>
1838 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
1844 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1853 <div class="short">Returns index within the collection of the passed key.</div>
1859 Returns index within the collection of the passed key.
1866 <dl class="detailList">
1867 <dt class="heading">Parameters:</dt>
1870 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
1873 <dd>The key to find the index of.</dd>
1881 <dl class="detailList">
1882 <dt class="heading">Returns:</dt>
1884 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> index of the key.</dd>
1898 <td class="msource">
1900 Roo.util.MixedCollection
1906 <tr class="method-row config-row-alt1 expandable notInherited">
1907 <td class="micon"><a class="exi" href="#expand"> </a></td>
1911 <a id="Roo.util.MixedCollection-method-insert" name=".insert"></a>
1912 <div class="fixedFont">
1913 <span class="attributes"></span><b class="itemname">insert</b>
1915 (<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>)
1921 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1930 <div class="short">Inserts an item at the specified index in the collection.</div>
1936 Inserts an item at the specified index in the collection.
1943 <dl class="detailList">
1944 <dt class="heading">Parameters:</dt>
1947 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1950 <dd>The index to insert the item at.</dd>
1953 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
1956 <dd>The key to associate with the new item, or the item itself.</dd>
1959 <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>
1962 <dd>(optional) If the second parameter was a key, the new item.</dd>
1970 <dl class="detailList">
1971 <dt class="heading">Returns:</dt>
1973 <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>
1987 <td class="msource">
1989 Roo.util.MixedCollection
1995 <tr class="method-row config-row-alt0 expandable notInherited">
1996 <td class="micon"><a class="exi" href="#expand"> </a></td>
2000 <a id="Roo.util.MixedCollection-method-item" name=".item"></a>
2001 <div class="fixedFont">
2002 <span class="attributes"></span><b class="itemname">item</b>
2004 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
2010 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2019 <div class="short">Returns the item associated with the passed key OR index.</div>
2025 Returns the item associated with the passed key OR index. Key has priority over index.
2032 <dl class="detailList">
2033 <dt class="heading">Parameters:</dt>
2036 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
2039 <dd>The key or index of the item.</dd>
2047 <dl class="detailList">
2048 <dt class="heading">Returns:</dt>
2050 <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>
2064 <td class="msource">
2066 Roo.util.MixedCollection
2072 <tr class="method-row config-row-alt1 expandable notInherited">
2073 <td class="micon"><a class="exi" href="#expand"> </a></td>
2077 <a id="Roo.util.MixedCollection-method-itemAt" name=".itemAt"></a>
2078 <div class="fixedFont">
2079 <span class="attributes"></span><b class="itemname">itemAt</b>
2081 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2087 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2096 <div class="short">Returns the item at the specified index.</div>
2102 Returns the item at the specified index.
2109 <dl class="detailList">
2110 <dt class="heading">Parameters:</dt>
2113 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2116 <dd>The index of the item.</dd>
2124 <dl class="detailList">
2125 <dt class="heading">Returns:</dt>
2127 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> </dd>
2141 <td class="msource">
2143 Roo.util.MixedCollection
2149 <tr class="method-row config-row-alt0 expandable notInherited">
2150 <td class="micon"><a class="exi" href="#expand"> </a></td>
2154 <a id="Roo.util.MixedCollection-method-key" name=".key"></a>
2155 <div class="fixedFont">
2156 <span class="attributes"></span><b class="itemname">key</b>
2158 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>)
2164 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2173 <div class="short">Returns the item associated with the passed key.</div>
2179 Returns the item associated with the passed key.
2186 <dl class="detailList">
2187 <dt class="heading">Parameters:</dt>
2190 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>key</b>
2193 <dd>The key of the item.</dd>
2201 <dl class="detailList">
2202 <dt class="heading">Returns:</dt>
2204 <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>
2218 <td class="msource">
2220 Roo.util.MixedCollection
2226 <tr class="method-row config-row-alt1 expandable notInherited">
2227 <td class="micon"><a class="exi" href="#expand"> </a></td>
2231 <a id="Roo.util.MixedCollection-method-keySort" name=".keySort"></a>
2232 <div class="fixedFont">
2233 <span class="attributes"></span><b class="itemname">keySort</b>
2235 (<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>)
2242 <div class="short">Sorts this collection by keys</div>
2248 Sorts this collection by keys
2255 <dl class="detailList">
2256 <dt class="heading">Parameters:</dt>
2259 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2262 <dd>(optional) "ASC" or "DESC"</dd>
2265 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2268 <dd>(optional) a comparison function (defaults to case insensitive string)</dd>
2286 <td class="msource">
2288 Roo.util.MixedCollection
2294 <tr class="method-row config-row-alt0 expandable notInherited">
2295 <td class="micon"><a class="exi" href="#expand"> </a></td>
2299 <a id="Roo.util.MixedCollection-method-last" name=".last"></a>
2300 <div class="fixedFont">
2301 <span class="attributes"></span><b class="itemname">last</b>
2309 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2318 <div class="short">Returns the last item in the collection.</div>
2324 Returns the last item in the collection.
2335 <dl class="detailList">
2336 <dt class="heading">Returns:</dt>
2338 <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>
2352 <td class="msource">
2354 Roo.util.MixedCollection
2360 <tr class="method-row config-row-alt1 expandable">
2361 <td class="micon"><a class="exi" href="#expand"> </a></td>
2365 <a id="Roo.util.Observable-method-on" name=".on"></a>
2366 <div class="fixedFont">
2367 <span class="attributes"></span><b class="itemname">on</b>
2369 (<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>)
2376 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2382 Appends an event handler to this element (shorthand for addListener)
2389 <dl class="detailList">
2390 <dt class="heading">Parameters:</dt>
2393 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2396 <dd>The type of event to listen for</dd>
2399 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2402 <dd>The method the event invokes</dd>
2405 <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>
2408 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2411 <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>
2432 <td class="msource">
2434 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2440 <tr class="method-row config-row-alt0 expandable">
2441 <td class="micon"><a class="exi" href="#expand"> </a></td>
2445 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2446 <div class="fixedFont">
2447 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2456 <div class="short">Removes all listeners for this object</div>
2462 Removes all listeners for this object
2483 <td class="msource">
2485 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2491 <tr class="method-row config-row-alt1 expandable notInherited">
2492 <td class="micon"><a class="exi" href="#expand"> </a></td>
2496 <a id="Roo.util.MixedCollection-method-remove" name=".remove"></a>
2497 <div class="fixedFont">
2498 <span class="attributes"></span><b class="itemname">remove</b>
2500 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>)
2506 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2515 <div class="short">Removed an item from the collection.</div>
2521 Removed an item from the collection.
2528 <dl class="detailList">
2529 <dt class="heading">Parameters:</dt>
2532 <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>
2535 <dd>The item to remove.</dd>
2543 <dl class="detailList">
2544 <dt class="heading">Returns:</dt>
2546 <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>
2560 <td class="msource">
2562 Roo.util.MixedCollection
2568 <tr class="method-row config-row-alt0 expandable notInherited">
2569 <td class="micon"><a class="exi" href="#expand"> </a></td>
2573 <a id="Roo.util.MixedCollection-method-removeAt" name=".removeAt"></a>
2574 <div class="fixedFont">
2575 <span class="attributes"></span><b class="itemname">removeAt</b>
2577 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2584 <div class="short">Remove an item from a specified index in the collection.</div>
2590 Remove an item from a specified index in the collection.
2597 <dl class="detailList">
2598 <dt class="heading">Parameters:</dt>
2601 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2604 <dd>The index within the collection of the item to remove.</dd>
2622 <td class="msource">
2624 Roo.util.MixedCollection
2630 <tr class="method-row config-row-alt1 expandable notInherited">
2631 <td class="micon"><a class="exi" href="#expand"> </a></td>
2635 <a id="Roo.util.MixedCollection-method-removeKey" name=".removeKey"></a>
2636 <div class="fixedFont">
2637 <span class="attributes"></span><b class="itemname">removeKey</b>
2639 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>)
2646 <div class="short">Removed an item associated with the passed key fom the collection.</div>
2652 Removed an item associated with the passed key fom the collection.
2659 <dl class="detailList">
2660 <dt class="heading">Parameters:</dt>
2663 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
2666 <dd>The key of the item to remove.</dd>
2684 <td class="msource">
2686 Roo.util.MixedCollection
2692 <tr class="method-row config-row-alt0 expandable">
2693 <td class="micon"><a class="exi" href="#expand"> </a></td>
2697 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2698 <div class="fixedFont">
2699 <span class="attributes"></span><b class="itemname">removeListener</b>
2701 (<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>)
2708 <div class="short">Removes a listener</div>
2721 <dl class="detailList">
2722 <dt class="heading">Parameters:</dt>
2725 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2728 <dd>The type of event to listen for</dd>
2731 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2734 <dd>The handler to remove</dd>
2737 <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>
2740 <dd>(optional) The scope (this object) for the handler</dd>
2758 <td class="msource">
2760 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2766 <tr class="method-row config-row-alt1 expandable notInherited">
2767 <td class="micon"><a class="exi" href="#expand"> </a></td>
2771 <a id="Roo.util.MixedCollection-method-replace" name=".replace"></a>
2772 <div class="fixedFont">
2773 <span class="attributes"></span><b class="itemname">replace</b>
2775 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <B><i>o</i></B>)
2781 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2790 <div class="short">Replaces an item in the collection.</div>
2796 Replaces an item in the collection.
2803 <dl class="detailList">
2804 <dt class="heading">Parameters:</dt>
2807 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
2810 <dd>The key associated with the item to replace, or the item to replace.</dd>
2816 <dd>{Object} o (optional) If the first parameter passed was a key, the item to associate with that key.</dd>
2824 <dl class="detailList">
2825 <dt class="heading">Returns:</dt>
2827 <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>
2841 <td class="msource">
2843 Roo.util.MixedCollection
2849 <tr class="method-row config-row-alt0 expandable notInherited">
2850 <td class="micon"><a class="exi" href="#expand"> </a></td>
2854 <a id="Roo.util.MixedCollection-method-sort" name=".sort"></a>
2855 <div class="fixedFont">
2856 <span class="attributes"></span><b class="itemname">sort</b>
2858 (<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>)
2865 <div class="short">Sorts this collection with the passed comparison function</div>
2871 Sorts this collection with the passed comparison function
2878 <dl class="detailList">
2879 <dt class="heading">Parameters:</dt>
2882 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2885 <dd>(optional) "ASC" or "DESC"</dd>
2888 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2891 <dd>(optional) comparison function</dd>
2909 <td class="msource">
2911 Roo.util.MixedCollection
2917 <tr class="method-row config-row-alt1 expandable">
2918 <td class="micon"><a class="exi" href="#expand"> </a></td>
2922 <a id="Roo.util.Observable-method-un" name=".un"></a>
2923 <div class="fixedFont">
2924 <span class="attributes"></span><b class="itemname">un</b>
2926 (<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>)
2933 <div class="short">Removes a listener (shorthand for removeListener)</div>
2939 Removes a listener (shorthand for removeListener)
2946 <dl class="detailList">
2947 <dt class="heading">Parameters:</dt>
2950 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2953 <dd>The type of event to listen for</dd>
2956 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2959 <dd>The handler to remove</dd>
2962 <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>
2965 <dd>(optional) The scope (this object) for the handler</dd>
2983 <td class="msource">
2985 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2994 <!-- ============================== events summary / details ======================== -->
2997 <a id="Roo.util.MixedCollection-events"></a>
3006 <table cellspacing="0" class="member-table">
3007 <caption>Events</caption>
3010 <th class="sig-header" colspan="2">Event</th>
3011 <th class="msource-header">Defined By</th>
3020 <tr class="method-row expandable config-row-alt0 notInherited">
3021 <td class="micon"><a class="exi" href="#expand"> </a></td>
3024 <a id="Roo.util.MixedCollection-event-*add"></a>
3026 <div class="fixedFont">
3027 <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>)
3033 <div class="short">Fires when an item is added to the collection.
3039 Fires when an item is added to the collection.
3045 <dl class="detailList">
3046 <dt class="heading">Parameters:</dt>
3049 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3052 <dd>The index at which the item was added.</dd>
3055 <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>
3058 <dd>The item added.</dd>
3061 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3064 <dd>The key associated with the added item.</dd>
3082 <td class="msource">
3083 Roo.util.MixedCollection
3087 <tr class="method-row expandable config-row-alt1 notInherited">
3088 <td class="micon"><a class="exi" href="#expand"> </a></td>
3091 <a id="Roo.util.MixedCollection-event-*clear"></a>
3093 <div class="fixedFont">
3094 <b class="itemname">clear</b> ()
3100 <div class="short">Fires when the collection is cleared.
3106 Fires when the collection is cleared.
3126 <td class="msource">
3127 Roo.util.MixedCollection
3131 <tr class="method-row expandable config-row-alt0 notInherited">
3132 <td class="micon"><a class="exi" href="#expand"> </a></td>
3135 <a id="Roo.util.MixedCollection-event-*remove"></a>
3137 <div class="fixedFont">
3138 <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>)
3144 <div class="short">Fires when an item is removed from the collection.
3150 Fires when an item is removed from the collection.
3156 <dl class="detailList">
3157 <dt class="heading">Parameters:</dt>
3160 <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>
3163 <dd>The item being removed.</dd>
3166 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3169 <dd>(optional) The key associated with the removed item.</dd>
3187 <td class="msource">
3188 Roo.util.MixedCollection
3192 <tr class="method-row expandable config-row-alt1 notInherited">
3193 <td class="micon"><a class="exi" href="#expand"> </a></td>
3196 <a id="Roo.util.MixedCollection-event-*replace"></a>
3198 <div class="fixedFont">
3199 <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>)
3205 <div class="short">Fires when an item is replaced in the collection.
3211 Fires when an item is replaced in the collection.
3217 <dl class="detailList">
3218 <dt class="heading">Parameters:</dt>
3221 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3224 <dd>he key associated with the new added.</dd>
3227 <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>
3230 <dd>The item being replaced.</dd>
3233 <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>
3236 <dd>The new item.</dd>
3254 <td class="msource">
3255 Roo.util.MixedCollection
3266 <!-- ============================== footer ================================= -->
3267 <div class="fineprint" style="clear:both">
3269 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Apr 24 2014 16:33:03 GMT+0800 (HKT)
3271 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>