sync
[roojs1] / docs / symbols / Roo.util.MixedCollection.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Roo.util.MixedCollection</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
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>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
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 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.util.MixedCollection
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo.util</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_util_MixedCollection.js.html">Roo/util/MixedCollection.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">MixedCollection</td></tr>
70         
71         
72         
73         
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>
76         
77                 </td></tr>    
78         
79         
80     </table>
81
82     
83 <!-- ============================== class summary ========================== -->                        
84     <div class="description">
85         A Collection class that maintains both numeric indexes and keys and exposes events.
86     </div>
87
88         
89 <!-- ============================== Class comment block... ========================== -->                                       
90
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>
94         <br/>
95         <iframe frameborder="0"  id="comments-Roo.util" style="border: none;width:100%;" 
96                 src="/blog.php/GtkDjsComments/Roo.util.MixedCollection.html"></iframe>
97 </div>
98         
99
100                 
101 <!-- ============================== config options ========================== -->                                               
102                  
103     
104     
105                 
106     <div class="hr"></div>
107     <a id="Roo.util.MixedCollection-configs"></a>
108                 
109     
110      
111     
112         
113       <table cellspacing="0" class="member-table">   
114       <caption>Config Options (Usually are also Properties)</caption>
115     
116         
117         <tr>
118             <th class="sig-header" colspan="2">Options</th>
119             
120             <th class="msource-header">Defined By</th>
121         </tr>
122         
123         
124         
125         
126         
127                 <tr class="config-row expandable config-row-alt0">
128                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
129                     <td class="sig">
130
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>
134                                 
135                                 
136                         </div>
137                   
138                         <div class="mdesc">
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> 
140                         </div>
141                         
142                         <div class="mdesc">
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> 
144                         </div>
145                         
146                         
147
148                     </td>
149                     <td class="msource">
150                         
151                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
152                                 
153                     </td>
154                 </tr>
155         
156         
157     </table>
158                 
159   
160   
161   
162   
163   
164   
165   
166   
167   <!-- ============================== public properties ==================== -->        
168   
169   
170   
171     <a id="Roo.util.MixedCollection-props"></a>      
172     
173     
174
175     
176     
177      <table cellspacing="0" class="member-table">
178       <caption class="Empty">Public Properties - Has None</caption>
179      </table>
180     
181     
182      
183     
184   <!-- ============================== methods summary / details ======================== -->
185   
186   
187   <a id="Roo.util.MixedCollection-methods"></a>
188         <!-- constructor?? -->
189         
190         <!-- static's first 
191         
192         
193         -->
194         
195         <!-- then dynamics first -->
196         
197   
198   
199     
200     
201     
202       <table cellspacing="0" class="member-table">
203       <caption>Public Methods</caption>
204         <tr>
205             <th class="sig-header" colspan="2">Method</th>            
206             <th class="msource-header">Defined By</th>
207
208         </tr>
209         
210         
211         
212          
213         
214         
215           
216           <tr class="method-row config-row-alt0 expandable notInherited">
217             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
218            
219            
220             <td class="sig">
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>
224                                 
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>) 
226                         
227                                 
228                         
229                 </div>
230                 <div class="mdesc">
231                 
232                  
233                         <div class="short">Create a new Roo.util.MixedCollection</div> 
234                  
235                  
236                     <div class="long">
237                         
238                         
239                         
240                                 Create a new Roo.util.MixedCollection
241                         
242                         
243                                 <dl class="detailList">
244                                 <dt class="heading">Parameters:</dt>
245                                 
246                                         <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>
248                                                 
249                                         </dt>
250                                         <dd>True if the addAll function should add function references to the<br/>collection (defaults to false)</dd>
251                                 
252                                         <dt>
253                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>keyFn</b>
254                                                 
255                                         </dt>
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>
257                                 
258                                 </dl>
259                         
260                         
261                         
262                         
263                         
264                         
265                         
266
267                     
268                     
269                      
270                     </div>                    
271                 </div>
272
273             </td>
274             <td class="msource">
275                 &nbsp;
276             </td>
277         </tr>
278         
279           
280           <tr class="method-row config-row-alt1 expandable notInherited">
281             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
282            
283            
284             <td class="sig">
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>
288                                 
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>) 
290                         
291                                 
292                                          : 
293                                         
294                                                 
295                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
296                                         
297                                         
298                                         
299                                 
300                         
301                 </div>
302                 <div class="mdesc">
303                 
304                    <div class="short">Adds an item to the collection.</div> 
305                  
306                  
307                  
308                     <div class="long">
309                         
310                                 Adds an item to the collection.
311                     
312                                 
313                         
314                         
315                         
316                         
317                                 <dl class="detailList">
318                                 <dt class="heading">Parameters:</dt>
319                                 
320                                         <dt>
321                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
322                                                 
323                                         </dt>
324                                         <dd>The key to associate with the item</dd>
325                                 
326                                         <dt>
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>
328                                                 
329                                         </dt>
330                                         <dd>The item to add.</dd>
331                                 
332                                 </dl>
333                         
334                         
335                         
336                         
337                         
338                                 <dl class="detailList">
339                                 <dt class="heading">Returns:</dt>
340                                 
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>
342                                 
343                                 </dl>
344                         
345                         
346                         
347
348                     
349                     
350                      
351                     </div>                    
352                 </div>
353
354             </td>
355             <td class="msource">
356                 
357                         Roo.util.MixedCollection
358                 &nbsp;
359             </td>
360         </tr>
361         
362           
363           <tr class="method-row config-row-alt0 expandable notInherited">
364             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
365            
366            
367             <td class="sig">
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>
371                                 
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>) 
373                         
374                                 
375                         
376                 </div>
377                 <div class="mdesc">
378                 
379                    <div class="short">Adds all elements of an Array or an Object to the collection.</div> 
380                  
381                  
382                  
383                     <div class="long">
384                         
385                                 Adds all elements of an Array or an Object to the collection.
386                     
387                                 
388                         
389                         
390                         
391                         
392                                 <dl class="detailList">
393                                 <dt class="heading">Parameters:</dt>
394                                 
395                                         <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>
397                                                 
398                                         </dt>
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>
400                                 
401                                 </dl>
402                         
403                         
404                         
405                         
406                         
407                         
408                         
409
410                     
411                     
412                      
413                     </div>                    
414                 </div>
415
416             </td>
417             <td class="msource">
418                 
419                         Roo.util.MixedCollection
420                 &nbsp;
421             </td>
422         </tr>
423         
424           
425           <tr class="method-row config-row-alt1 expandable">
426             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
427            
428            
429             <td class="sig">
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>
433                                 
434                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>) 
435                         
436                                 
437                         
438                 </div>
439                 <div class="mdesc">
440                 
441                    <div class="short">Used to define events on this Observable</div> 
442                  
443                  
444                  
445                     <div class="long">
446                         
447                                 Used to define events on this Observable
448                     
449                                 
450                         
451                         
452                         
453                         
454                                 <dl class="detailList">
455                                 <dt class="heading">Parameters:</dt>
456                                 
457                                         <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>
459                                                 
460                                         </dt>
461                                         <dd>The object with the events defined</dd>
462                                 
463                                 </dl>
464                         
465                         
466                         
467                         
468                         
469                         
470                         
471
472                     
473                     
474                      
475                     </div>                    
476                 </div>
477
478             </td>
479             <td class="msource">
480                 
481                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
482                 &nbsp;
483             </td>
484         </tr>
485         
486           
487           <tr class="method-row config-row-alt0 expandable">
488             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
489            
490            
491             <td class="sig">
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>
495                                 
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>) 
497                         
498                                 
499                         
500                 </div>
501                 <div class="mdesc">
502                 
503                    <div class="short">Appends an event handler to this component</div> 
504                  
505                  
506                  
507                     <div class="long">
508                         
509                                 Appends an event handler to this component
510                     
511                                 
512                         
513                         
514                         
515                         
516                                 <dl class="detailList">
517                                 <dt class="heading">Parameters:</dt>
518                                 
519                                         <dt>
520                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
521                                                 
522                                         </dt>
523                                         <dd>The type of event to listen for</dd>
524                                 
525                                         <dt>
526                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
527                                                 
528                                         </dt>
529                                         <dd>The method the event invokes</dd>
530                                 
531                                         <dt>
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>
533                                                 
534                                         </dt>
535                                         <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
536                                 
537                                         <dt>
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>
539                                                 
540                                         </dt>
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>
542                                 
543                                 </dl>
544                         
545                         
546                         
547                         
548                         
549                         
550                         
551
552                     
553                     
554                      
555                     </div>                    
556                 </div>
557
558             </td>
559             <td class="msource">
560                 
561                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
562                 &nbsp;
563             </td>
564         </tr>
565         
566           
567           <tr class="method-row config-row-alt1 expandable notInherited">
568             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
569            
570            
571             <td class="sig">
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>
575                                 
576                                  () 
577                         
578                                 
579                         
580                 </div>
581                 <div class="mdesc">
582                 
583                    <div class="short">Removes all items from the collection.</div> 
584                  
585                  
586                  
587                     <div class="long">
588                         
589                                 Removes all items from the collection.
590                     
591                                 
592                         
593                         
594                         
595                         
596                         
597                         
598                         
599                         
600                         
601                         
602
603                     
604                     
605                      
606                     </div>                    
607                 </div>
608
609             </td>
610             <td class="msource">
611                 
612                         Roo.util.MixedCollection
613                 &nbsp;
614             </td>
615         </tr>
616         
617           
618           <tr class="method-row config-row-alt0 expandable notInherited">
619             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
620            
621            
622             <td class="sig">
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>
626                                 
627                                  () 
628                         
629                                 
630                                          : 
631                                         
632                                                 
633                                                 MixedCollection
634                                         
635                                         
636                                         
637                                 
638                         
639                 </div>
640                 <div class="mdesc">
641                 
642                    <div class="short">Creates a duplicate of this collection</div> 
643                  
644                  
645                  
646                     <div class="long">
647                         
648                                 Creates a duplicate of this collection
649                     
650                                 
651                         
652                         
653                         
654                         
655                         
656                         
657                         
658                         
659                                 <dl class="detailList">
660                                 <dt class="heading">Returns:</dt>
661                                 
662                                         <dd><span class="fixedFont">MixedCollection</span>  </dd>
663                                 
664                                 </dl>
665                         
666                         
667                         
668
669                     
670                     
671                      
672                     </div>                    
673                 </div>
674
675             </td>
676             <td class="msource">
677                 
678                         Roo.util.MixedCollection
679                 &nbsp;
680             </td>
681         </tr>
682         
683           
684           <tr class="method-row config-row-alt1 expandable notInherited">
685             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
686            
687            
688             <td class="sig">
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>
692                                 
693                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>) 
694                         
695                                 
696                                          : 
697                                         
698                                                 
699                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
700                                         
701                                         
702                                         
703                                 
704                         
705                 </div>
706                 <div class="mdesc">
707                 
708                    <div class="short">Returns true if the collection contains the passed Object as an item.</div> 
709                  
710                  
711                  
712                     <div class="long">
713                         
714                                 Returns true if the collection contains the passed Object as an item.
715                     
716                                 
717                         
718                         
719                         
720                         
721                                 <dl class="detailList">
722                                 <dt class="heading">Parameters:</dt>
723                                 
724                                         <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>
726                                                 
727                                         </dt>
728                                         <dd>The Object to look for in the collection.</dd>
729                                 
730                                 </dl>
731                         
732                         
733                         
734                         
735                         
736                                 <dl class="detailList">
737                                 <dt class="heading">Returns:</dt>
738                                 
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>
740                                 
741                                 </dl>
742                         
743                         
744                         
745
746                     
747                     
748                      
749                     </div>                    
750                 </div>
751
752             </td>
753             <td class="msource">
754                 
755                         Roo.util.MixedCollection
756                 &nbsp;
757             </td>
758         </tr>
759         
760           
761           <tr class="method-row config-row-alt0 expandable notInherited">
762             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
763            
764            
765             <td class="sig">
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>
769                                 
770                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>) 
771                         
772                                 
773                                          : 
774                                         
775                                                 
776                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
777                                         
778                                         
779                                         
780                                 
781                         
782                 </div>
783                 <div class="mdesc">
784                 
785                    <div class="short">Returns true if the collection contains the passed Object as a key.</div> 
786                  
787                  
788                  
789                     <div class="long">
790                         
791                                 Returns true if the collection contains the passed Object as a key.
792                     
793                                 
794                         
795                         
796                         
797                         
798                                 <dl class="detailList">
799                                 <dt class="heading">Parameters:</dt>
800                                 
801                                         <dt>
802                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
803                                                 
804                                         </dt>
805                                         <dd>The key to look for in the collection.</dd>
806                                 
807                                 </dl>
808                         
809                         
810                         
811                         
812                         
813                                 <dl class="detailList">
814                                 <dt class="heading">Returns:</dt>
815                                 
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>
817                                 
818                                 </dl>
819                         
820                         
821                         
822
823                     
824                     
825                      
826                     </div>                    
827                 </div>
828
829             </td>
830             <td class="msource">
831                 
832                         Roo.util.MixedCollection
833                 &nbsp;
834             </td>
835         </tr>
836         
837           
838           <tr class="method-row config-row-alt1 expandable notInherited">
839             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
840            
841            
842             <td class="sig">
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>
846                                 
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>) 
848                         
849                                 
850                         
851                 </div>
852                 <div class="mdesc">
853                 
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> 
855                  
856                  
857                  
858                     <div class="long">
859                         
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.
861                     
862                                 
863                         
864                         
865                         
866                         
867                                 <dl class="detailList">
868                                 <dt class="heading">Parameters:</dt>
869                                 
870                                         <dt>
871                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
872                                                 
873                                         </dt>
874                                         <dd>The function to execute for each item.</dd>
875                                 
876                                         <dt>
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>
878                                                 
879                                         </dt>
880                                         <dd>(optional) The scope in which to execute the function.</dd>
881                                 
882                                 </dl>
883                         
884                         
885                         
886                         
887                         
888                         
889                         
890
891                     
892                     
893                      
894                     </div>                    
895                 </div>
896
897             </td>
898             <td class="msource">
899                 
900                         Roo.util.MixedCollection
901                 &nbsp;
902             </td>
903         </tr>
904         
905           
906           <tr class="method-row config-row-alt0 expandable notInherited">
907             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
908            
909            
910             <td class="sig">
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>
914                                 
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>) 
916                         
917                                 
918                         
919                 </div>
920                 <div class="mdesc">
921                 
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> 
923                  
924                  
925                  
926                     <div class="long">
927                         
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.
929                     
930                                 
931                         
932                         
933                         
934                         
935                                 <dl class="detailList">
936                                 <dt class="heading">Parameters:</dt>
937                                 
938                                         <dt>
939                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
940                                                 
941                                         </dt>
942                                         <dd>The function to execute for each item.</dd>
943                                 
944                                         <dt>
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>
946                                                 
947                                         </dt>
948                                         <dd>(optional) The scope in which to execute the function.</dd>
949                                 
950                                 </dl>
951                         
952                         
953                         
954                         
955                         
956                         
957                         
958
959                     
960                     
961                      
962                     </div>                    
963                 </div>
964
965             </td>
966             <td class="msource">
967                 
968                         Roo.util.MixedCollection
969                 &nbsp;
970             </td>
971         </tr>
972         
973           
974           <tr class="method-row config-row-alt1 expandable notInherited">
975             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
976            
977            
978             <td class="sig">
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>
982                                 
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>) 
984                         
985                                 
986                                          : 
987                                         
988                                                 
989                                                 MixedCollection
990                                         
991                                         
992                                         
993                                 
994                         
995                 </div>
996                 <div class="mdesc">
997                 
998                    <div class="short">Filter the <i>objects</i> in this collection by a specific property.</div> 
999                  
1000                  
1001                  
1002                     <div class="long">
1003                         
1004                                 Filter the <i>objects</i> in this collection by a specific property. <br/>Returns a new collection that has been filtered.
1005                     
1006                                 
1007                         
1008                         
1009                         
1010                         
1011                                 <dl class="detailList">
1012                                 <dt class="heading">Parameters:</dt>
1013                                 
1014                                         <dt>
1015                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>property</b>
1016                                                 
1017                                         </dt>
1018                                         <dd>A property on your objects</dd>
1019                                 
1020                                         <dt>
1021                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
1022                                                 
1023                                         </dt>
1024                                         <dd>Either string that the property values <br/>should start with or a RegExp to test against the property</dd>
1025                                 
1026                                 </dl>
1027                         
1028                         
1029                         
1030                         
1031                         
1032                                 <dl class="detailList">
1033                                 <dt class="heading">Returns:</dt>
1034                                 
1035                                         <dd><span class="fixedFont">MixedCollection</span>  The new filtered collection</dd>
1036                                 
1037                                 </dl>
1038                         
1039                         
1040                         
1041
1042                     
1043                     
1044                      
1045                     </div>                    
1046                 </div>
1047
1048             </td>
1049             <td class="msource">
1050                 
1051                         Roo.util.MixedCollection
1052                 &nbsp;
1053             </td>
1054         </tr>
1055         
1056           
1057           <tr class="method-row config-row-alt0 expandable notInherited">
1058             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1059            
1060            
1061             <td class="sig">
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>
1065                                 
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>) 
1067                         
1068                                 
1069                                          : 
1070                                         
1071                                                 
1072                                                 MixedCollection
1073                                         
1074                                         
1075                                         
1076                                 
1077                         
1078                 </div>
1079                 <div class="mdesc">
1080                 
1081                    <div class="short">Filter by a function.</div> 
1082                  
1083                  
1084                  
1085                     <div class="long">
1086                         
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.
1088                     
1089                                 
1090                         
1091                         
1092                         
1093                         
1094                                 <dl class="detailList">
1095                                 <dt class="heading">Parameters:</dt>
1096                                 
1097                                         <dt>
1098                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
1099                                                 
1100                                         </dt>
1101                                         <dd>The function to be called, it will receive the args o (the object), k (the key)</dd>
1102                                 
1103                                         <dt>
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>
1105                                                 
1106                                         </dt>
1107                                         <dd>(optional) The scope of the function (defaults to this)</dd>
1108                                 
1109                                 </dl>
1110                         
1111                         
1112                         
1113                         
1114                         
1115                                 <dl class="detailList">
1116                                 <dt class="heading">Returns:</dt>
1117                                 
1118                                         <dd><span class="fixedFont">MixedCollection</span>  The new filtered collection</dd>
1119                                 
1120                                 </dl>
1121                         
1122                         
1123                         
1124
1125                     
1126                     
1127                      
1128                     </div>                    
1129                 </div>
1130
1131             </td>
1132             <td class="msource">
1133                 
1134                         Roo.util.MixedCollection
1135                 &nbsp;
1136             </td>
1137         </tr>
1138         
1139           
1140           <tr class="method-row config-row-alt1 expandable notInherited">
1141             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1142            
1143            
1144             <td class="sig">
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>
1148                                 
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>) 
1150                         
1151                                 
1152                                          : 
1153                                         
1154                                                 
1155                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1156                                         
1157                                         
1158                                         
1159                                 
1160                         
1161                 </div>
1162                 <div class="mdesc">
1163                 
1164                    <div class="short">Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.</div> 
1165                  
1166                  
1167                  
1168                     <div class="long">
1169                         
1170                                 Returns the first item in the collection which elicits a true return value from the<br/>passed selection function.
1171                     
1172                                 
1173                         
1174                         
1175                         
1176                         
1177                                 <dl class="detailList">
1178                                 <dt class="heading">Parameters:</dt>
1179                                 
1180                                         <dt>
1181                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
1182                                                 
1183                                         </dt>
1184                                         <dd>The selection function to execute for each item.</dd>
1185                                 
1186                                         <dt>
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>
1188                                                 
1189                                         </dt>
1190                                         <dd>(optional) The scope in which to execute the function.</dd>
1191                                 
1192                                 </dl>
1193                         
1194                         
1195                         
1196                         
1197                         
1198                                 <dl class="detailList">
1199                                 <dt class="heading">Returns:</dt>
1200                                 
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>
1202                                 
1203                                 </dl>
1204                         
1205                         
1206                         
1207
1208                     
1209                     
1210                      
1211                     </div>                    
1212                 </div>
1213
1214             </td>
1215             <td class="msource">
1216                 
1217                         Roo.util.MixedCollection
1218                 &nbsp;
1219             </td>
1220         </tr>
1221         
1222           
1223           <tr class="method-row config-row-alt0 expandable">
1224             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1225            
1226            
1227             <td class="sig">
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>
1231                                 
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>) 
1233                         
1234                                 
1235                                          : 
1236                                         
1237                                                 
1238                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1239                                         
1240                                         
1241                                         
1242                                 
1243                         
1244                 </div>
1245                 <div class="mdesc">
1246                 
1247                    <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> 
1248                  
1249                  
1250                  
1251                     <div class="long">
1252                         
1253                                 Fires the specified event with the passed parameters (minus the event name).
1254                     
1255                                 
1256                         
1257                         
1258                         
1259                         
1260                                 <dl class="detailList">
1261                                 <dt class="heading">Parameters:</dt>
1262                                 
1263                                         <dt>
1264                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
1265                                                 
1266                                         </dt>
1267                                         <dd></dd>
1268                                 
1269                                         <dt>
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>
1271                                                 
1272                                         </dt>
1273                                         <dd>Variable number of parameters are passed to handlers</dd>
1274                                 
1275                                 </dl>
1276                         
1277                         
1278                         
1279                         
1280                         
1281                                 <dl class="detailList">
1282                                 <dt class="heading">Returns:</dt>
1283                                 
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>
1285                                 
1286                                 </dl>
1287                         
1288                         
1289                         
1290
1291                     
1292                     
1293                      
1294                     </div>                    
1295                 </div>
1296
1297             </td>
1298             <td class="msource">
1299                 
1300                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1301                 &nbsp;
1302             </td>
1303         </tr>
1304         
1305           
1306           <tr class="method-row config-row-alt1 expandable notInherited">
1307             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1308            
1309            
1310             <td class="sig">
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>
1314                                 
1315                                  () 
1316                         
1317                                 
1318                                          : 
1319                                         
1320                                                 
1321                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1322                                         
1323                                         
1324                                         
1325                                 
1326                         
1327                 </div>
1328                 <div class="mdesc">
1329                 
1330                    <div class="short">Returns the first item in the collection.</div> 
1331                  
1332                  
1333                  
1334                     <div class="long">
1335                         
1336                                 Returns the first item in the collection.
1337                     
1338                                 
1339                         
1340                         
1341                         
1342                         
1343                         
1344                         
1345                         
1346                         
1347                                 <dl class="detailList">
1348                                 <dt class="heading">Returns:</dt>
1349                                 
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>
1351                                 
1352                                 </dl>
1353                         
1354                         
1355                         
1356
1357                     
1358                     
1359                      
1360                     </div>                    
1361                 </div>
1362
1363             </td>
1364             <td class="msource">
1365                 
1366                         Roo.util.MixedCollection
1367                 &nbsp;
1368             </td>
1369         </tr>
1370         
1371           
1372           <tr class="method-row config-row-alt0 expandable notInherited">
1373             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1374            
1375            
1376             <td class="sig">
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>
1380                                 
1381                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>) 
1382                         
1383                                 
1384                                          : 
1385                                         
1386                                                 
1387                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1388                                         
1389                                         
1390                                         
1391                                 
1392                         
1393                 </div>
1394                 <div class="mdesc">
1395                 
1396                    <div class="short">Returns the item associated with the passed key or index.</div> 
1397                  
1398                  
1399                  
1400                     <div class="long">
1401                         
1402                                 Returns the item associated with the passed key or index.
1403                     
1404                                 
1405                         
1406                         
1407                         
1408                         
1409                                 <dl class="detailList">
1410                                 <dt class="heading">Parameters:</dt>
1411                                 
1412                                         <dt>
1413                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span>  <b>key</b>
1414                                                 
1415                                         </dt>
1416                                         <dd>The key or index of the item.</dd>
1417                                 
1418                                 </dl>
1419                         
1420                         
1421                         
1422                         
1423                         
1424                                 <dl class="detailList">
1425                                 <dt class="heading">Returns:</dt>
1426                                 
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>
1428                                 
1429                                 </dl>
1430                         
1431                         
1432                         
1433
1434                     
1435                     
1436                      
1437                     </div>                    
1438                 </div>
1439
1440             </td>
1441             <td class="msource">
1442                 
1443                         Roo.util.MixedCollection
1444                 &nbsp;
1445             </td>
1446         </tr>
1447         
1448           
1449           <tr class="method-row config-row-alt1 expandable notInherited">
1450             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1451            
1452            
1453             <td class="sig">
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>
1457                                 
1458                                  () 
1459                         
1460                                 
1461                                          : 
1462                                         
1463                                                 
1464                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1465                                         
1466                                         
1467                                         
1468                                 
1469                         
1470                 </div>
1471                 <div class="mdesc">
1472                 
1473                    <div class="short">Returns the number of items in the collection.</div> 
1474                  
1475                  
1476                  
1477                     <div class="long">
1478                         
1479                                 Returns the number of items in the collection.
1480                     
1481                                 
1482                         
1483                         
1484                         
1485                         
1486                         
1487                         
1488                         
1489                         
1490                                 <dl class="detailList">
1491                                 <dt class="heading">Returns:</dt>
1492                                 
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>
1494                                 
1495                                 </dl>
1496                         
1497                         
1498                         
1499
1500                     
1501                     
1502                      
1503                     </div>                    
1504                 </div>
1505
1506             </td>
1507             <td class="msource">
1508                 
1509                         Roo.util.MixedCollection
1510                 &nbsp;
1511             </td>
1512         </tr>
1513         
1514           
1515           <tr class="method-row config-row-alt0 expandable notInherited">
1516             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1517            
1518            
1519             <td class="sig">
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>
1523                                 
1524                                  (<B><i>o</i></B>) 
1525                         
1526                                 
1527                                          : 
1528                                         
1529                                                 
1530                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1531                                         
1532                                         
1533                                         
1534                                 
1535                         
1536                 </div>
1537                 <div class="mdesc">
1538                 
1539                    <div class="short">MixedCollection has a generic way to fetch keys if you implement getKey.</div> 
1540                  
1541                  
1542                  
1543                     <div class="long">
1544                         
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>
1546                     
1547                                 
1548                         
1549                         
1550                         
1551                         
1552                                 <dl class="detailList">
1553                                 <dt class="heading">Parameters:</dt>
1554                                 
1555                                         <dt>
1556                                                  <b>o</b>
1557                                                 
1558                                         </dt>
1559                                         <dd>{Object} The item for which to find the key.</dd>
1560                                 
1561                                 </dl>
1562                         
1563                         
1564                         
1565                         
1566                         
1567                                 <dl class="detailList">
1568                                 <dt class="heading">Returns:</dt>
1569                                 
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>
1571                                 
1572                                 </dl>
1573                         
1574                         
1575                         
1576
1577                     
1578                     
1579                      
1580                     </div>                    
1581                 </div>
1582
1583             </td>
1584             <td class="msource">
1585                 
1586                         Roo.util.MixedCollection
1587                 &nbsp;
1588             </td>
1589         </tr>
1590         
1591           
1592           <tr class="method-row config-row-alt1 expandable notInherited">
1593             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1594            
1595            
1596             <td class="sig">
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>
1600                                 
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>) 
1602                         
1603                                 
1604                                          : 
1605                                         
1606                                                 
1607                                                 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1608                                         
1609                                         
1610                                         
1611                                 
1612                         
1613                 </div>
1614                 <div class="mdesc">
1615                 
1616                    <div class="short">Returns a range of items in this collection</div> 
1617                  
1618                  
1619                  
1620                     <div class="long">
1621                         
1622                                 Returns a range of items in this collection
1623                     
1624                                 
1625                         
1626                         
1627                         
1628                         
1629                                 <dl class="detailList">
1630                                 <dt class="heading">Parameters:</dt>
1631                                 
1632                                         <dt>
1633                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>startIndex</b>
1634                                                 
1635                                         </dt>
1636                                         <dd>(optional) defaults to 0</dd>
1637                                 
1638                                         <dt>
1639                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>endIndex</b>
1640                                                 
1641                                         </dt>
1642                                         <dd>(optional) default to the last item</dd>
1643                                 
1644                                 </dl>
1645                         
1646                         
1647                         
1648                         
1649                         
1650                                 <dl class="detailList">
1651                                 <dt class="heading">Returns:</dt>
1652                                 
1653                                         <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>  An array of items</dd>
1654                                 
1655                                 </dl>
1656                         
1657                         
1658                         
1659
1660                     
1661                     
1662                      
1663                     </div>                    
1664                 </div>
1665
1666             </td>
1667             <td class="msource">
1668                 
1669                         Roo.util.MixedCollection
1670                 &nbsp;
1671             </td>
1672         </tr>
1673         
1674           
1675           <tr class="method-row config-row-alt0 expandable">
1676             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1677            
1678            
1679             <td class="sig">
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>
1683                                 
1684                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>) 
1685                         
1686                                 
1687                                          : 
1688                                         
1689                                                 
1690                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1691                                         
1692                                         
1693                                         
1694                                 
1695                         
1696                 </div>
1697                 <div class="mdesc">
1698                 
1699                    <div class="short">Checks to see if this object has any listeners for a specified event</div> 
1700                  
1701                  
1702                  
1703                     <div class="long">
1704                         
1705                                 Checks to see if this object has any listeners for a specified event
1706                     
1707                                 
1708                         
1709                         
1710                         
1711                         
1712                                 <dl class="detailList">
1713                                 <dt class="heading">Parameters:</dt>
1714                                 
1715                                         <dt>
1716                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
1717                                                 
1718                                         </dt>
1719                                         <dd>The name of the event to check for</dd>
1720                                 
1721                                 </dl>
1722                         
1723                         
1724                         
1725                         
1726                         
1727                                 <dl class="detailList">
1728                                 <dt class="heading">Returns:</dt>
1729                                 
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>
1731                                 
1732                                 </dl>
1733                         
1734                         
1735                         
1736
1737                     
1738                     
1739                      
1740                     </div>                    
1741                 </div>
1742
1743             </td>
1744             <td class="msource">
1745                 
1746                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1747                 &nbsp;
1748             </td>
1749         </tr>
1750         
1751           
1752           <tr class="method-row config-row-alt1 expandable notInherited">
1753             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1754            
1755            
1756             <td class="sig">
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>
1760                                 
1761                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>) 
1762                         
1763                                 
1764                                          : 
1765                                         
1766                                                 
1767                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1768                                         
1769                                         
1770                                         
1771                                 
1772                         
1773                 </div>
1774                 <div class="mdesc">
1775                 
1776                    <div class="short">Returns index within the collection of the passed Object.</div> 
1777                  
1778                  
1779                  
1780                     <div class="long">
1781                         
1782                                 Returns index within the collection of the passed Object.
1783                     
1784                                 
1785                         
1786                         
1787                         
1788                         
1789                                 <dl class="detailList">
1790                                 <dt class="heading">Parameters:</dt>
1791                                 
1792                                         <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>
1794                                                 
1795                                         </dt>
1796                                         <dd>The item to find the index of.</dd>
1797                                 
1798                                 </dl>
1799                         
1800                         
1801                         
1802                         
1803                         
1804                                 <dl class="detailList">
1805                                 <dt class="heading">Returns:</dt>
1806                                 
1807                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  index of the item.</dd>
1808                                 
1809                                 </dl>
1810                         
1811                         
1812                         
1813
1814                     
1815                     
1816                      
1817                     </div>                    
1818                 </div>
1819
1820             </td>
1821             <td class="msource">
1822                 
1823                         Roo.util.MixedCollection
1824                 &nbsp;
1825             </td>
1826         </tr>
1827         
1828           
1829           <tr class="method-row config-row-alt0 expandable notInherited">
1830             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1831            
1832            
1833             <td class="sig">
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>
1837                                 
1838                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>) 
1839                         
1840                                 
1841                                          : 
1842                                         
1843                                                 
1844                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1845                                         
1846                                         
1847                                         
1848                                 
1849                         
1850                 </div>
1851                 <div class="mdesc">
1852                 
1853                    <div class="short">Returns index within the collection of the passed key.</div> 
1854                  
1855                  
1856                  
1857                     <div class="long">
1858                         
1859                                 Returns index within the collection of the passed key.
1860                     
1861                                 
1862                         
1863                         
1864                         
1865                         
1866                                 <dl class="detailList">
1867                                 <dt class="heading">Parameters:</dt>
1868                                 
1869                                         <dt>
1870                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
1871                                                 
1872                                         </dt>
1873                                         <dd>The key to find the index of.</dd>
1874                                 
1875                                 </dl>
1876                         
1877                         
1878                         
1879                         
1880                         
1881                                 <dl class="detailList">
1882                                 <dt class="heading">Returns:</dt>
1883                                 
1884                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  index of the key.</dd>
1885                                 
1886                                 </dl>
1887                         
1888                         
1889                         
1890
1891                     
1892                     
1893                      
1894                     </div>                    
1895                 </div>
1896
1897             </td>
1898             <td class="msource">
1899                 
1900                         Roo.util.MixedCollection
1901                 &nbsp;
1902             </td>
1903         </tr>
1904         
1905           
1906           <tr class="method-row config-row-alt1 expandable notInherited">
1907             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1908            
1909            
1910             <td class="sig">
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>
1914                                 
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>) 
1916                         
1917                                 
1918                                          : 
1919                                         
1920                                                 
1921                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1922                                         
1923                                         
1924                                         
1925                                 
1926                         
1927                 </div>
1928                 <div class="mdesc">
1929                 
1930                    <div class="short">Inserts an item at the specified index in the collection.</div> 
1931                  
1932                  
1933                  
1934                     <div class="long">
1935                         
1936                                 Inserts an item at the specified index in the collection.
1937                     
1938                                 
1939                         
1940                         
1941                         
1942                         
1943                                 <dl class="detailList">
1944                                 <dt class="heading">Parameters:</dt>
1945                                 
1946                                         <dt>
1947                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
1948                                                 
1949                                         </dt>
1950                                         <dd>The index to insert the item at.</dd>
1951                                 
1952                                         <dt>
1953                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
1954                                                 
1955                                         </dt>
1956                                         <dd>The key to associate with the new item, or the item itself.</dd>
1957                                 
1958                                         <dt>
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>
1960                                                 
1961                                         </dt>
1962                                         <dd>(optional) If the second parameter was a key, the new item.</dd>
1963                                 
1964                                 </dl>
1965                         
1966                         
1967                         
1968                         
1969                         
1970                                 <dl class="detailList">
1971                                 <dt class="heading">Returns:</dt>
1972                                 
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>
1974                                 
1975                                 </dl>
1976                         
1977                         
1978                         
1979
1980                     
1981                     
1982                      
1983                     </div>                    
1984                 </div>
1985
1986             </td>
1987             <td class="msource">
1988                 
1989                         Roo.util.MixedCollection
1990                 &nbsp;
1991             </td>
1992         </tr>
1993         
1994           
1995           <tr class="method-row config-row-alt0 expandable notInherited">
1996             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1997            
1998            
1999             <td class="sig">
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>
2003                                 
2004                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>) 
2005                         
2006                                 
2007                                          : 
2008                                         
2009                                                 
2010                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2011                                         
2012                                         
2013                                         
2014                                 
2015                         
2016                 </div>
2017                 <div class="mdesc">
2018                 
2019                    <div class="short">Returns the item associated with the passed key OR index.</div> 
2020                  
2021                  
2022                  
2023                     <div class="long">
2024                         
2025                                 Returns the item associated with the passed key OR index. Key has priority over index.
2026                     
2027                                 
2028                         
2029                         
2030                         
2031                         
2032                                 <dl class="detailList">
2033                                 <dt class="heading">Parameters:</dt>
2034                                 
2035                                         <dt>
2036                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span>  <b>key</b>
2037                                                 
2038                                         </dt>
2039                                         <dd>The key or index of the item.</dd>
2040                                 
2041                                 </dl>
2042                         
2043                         
2044                         
2045                         
2046                         
2047                                 <dl class="detailList">
2048                                 <dt class="heading">Returns:</dt>
2049                                 
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>
2051                                 
2052                                 </dl>
2053                         
2054                         
2055                         
2056
2057                     
2058                     
2059                      
2060                     </div>                    
2061                 </div>
2062
2063             </td>
2064             <td class="msource">
2065                 
2066                         Roo.util.MixedCollection
2067                 &nbsp;
2068             </td>
2069         </tr>
2070         
2071           
2072           <tr class="method-row config-row-alt1 expandable notInherited">
2073             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2074            
2075            
2076             <td class="sig">
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>
2080                                 
2081                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
2082                         
2083                                 
2084                                          : 
2085                                         
2086                                                 
2087                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2088                                         
2089                                         
2090                                         
2091                                 
2092                         
2093                 </div>
2094                 <div class="mdesc">
2095                 
2096                    <div class="short">Returns the item at the specified index.</div> 
2097                  
2098                  
2099                  
2100                     <div class="long">
2101                         
2102                                 Returns the item at the specified index.
2103                     
2104                                 
2105                         
2106                         
2107                         
2108                         
2109                                 <dl class="detailList">
2110                                 <dt class="heading">Parameters:</dt>
2111                                 
2112                                         <dt>
2113                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
2114                                                 
2115                                         </dt>
2116                                         <dd>The index of the item.</dd>
2117                                 
2118                                 </dl>
2119                         
2120                         
2121                         
2122                         
2123                         
2124                                 <dl class="detailList">
2125                                 <dt class="heading">Returns:</dt>
2126                                 
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>
2128                                 
2129                                 </dl>
2130                         
2131                         
2132                         
2133
2134                     
2135                     
2136                      
2137                     </div>                    
2138                 </div>
2139
2140             </td>
2141             <td class="msource">
2142                 
2143                         Roo.util.MixedCollection
2144                 &nbsp;
2145             </td>
2146         </tr>
2147         
2148           
2149           <tr class="method-row config-row-alt0 expandable notInherited">
2150             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2151            
2152            
2153             <td class="sig">
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>
2157                                 
2158                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>key</i></B>) 
2159                         
2160                                 
2161                                          : 
2162                                         
2163                                                 
2164                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2165                                         
2166                                         
2167                                         
2168                                 
2169                         
2170                 </div>
2171                 <div class="mdesc">
2172                 
2173                    <div class="short">Returns the item associated with the passed key.</div> 
2174                  
2175                  
2176                  
2177                     <div class="long">
2178                         
2179                                 Returns the item associated with the passed key.
2180                     
2181                                 
2182                         
2183                         
2184                         
2185                         
2186                                 <dl class="detailList">
2187                                 <dt class="heading">Parameters:</dt>
2188                                 
2189                                         <dt>
2190                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span>  <b>key</b>
2191                                                 
2192                                         </dt>
2193                                         <dd>The key of the item.</dd>
2194                                 
2195                                 </dl>
2196                         
2197                         
2198                         
2199                         
2200                         
2201                                 <dl class="detailList">
2202                                 <dt class="heading">Returns:</dt>
2203                                 
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>
2205                                 
2206                                 </dl>
2207                         
2208                         
2209                         
2210
2211                     
2212                     
2213                      
2214                     </div>                    
2215                 </div>
2216
2217             </td>
2218             <td class="msource">
2219                 
2220                         Roo.util.MixedCollection
2221                 &nbsp;
2222             </td>
2223         </tr>
2224         
2225           
2226           <tr class="method-row config-row-alt1 expandable notInherited">
2227             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2228            
2229            
2230             <td class="sig">
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>
2234                                 
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>) 
2236                         
2237                                 
2238                         
2239                 </div>
2240                 <div class="mdesc">
2241                 
2242                    <div class="short">Sorts this collection by keys</div> 
2243                  
2244                  
2245                  
2246                     <div class="long">
2247                         
2248                                 Sorts this collection by keys
2249                     
2250                                 
2251                         
2252                         
2253                         
2254                         
2255                                 <dl class="detailList">
2256                                 <dt class="heading">Parameters:</dt>
2257                                 
2258                                         <dt>
2259                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>direction</b>
2260                                                 
2261                                         </dt>
2262                                         <dd>(optional) "ASC" or "DESC"</dd>
2263                                 
2264                                         <dt>
2265                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
2266                                                 
2267                                         </dt>
2268                                         <dd>(optional) a comparison function (defaults to case insensitive string)</dd>
2269                                 
2270                                 </dl>
2271                         
2272                         
2273                         
2274                         
2275                         
2276                         
2277                         
2278
2279                     
2280                     
2281                      
2282                     </div>                    
2283                 </div>
2284
2285             </td>
2286             <td class="msource">
2287                 
2288                         Roo.util.MixedCollection
2289                 &nbsp;
2290             </td>
2291         </tr>
2292         
2293           
2294           <tr class="method-row config-row-alt0 expandable notInherited">
2295             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2296            
2297            
2298             <td class="sig">
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>
2302                                 
2303                                  () 
2304                         
2305                                 
2306                                          : 
2307                                         
2308                                                 
2309                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2310                                         
2311                                         
2312                                         
2313                                 
2314                         
2315                 </div>
2316                 <div class="mdesc">
2317                 
2318                    <div class="short">Returns the last item in the collection.</div> 
2319                  
2320                  
2321                  
2322                     <div class="long">
2323                         
2324                                 Returns the last item in the collection.
2325                     
2326                                 
2327                         
2328                         
2329                         
2330                         
2331                         
2332                         
2333                         
2334                         
2335                                 <dl class="detailList">
2336                                 <dt class="heading">Returns:</dt>
2337                                 
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>
2339                                 
2340                                 </dl>
2341                         
2342                         
2343                         
2344
2345                     
2346                     
2347                      
2348                     </div>                    
2349                 </div>
2350
2351             </td>
2352             <td class="msource">
2353                 
2354                         Roo.util.MixedCollection
2355                 &nbsp;
2356             </td>
2357         </tr>
2358         
2359           
2360           <tr class="method-row config-row-alt1 expandable">
2361             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2362            
2363            
2364             <td class="sig">
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>
2368                                 
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>) 
2370                         
2371                                 
2372                         
2373                 </div>
2374                 <div class="mdesc">
2375                 
2376                    <div class="short">Appends an event handler to this element (shorthand for addListener)</div> 
2377                  
2378                  
2379                  
2380                     <div class="long">
2381                         
2382                                 Appends an event handler to this element (shorthand for addListener)
2383                     
2384                                 
2385                         
2386                         
2387                         
2388                         
2389                                 <dl class="detailList">
2390                                 <dt class="heading">Parameters:</dt>
2391                                 
2392                                         <dt>
2393                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2394                                                 
2395                                         </dt>
2396                                         <dd>The type of event to listen for</dd>
2397                                 
2398                                         <dt>
2399                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
2400                                                 
2401                                         </dt>
2402                                         <dd>The method the event invokes</dd>
2403                                 
2404                                         <dt>
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>
2406                                                 
2407                                         </dt>
2408                                         <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2409                                 
2410                                         <dt>
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>
2412                                                 
2413                                         </dt>
2414                                         <dd>(optional)</dd>
2415                                 
2416                                 </dl>
2417                         
2418                         
2419                         
2420                         
2421                         
2422                         
2423                         
2424
2425                     
2426                     
2427                      
2428                     </div>                    
2429                 </div>
2430
2431             </td>
2432             <td class="msource">
2433                 
2434                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2435                 &nbsp;
2436             </td>
2437         </tr>
2438         
2439           
2440           <tr class="method-row config-row-alt0 expandable">
2441             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2442            
2443            
2444             <td class="sig">
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>
2448                                 
2449                                  () 
2450                         
2451                                 
2452                         
2453                 </div>
2454                 <div class="mdesc">
2455                 
2456                    <div class="short">Removes all listeners for this object</div> 
2457                  
2458                  
2459                  
2460                     <div class="long">
2461                         
2462                                 Removes all listeners for this object
2463                     
2464                                 
2465                         
2466                         
2467                         
2468                         
2469                         
2470                         
2471                         
2472                         
2473                         
2474                         
2475
2476                     
2477                     
2478                      
2479                     </div>                    
2480                 </div>
2481
2482             </td>
2483             <td class="msource">
2484                 
2485                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2486                 &nbsp;
2487             </td>
2488         </tr>
2489         
2490           
2491           <tr class="method-row config-row-alt1 expandable notInherited">
2492             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2493            
2494            
2495             <td class="sig">
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>
2499                                 
2500                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>o</i></B>) 
2501                         
2502                                 
2503                                          : 
2504                                         
2505                                                 
2506                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2507                                         
2508                                         
2509                                         
2510                                 
2511                         
2512                 </div>
2513                 <div class="mdesc">
2514                 
2515                    <div class="short">Removed an item from the collection.</div> 
2516                  
2517                  
2518                  
2519                     <div class="long">
2520                         
2521                                 Removed an item from the collection.
2522                     
2523                                 
2524                         
2525                         
2526                         
2527                         
2528                                 <dl class="detailList">
2529                                 <dt class="heading">Parameters:</dt>
2530                                 
2531                                         <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>
2533                                                 
2534                                         </dt>
2535                                         <dd>The item to remove.</dd>
2536                                 
2537                                 </dl>
2538                         
2539                         
2540                         
2541                         
2542                         
2543                                 <dl class="detailList">
2544                                 <dt class="heading">Returns:</dt>
2545                                 
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>
2547                                 
2548                                 </dl>
2549                         
2550                         
2551                         
2552
2553                     
2554                     
2555                      
2556                     </div>                    
2557                 </div>
2558
2559             </td>
2560             <td class="msource">
2561                 
2562                         Roo.util.MixedCollection
2563                 &nbsp;
2564             </td>
2565         </tr>
2566         
2567           
2568           <tr class="method-row config-row-alt0 expandable notInherited">
2569             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2570            
2571            
2572             <td class="sig">
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>
2576                                 
2577                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
2578                         
2579                                 
2580                         
2581                 </div>
2582                 <div class="mdesc">
2583                 
2584                    <div class="short">Remove an item from a specified index in the collection.</div> 
2585                  
2586                  
2587                  
2588                     <div class="long">
2589                         
2590                                 Remove an item from a specified index in the collection.
2591                     
2592                                 
2593                         
2594                         
2595                         
2596                         
2597                                 <dl class="detailList">
2598                                 <dt class="heading">Parameters:</dt>
2599                                 
2600                                         <dt>
2601                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
2602                                                 
2603                                         </dt>
2604                                         <dd>The index within the collection of the item to remove.</dd>
2605                                 
2606                                 </dl>
2607                         
2608                         
2609                         
2610                         
2611                         
2612                         
2613                         
2614
2615                     
2616                     
2617                      
2618                     </div>                    
2619                 </div>
2620
2621             </td>
2622             <td class="msource">
2623                 
2624                         Roo.util.MixedCollection
2625                 &nbsp;
2626             </td>
2627         </tr>
2628         
2629           
2630           <tr class="method-row config-row-alt1 expandable notInherited">
2631             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2632            
2633            
2634             <td class="sig">
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>
2638                                 
2639                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>) 
2640                         
2641                                 
2642                         
2643                 </div>
2644                 <div class="mdesc">
2645                 
2646                    <div class="short">Removed an item associated with the passed key fom the collection.</div> 
2647                  
2648                  
2649                  
2650                     <div class="long">
2651                         
2652                                 Removed an item associated with the passed key fom the collection.
2653                     
2654                                 
2655                         
2656                         
2657                         
2658                         
2659                                 <dl class="detailList">
2660                                 <dt class="heading">Parameters:</dt>
2661                                 
2662                                         <dt>
2663                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
2664                                                 
2665                                         </dt>
2666                                         <dd>The key of the item to remove.</dd>
2667                                 
2668                                 </dl>
2669                         
2670                         
2671                         
2672                         
2673                         
2674                         
2675                         
2676
2677                     
2678                     
2679                      
2680                     </div>                    
2681                 </div>
2682
2683             </td>
2684             <td class="msource">
2685                 
2686                         Roo.util.MixedCollection
2687                 &nbsp;
2688             </td>
2689         </tr>
2690         
2691           
2692           <tr class="method-row config-row-alt0 expandable">
2693             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2694            
2695            
2696             <td class="sig">
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>
2700                                 
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>) 
2702                         
2703                                 
2704                         
2705                 </div>
2706                 <div class="mdesc">
2707                 
2708                    <div class="short">Removes a listener</div> 
2709                  
2710                  
2711                  
2712                     <div class="long">
2713                         
2714                                 Removes a listener
2715                     
2716                                 
2717                         
2718                         
2719                         
2720                         
2721                                 <dl class="detailList">
2722                                 <dt class="heading">Parameters:</dt>
2723                                 
2724                                         <dt>
2725                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2726                                                 
2727                                         </dt>
2728                                         <dd>The type of event to listen for</dd>
2729                                 
2730                                         <dt>
2731                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
2732                                                 
2733                                         </dt>
2734                                         <dd>The handler to remove</dd>
2735                                 
2736                                         <dt>
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>
2738                                                 
2739                                         </dt>
2740                                         <dd>(optional) The scope (this object) for the handler</dd>
2741                                 
2742                                 </dl>
2743                         
2744                         
2745                         
2746                         
2747                         
2748                         
2749                         
2750
2751                     
2752                     
2753                      
2754                     </div>                    
2755                 </div>
2756
2757             </td>
2758             <td class="msource">
2759                 
2760                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2761                 &nbsp;
2762             </td>
2763         </tr>
2764         
2765           
2766           <tr class="method-row config-row-alt1 expandable notInherited">
2767             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2768            
2769            
2770             <td class="sig">
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>
2774                                 
2775                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>key</i></B>, <B><i>o</i></B>) 
2776                         
2777                                 
2778                                          : 
2779                                         
2780                                                 
2781                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
2782                                         
2783                                         
2784                                         
2785                                 
2786                         
2787                 </div>
2788                 <div class="mdesc">
2789                 
2790                    <div class="short">Replaces an item in the collection.</div> 
2791                  
2792                  
2793                  
2794                     <div class="long">
2795                         
2796                                 Replaces an item in the collection.
2797                     
2798                                 
2799                         
2800                         
2801                         
2802                         
2803                                 <dl class="detailList">
2804                                 <dt class="heading">Parameters:</dt>
2805                                 
2806                                         <dt>
2807                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>key</b>
2808                                                 
2809                                         </dt>
2810                                         <dd>The key associated with the item to replace, or the item to replace.</dd>
2811                                 
2812                                         <dt>
2813                                                  <b>o</b>
2814                                                 
2815                                         </dt>
2816                                         <dd>{Object} o (optional) If the first parameter passed was a key, the item to associate with that key.</dd>
2817                                 
2818                                 </dl>
2819                         
2820                         
2821                         
2822                         
2823                         
2824                                 <dl class="detailList">
2825                                 <dt class="heading">Returns:</dt>
2826                                 
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>
2828                                 
2829                                 </dl>
2830                         
2831                         
2832                         
2833
2834                     
2835                     
2836                      
2837                     </div>                    
2838                 </div>
2839
2840             </td>
2841             <td class="msource">
2842                 
2843                         Roo.util.MixedCollection
2844                 &nbsp;
2845             </td>
2846         </tr>
2847         
2848           
2849           <tr class="method-row config-row-alt0 expandable notInherited">
2850             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2851            
2852            
2853             <td class="sig">
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>
2857                                 
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>) 
2859                         
2860                                 
2861                         
2862                 </div>
2863                 <div class="mdesc">
2864                 
2865                    <div class="short">Sorts this collection with the passed comparison function</div> 
2866                  
2867                  
2868                  
2869                     <div class="long">
2870                         
2871                                 Sorts this collection with the passed comparison function
2872                     
2873                                 
2874                         
2875                         
2876                         
2877                         
2878                                 <dl class="detailList">
2879                                 <dt class="heading">Parameters:</dt>
2880                                 
2881                                         <dt>
2882                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>direction</b>
2883                                                 
2884                                         </dt>
2885                                         <dd>(optional) "ASC" or "DESC"</dd>
2886                                 
2887                                         <dt>
2888                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
2889                                                 
2890                                         </dt>
2891                                         <dd>(optional) comparison function</dd>
2892                                 
2893                                 </dl>
2894                         
2895                         
2896                         
2897                         
2898                         
2899                         
2900                         
2901
2902                     
2903                     
2904                      
2905                     </div>                    
2906                 </div>
2907
2908             </td>
2909             <td class="msource">
2910                 
2911                         Roo.util.MixedCollection
2912                 &nbsp;
2913             </td>
2914         </tr>
2915         
2916           
2917           <tr class="method-row config-row-alt1 expandable">
2918             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2919            
2920            
2921             <td class="sig">
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>
2925                                 
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>) 
2927                         
2928                                 
2929                         
2930                 </div>
2931                 <div class="mdesc">
2932                 
2933                    <div class="short">Removes a listener (shorthand for removeListener)</div> 
2934                  
2935                  
2936                  
2937                     <div class="long">
2938                         
2939                                 Removes a listener (shorthand for removeListener)
2940                     
2941                                 
2942                         
2943                         
2944                         
2945                         
2946                                 <dl class="detailList">
2947                                 <dt class="heading">Parameters:</dt>
2948                                 
2949                                         <dt>
2950                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2951                                                 
2952                                         </dt>
2953                                         <dd>The type of event to listen for</dd>
2954                                 
2955                                         <dt>
2956                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
2957                                                 
2958                                         </dt>
2959                                         <dd>The handler to remove</dd>
2960                                 
2961                                         <dt>
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>
2963                                                 
2964                                         </dt>
2965                                         <dd>(optional) The scope (this object) for the handler</dd>
2966                                 
2967                                 </dl>
2968                         
2969                         
2970                         
2971                         
2972                         
2973                         
2974                         
2975
2976                     
2977                     
2978                      
2979                     </div>                    
2980                 </div>
2981
2982             </td>
2983             <td class="msource">
2984                 
2985                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2986                 &nbsp;
2987             </td>
2988         </tr>
2989         
2990                                                        
2991     </table>
2992
2993   
2994   <!-- ============================== events summary / details ======================== -->
2995   
2996   
2997   <a id="Roo.util.MixedCollection-events"></a>
2998     
2999   
3000         
3001    
3002   
3003     
3004     
3005     
3006       <table cellspacing="0" class="member-table">
3007                 <caption>Events</caption>
3008               <thead>
3009                 <tr>
3010                     <th class="sig-header" colspan="2">Event</th>            
3011                     <th class="msource-header">Defined By</th>
3012
3013                 </tr>
3014               </thead>  
3015         
3016         
3017          
3018         
3019         
3020           <tr class="method-row expandable config-row-alt0 notInherited">
3021             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3022             
3023             <td class="sig">
3024                 <a id="Roo.util.MixedCollection-event-*add"></a>
3025                 
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>) 
3028                 
3029                 </div>
3030
3031                 <div class="mdesc">
3032
3033                    <div class="short">Fires when an item is added to the collection.
3034                    
3035                 </div> 
3036                     
3037                     <div class="long">
3038                     
3039                         Fires when an item is added to the collection.
3040                     
3041                         
3042                         
3043                 
3044                         
3045                                 <dl class="detailList">
3046                                 <dt class="heading">Parameters:</dt>
3047                                 
3048                                         <dt>
3049                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3050                                                 
3051                                         </dt>
3052                                         <dd>The index at which the item was added.</dd>
3053                                 
3054                                         <dt>
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>
3056                                                 
3057                                         </dt>
3058                                         <dd>The item added.</dd>
3059                                 
3060                                         <dt>
3061                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3062                                                 
3063                                         </dt>
3064                                         <dd>The key associated with the added item.</dd>
3065                                 
3066                                 </dl>
3067                         
3068                         
3069                         
3070                         
3071                         
3072                         
3073                         
3074
3075                     
3076                     
3077                      
3078                     </div>                    
3079                 </div>
3080
3081             </td>
3082             <td class="msource">
3083                 Roo.util.MixedCollection
3084             </td>
3085         </tr>
3086         
3087           <tr class="method-row expandable config-row-alt1 notInherited">
3088             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3089             
3090             <td class="sig">
3091                 <a id="Roo.util.MixedCollection-event-*clear"></a>
3092                 
3093                <div class="fixedFont">
3094                 <b class="itemname">clear</b> () 
3095                 
3096                 </div>
3097
3098                 <div class="mdesc">
3099
3100                    <div class="short">Fires when the collection is cleared.
3101                    
3102                 </div> 
3103                     
3104                     <div class="long">
3105                     
3106                         Fires when the collection is cleared.
3107                     
3108                         
3109                         
3110                 
3111                         
3112                         
3113                         
3114                         
3115                         
3116                         
3117                         
3118
3119                     
3120                     
3121                      
3122                     </div>                    
3123                 </div>
3124
3125             </td>
3126             <td class="msource">
3127                 Roo.util.MixedCollection
3128             </td>
3129         </tr>
3130         
3131           <tr class="method-row expandable config-row-alt0 notInherited">
3132             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3133             
3134             <td class="sig">
3135                 <a id="Roo.util.MixedCollection-event-*remove"></a>
3136                 
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>) 
3139                 
3140                 </div>
3141
3142                 <div class="mdesc">
3143
3144                    <div class="short">Fires when an item is removed from the collection.
3145                    
3146                 </div> 
3147                     
3148                     <div class="long">
3149                     
3150                         Fires when an item is removed from the collection.
3151                     
3152                         
3153                         
3154                 
3155                         
3156                                 <dl class="detailList">
3157                                 <dt class="heading">Parameters:</dt>
3158                                 
3159                                         <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>
3161                                                 
3162                                         </dt>
3163                                         <dd>The item being removed.</dd>
3164                                 
3165                                         <dt>
3166                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3167                                                 
3168                                         </dt>
3169                                         <dd>(optional) The key associated with the removed item.</dd>
3170                                 
3171                                 </dl>
3172                         
3173                         
3174                         
3175                         
3176                         
3177                         
3178                         
3179
3180                     
3181                     
3182                      
3183                     </div>                    
3184                 </div>
3185
3186             </td>
3187             <td class="msource">
3188                 Roo.util.MixedCollection
3189             </td>
3190         </tr>
3191         
3192           <tr class="method-row expandable config-row-alt1 notInherited">
3193             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3194             
3195             <td class="sig">
3196                 <a id="Roo.util.MixedCollection-event-*replace"></a>
3197                 
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>) 
3200                 
3201                 </div>
3202
3203                 <div class="mdesc">
3204
3205                    <div class="short">Fires when an item is replaced in the collection.
3206                    
3207                 </div> 
3208                     
3209                     <div class="long">
3210                     
3211                         Fires when an item is replaced in the collection.
3212                     
3213                         
3214                         
3215                 
3216                         
3217                                 <dl class="detailList">
3218                                 <dt class="heading">Parameters:</dt>
3219                                 
3220                                         <dt>
3221                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>key</b>
3222                                                 
3223                                         </dt>
3224                                         <dd>he key associated with the new added.</dd>
3225                                 
3226                                         <dt>
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>
3228                                                 
3229                                         </dt>
3230                                         <dd>The item being replaced.</dd>
3231                                 
3232                                         <dt>
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>
3234                                                 
3235                                         </dt>
3236                                         <dd>The new item.</dd>
3237                                 
3238                                 </dl>
3239                         
3240                         
3241                         
3242                         
3243                         
3244                         
3245                         
3246
3247                     
3248                     
3249                      
3250                     </div>                    
3251                 </div>
3252
3253             </td>
3254             <td class="msource">
3255                 Roo.util.MixedCollection
3256             </td>
3257         </tr>
3258         
3259                                                        
3260     </table>
3261
3262   
3263   
3264   
3265  
3266 <!-- ============================== footer ================================= -->
3267                 <div class="fineprint" style="clear:both">
3268                         
3269                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Tue Jul 27 2010 11:05:09 GMT+0800 (HKT)
3270                         Based on 
3271                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
3272                 </div>
3273         </body>
3274 </html>