docs/symbols/Roo.tree.DefaultSelectionModel.html
[roojs1] / docs / symbols / Roo.tree.DefaultSelectionModel.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.tree.DefaultSelectionModel</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.tree.DefaultSelectionModel-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35         <a class="inner-link" href="#Roo.tree.DefaultSelectionModel-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36         <a class="inner-link" href="#Roo.tree.DefaultSelectionModel-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37         <a class="inner-link" href="#Roo.tree.DefaultSelectionModel-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.tree.DefaultSelectionModel 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.tree.DefaultSelectionModel
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo.tree</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_tree_TreeSelectionModel.js.html">Roo/tree/TreeSelectionModel.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">DefaultSelectionModel</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         The default single selection for a TreePanel.
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.tree.DefaultSelectionModel';">[Add Your comment/notes about this class]</u>
94         <br/>
95         <iframe frameborder="0"  id="comments-Roo.tree" style="border: none;width:100%;" 
96                 src="/blog.php/GtkDjsComments/Roo.tree.DefaultSelectionModel.html"></iframe>
97 </div>
98         
99
100                 
101 <!-- ============================== config options ========================== -->                                               
102                  
103     
104     
105                 
106     <div class="hr"></div>
107     <a id="Roo.tree.DefaultSelectionModel-configs"></a>
108                 
109     
110     
111      <table cellspacing="0" class="member-table">
112       <caption class="Empty">Config Options - Has None</caption>
113      </table>
114     
115     
116      
117                 
118   
119   
120   
121   
122   
123   
124   
125   
126   <!-- ============================== public properties ==================== -->        
127   
128   
129   
130     <a id="Roo.tree.DefaultSelectionModel-props"></a>      
131     
132     
133
134     
135     
136      <table cellspacing="0" class="member-table">
137       <caption class="Empty">Public Properties - Has None</caption>
138      </table>
139     
140     
141      
142     
143   <!-- ============================== methods summary / details ======================== -->
144   
145   
146   <a id="Roo.tree.DefaultSelectionModel-methods"></a>
147         <!-- constructor?? -->
148         
149         <!-- static's first 
150         
151         
152         -->
153         
154         <!-- then dynamics first -->
155         
156   
157   
158     
159     
160     
161       <table cellspacing="0" class="member-table">
162       <caption>Public Methods</caption>
163         <tr>
164             <th class="sig-header" colspan="2">Method</th>            
165             <th class="msource-header">Defined By</th>
166
167         </tr>
168         
169         
170         
171          
172         
173         
174           
175           <tr class="method-row config-row-alt0 notInherited">
176             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
177            
178            
179             <td class="sig">
180                 <a id="Roo.tree-method-DefaultSelectionModel"   name=".DefaultSelectionModel"></a>
181                 <div class="fixedFont">
182                         <span class="attributes">new <B>Roo.tree.</B></span><b class="itemname">DefaultSelectionModel</b>
183                                 
184                                  () 
185                         
186                                 
187                         
188                 </div>
189                 <div class="mdesc">
190                 
191                  
192                         <div class="short">Create a new Roo.tree.DefaultSelectionModel</div> 
193                  
194                  
195                     <div class="long">
196                         
197                         
198                         
199                                 Create a new Roo.tree.DefaultSelectionModel
200                         
201                         
202                         
203                         
204                         
205                         
206                         
207                         
208
209                     
210                     
211                      
212                     </div>                    
213                 </div>
214
215             </td>
216             <td class="msource">
217                 &nbsp;
218             </td>
219         </tr>
220         
221           
222           <tr class="method-row config-row-alt1 expandable notInherited">
223             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
224            
225            
226             <td class="sig">
227                 <a id="Roo.tree.DefaultSelectionModel-method-clearSelections"   name=".clearSelections"></a>
228                 <div class="fixedFont">
229                         <span class="attributes"></span><b class="itemname">clearSelections</b>
230                                 
231                                  () 
232                         
233                                 
234                         
235                 </div>
236                 <div class="mdesc">
237                 
238                    <div class="short">Clear all selections</div> 
239                  
240                  
241                  
242                     <div class="long">
243                         
244                                 Clear all selections
245                     
246                                 
247                         
248                         
249                         
250                         
251                         
252                         
253                         
254                         
255                         
256                         
257
258                     
259                     
260                      
261                     </div>                    
262                 </div>
263
264             </td>
265             <td class="msource">
266                 
267                         Roo.tree.DefaultSelectionModel
268                 &nbsp;
269             </td>
270         </tr>
271         
272           
273           <tr class="method-row config-row-alt0 expandable notInherited">
274             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
275            
276            
277             <td class="sig">
278                 <a id="Roo.tree.DefaultSelectionModel-method-getSelectedNode"   name=".getSelectedNode"></a>
279                 <div class="fixedFont">
280                         <span class="attributes"></span><b class="itemname">getSelectedNode</b>
281                                 
282                                  () 
283                         
284                                 
285                                          : 
286                                         
287                                                 
288                                                 TreeNode
289                                         
290                                         
291                                         
292                                 
293                         
294                 </div>
295                 <div class="mdesc">
296                 
297                    <div class="short">Get the selected node</div> 
298                  
299                  
300                  
301                     <div class="long">
302                         
303                                 Get the selected node
304                     
305                                 
306                         
307                         
308                         
309                         
310                         
311                         
312                         
313                         
314                                 <dl class="detailList">
315                                 <dt class="heading">Returns:</dt>
316                                 
317                                         <dd><span class="fixedFont">TreeNode</span>  The selected node</dd>
318                                 
319                                 </dl>
320                         
321                         
322                         
323
324                     
325                     
326                      
327                     </div>                    
328                 </div>
329
330             </td>
331             <td class="msource">
332                 
333                         Roo.tree.DefaultSelectionModel
334                 &nbsp;
335             </td>
336         </tr>
337         
338           
339           <tr class="method-row config-row-alt1 expandable notInherited">
340             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
341            
342            
343             <td class="sig">
344                 <a id="Roo.tree.DefaultSelectionModel-method-isSelected"   name=".isSelected"></a>
345                 <div class="fixedFont">
346                         <span class="attributes"></span><b class="itemname">isSelected</b>
347                                 
348                                  (TreeNode <B><i>node</i></B>) 
349                         
350                                 
351                                          : 
352                                         
353                                                 
354                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
355                                         
356                                         
357                                         
358                                 
359                         
360                 </div>
361                 <div class="mdesc">
362                 
363                    <div class="short">Returns true if the node is selected</div> 
364                  
365                  
366                  
367                     <div class="long">
368                         
369                                 Returns true if the node is selected
370                     
371                                 
372                         
373                         
374                         
375                         
376                                 <dl class="detailList">
377                                 <dt class="heading">Parameters:</dt>
378                                 
379                                         <dt>
380                                                 <span class="fixedFont">TreeNode</span>  <b>node</b>
381                                                 
382                                         </dt>
383                                         <dd>The node to check</dd>
384                                 
385                                 </dl>
386                         
387                         
388                         
389                         
390                         
391                                 <dl class="detailList">
392                                 <dt class="heading">Returns:</dt>
393                                 
394                                         <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  </dd>
395                                 
396                                 </dl>
397                         
398                         
399                         
400
401                     
402                     
403                      
404                     </div>                    
405                 </div>
406
407             </td>
408             <td class="msource">
409                 
410                         Roo.tree.DefaultSelectionModel
411                 &nbsp;
412             </td>
413         </tr>
414         
415           
416           <tr class="method-row config-row-alt0 expandable notInherited">
417             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
418            
419            
420             <td class="sig">
421                 <a id="Roo.tree.DefaultSelectionModel-method-select"   name=".select"></a>
422                 <div class="fixedFont">
423                         <span class="attributes"></span><b class="itemname">select</b>
424                                 
425                                  (TreeNode <B><i>node</i></B>) 
426                         
427                                 
428                                          : 
429                                         
430                                                 
431                                                 TreeNode
432                                         
433                                         
434                                         
435                                 
436                         
437                 </div>
438                 <div class="mdesc">
439                 
440                    <div class="short">Select a node.</div> 
441                  
442                  
443                  
444                     <div class="long">
445                         
446                                 Select a node.
447                     
448                                 
449                         
450                         
451                         
452                         
453                                 <dl class="detailList">
454                                 <dt class="heading">Parameters:</dt>
455                                 
456                                         <dt>
457                                                 <span class="fixedFont">TreeNode</span>  <b>node</b>
458                                                 
459                                         </dt>
460                                         <dd>The node to select</dd>
461                                 
462                                 </dl>
463                         
464                         
465                         
466                         
467                         
468                                 <dl class="detailList">
469                                 <dt class="heading">Returns:</dt>
470                                 
471                                         <dd><span class="fixedFont">TreeNode</span>  The selected node</dd>
472                                 
473                                 </dl>
474                         
475                         
476                         
477
478                     
479                     
480                      
481                     </div>                    
482                 </div>
483
484             </td>
485             <td class="msource">
486                 
487                         Roo.tree.DefaultSelectionModel
488                 &nbsp;
489             </td>
490         </tr>
491         
492           
493           <tr class="method-row config-row-alt1 expandable notInherited">
494             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
495            
496            
497             <td class="sig">
498                 <a id="Roo.tree.DefaultSelectionModel-method-selectNext"   name=".selectNext"></a>
499                 <div class="fixedFont">
500                         <span class="attributes"></span><b class="itemname">selectNext</b>
501                                 
502                                  () 
503                         
504                                 
505                                          : 
506                                         
507                                                 
508                                                 
509                                         
510                                         
511                                         
512                                 
513                         
514                 </div>
515                 <div class="mdesc">
516                 
517                    <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div> 
518                  
519                  
520                  
521                     <div class="long">
522                         
523                                 Selects the node above the selected node in the tree, intelligently walking the nodes
524                     
525                                 
526                         
527                         
528                         
529                         
530                         
531                         
532                         
533                         
534                                 <dl class="detailList">
535                                 <dt class="heading">Returns:</dt>
536                                 
537                                         <dd> TreeNode The new selection</dd>
538                                 
539                                 </dl>
540                         
541                         
542                         
543
544                     
545                     
546                      
547                     </div>                    
548                 </div>
549
550             </td>
551             <td class="msource">
552                 
553                         Roo.tree.DefaultSelectionModel
554                 &nbsp;
555             </td>
556         </tr>
557         
558           
559           <tr class="method-row config-row-alt0 expandable notInherited">
560             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
561            
562            
563             <td class="sig">
564                 <a id="Roo.tree.DefaultSelectionModel-method-selectPrevious"   name=".selectPrevious"></a>
565                 <div class="fixedFont">
566                         <span class="attributes"></span><b class="itemname">selectPrevious</b>
567                                 
568                                  () 
569                         
570                                 
571                                          : 
572                                         
573                                                 
574                                                 
575                                         
576                                         
577                                         
578                                 
579                         
580                 </div>
581                 <div class="mdesc">
582                 
583                    <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div> 
584                  
585                  
586                  
587                     <div class="long">
588                         
589                                 Selects the node above the selected node in the tree, intelligently walking the nodes
590                     
591                                 
592                         
593                         
594                         
595                         
596                         
597                         
598                         
599                         
600                                 <dl class="detailList">
601                                 <dt class="heading">Returns:</dt>
602                                 
603                                         <dd> TreeNode The new selection</dd>
604                                 
605                                 </dl>
606                         
607                         
608                         
609
610                     
611                     
612                      
613                     </div>                    
614                 </div>
615
616             </td>
617             <td class="msource">
618                 
619                         Roo.tree.DefaultSelectionModel
620                 &nbsp;
621             </td>
622         </tr>
623         
624           
625           <tr class="method-row config-row-alt1 expandable notInherited">
626             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
627            
628            
629             <td class="sig">
630                 <a id="Roo.tree.DefaultSelectionModel-method-unselect"   name=".unselect"></a>
631                 <div class="fixedFont">
632                         <span class="attributes"></span><b class="itemname">unselect</b>
633                                 
634                                  (TreeNode <B><i>node</i></B>) 
635                         
636                                 
637                         
638                 </div>
639                 <div class="mdesc">
640                 
641                    <div class="short">Deselect a node.</div> 
642                  
643                  
644                  
645                     <div class="long">
646                         
647                                 Deselect a node.
648                     
649                                 
650                         
651                         
652                         
653                         
654                                 <dl class="detailList">
655                                 <dt class="heading">Parameters:</dt>
656                                 
657                                         <dt>
658                                                 <span class="fixedFont">TreeNode</span>  <b>node</b>
659                                                 
660                                         </dt>
661                                         <dd>The node to unselect</dd>
662                                 
663                                 </dl>
664                         
665                         
666                         
667                         
668                         
669                         
670                         
671
672                     
673                     
674                      
675                     </div>                    
676                 </div>
677
678             </td>
679             <td class="msource">
680                 
681                         Roo.tree.DefaultSelectionModel
682                 &nbsp;
683             </td>
684         </tr>
685         
686                                                        
687     </table>
688
689   
690   <!-- ============================== events summary / details ======================== -->
691   
692   
693   <a id="Roo.tree.DefaultSelectionModel-events"></a>
694     
695   
696         
697    
698   
699     
700     
701     
702       <table cellspacing="0" class="member-table">
703                 <caption>Events</caption>
704               <thead>
705                 <tr>
706                     <th class="sig-header" colspan="2">Event</th>            
707                     <th class="msource-header">Defined By</th>
708
709                 </tr>
710               </thead>  
711         
712         
713          
714         
715         
716           <tr class="method-row expandable config-row-alt0 notInherited">
717             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
718             
719             <td class="sig">
720                 <a id="Roo.tree.DefaultSelectionModel-event-*beforeselect"></a>
721                 
722                <div class="fixedFont">
723                 <b class="itemname">beforeselect</b> (DefaultSelectionModel <B><i>this</i></B>, TreeNode <B><i>node</i></B>, TreeNode <B><i>node</i></B>) 
724                 
725                 </div>
726
727                 <div class="mdesc">
728
729                    <div class="short">Fires before the selected node changes, return false to cancel the change
730                    
731                 </div> 
732                     
733                     <div class="long">
734                     
735                         Fires before the selected node changes, return false to cancel the change
736                     
737                         
738                         
739                 
740                         
741                                 <dl class="detailList">
742                                 <dt class="heading">Parameters:</dt>
743                                 
744                                         <dt>
745                                                 <span class="fixedFont">DefaultSelectionModel</span> <b>this</b>
746                                                 
747                                         </dt>
748                                         <dd></dd>
749                                 
750                                         <dt>
751                                                 <span class="fixedFont">TreeNode</span> <b>node</b>
752                                                 
753                                         </dt>
754                                         <dd>the new selection</dd>
755                                 
756                                         <dt>
757                                                 <span class="fixedFont">TreeNode</span> <b>node</b>
758                                                 
759                                         </dt>
760                                         <dd>the old selection</dd>
761                                 
762                                 </dl>
763                         
764                         
765                         
766                         
767                         
768                         
769                         
770
771                     
772                     
773                      
774                     </div>                    
775                 </div>
776
777             </td>
778             <td class="msource">
779                 Roo.tree.DefaultSelectionModel
780             </td>
781         </tr>
782         
783           <tr class="method-row expandable config-row-alt1 notInherited">
784             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
785             
786             <td class="sig">
787                 <a id="Roo.tree.DefaultSelectionModel-event-*selectionchange"></a>
788                 
789                <div class="fixedFont">
790                 <b class="itemname">selectionchange</b> (DefaultSelectionModel <B><i>this</i></B>, TreeNode <B><i>node</i></B>) 
791                 
792                 </div>
793
794                 <div class="mdesc">
795
796                    <div class="short">Fires when the selected node changes
797                    
798                 </div> 
799                     
800                     <div class="long">
801                     
802                         Fires when the selected node changes
803                     
804                         
805                         
806                 
807                         
808                                 <dl class="detailList">
809                                 <dt class="heading">Parameters:</dt>
810                                 
811                                         <dt>
812                                                 <span class="fixedFont">DefaultSelectionModel</span> <b>this</b>
813                                                 
814                                         </dt>
815                                         <dd></dd>
816                                 
817                                         <dt>
818                                                 <span class="fixedFont">TreeNode</span> <b>node</b>
819                                                 
820                                         </dt>
821                                         <dd>the new selection</dd>
822                                 
823                                 </dl>
824                         
825                         
826                         
827                         
828                         
829                         
830                         
831
832                     
833                     
834                      
835                     </div>                    
836                 </div>
837
838             </td>
839             <td class="msource">
840                 Roo.tree.DefaultSelectionModel
841             </td>
842         </tr>
843         
844                                                        
845     </table>
846
847   
848   
849   
850  
851 <!-- ============================== footer ================================= -->
852                 <div class="fineprint" style="clear:both">
853                         
854                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Fri Jul 16 2010 16:43:13 GMT+0800 (HKT)
855                         Based on 
856                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
857                 </div>
858         </body>
859 </html>