1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.tree.DefaultSelectionModel</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.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>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.tree.DefaultSelectionModel
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.tree.DefaultSelectionModel
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo.tree</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_tree_TreeSelectionModel.js.html">Roo/tree/TreeSelectionModel.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">DefaultSelectionModel</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 The default single selection for a TreePanel.
89 <!-- ============================== Class comment block... ========================== -->
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>
95 <iframe frameborder="0" id="comments-Roo.tree" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.tree.DefaultSelectionModel.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.tree.DefaultSelectionModel-configs"></a>
111 <table cellspacing="0" class="member-table">
112 <caption class="Empty">Config Options - Has None</caption>
126 <!-- ============================== public properties ==================== -->
130 <a id="Roo.tree.DefaultSelectionModel-props"></a>
136 <table cellspacing="0" class="member-table">
137 <caption class="Empty">Public Properties - Has None</caption>
143 <!-- ============================== methods summary / details ======================== -->
146 <a id="Roo.tree.DefaultSelectionModel-methods"></a>
147 <!-- constructor?? -->
154 <!-- then dynamics first -->
161 <table cellspacing="0" class="member-table">
162 <caption>Public Methods</caption>
164 <th class="sig-header" colspan="2">Method</th>
165 <th class="msource-header">Defined By</th>
175 <tr class="method-row config-row-alt0 notInherited">
176 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
192 <div class="short">Create a new Roo.tree.DefaultSelectionModel</div>
199 Create a new Roo.tree.DefaultSelectionModel
222 <tr class="method-row config-row-alt1 expandable notInherited">
223 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
238 <div class="short">Clear all selections</div>
267 Roo.tree.DefaultSelectionModel
273 <tr class="method-row config-row-alt0 expandable notInherited">
274 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
297 <div class="short">Get the selected node</div>
303 Get the selected node
314 <dl class="detailList">
315 <dt class="heading">Returns:</dt>
317 <dd><span class="fixedFont">TreeNode</span> The selected node</dd>
333 Roo.tree.DefaultSelectionModel
339 <tr class="method-row config-row-alt1 expandable notInherited">
340 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
348 (TreeNode <B><i>node</i></B>)
354 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
363 <div class="short">Returns true if the node is selected</div>
369 Returns true if the node is selected
376 <dl class="detailList">
377 <dt class="heading">Parameters:</dt>
380 <span class="fixedFont">TreeNode</span> <b>node</b>
383 <dd>The node to check</dd>
391 <dl class="detailList">
392 <dt class="heading">Returns:</dt>
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>
410 Roo.tree.DefaultSelectionModel
416 <tr class="method-row config-row-alt0 expandable notInherited">
417 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
425 (TreeNode <B><i>node</i></B>)
440 <div class="short">Select a node.</div>
453 <dl class="detailList">
454 <dt class="heading">Parameters:</dt>
457 <span class="fixedFont">TreeNode</span> <b>node</b>
460 <dd>The node to select</dd>
468 <dl class="detailList">
469 <dt class="heading">Returns:</dt>
471 <dd><span class="fixedFont">TreeNode</span> The selected node</dd>
487 Roo.tree.DefaultSelectionModel
493 <tr class="method-row config-row-alt1 expandable notInherited">
494 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
517 <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div>
523 Selects the node above the selected node in the tree, intelligently walking the nodes
534 <dl class="detailList">
535 <dt class="heading">Returns:</dt>
537 <dd> TreeNode The new selection</dd>
553 Roo.tree.DefaultSelectionModel
559 <tr class="method-row config-row-alt0 expandable notInherited">
560 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
583 <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div>
589 Selects the node above the selected node in the tree, intelligently walking the nodes
600 <dl class="detailList">
601 <dt class="heading">Returns:</dt>
603 <dd> TreeNode The new selection</dd>
619 Roo.tree.DefaultSelectionModel
625 <tr class="method-row config-row-alt1 expandable notInherited">
626 <td class="micon"><a class="exi" href="#expand"> </a></td>
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>
634 (TreeNode <B><i>node</i></B>)
641 <div class="short">Deselect a node.</div>
654 <dl class="detailList">
655 <dt class="heading">Parameters:</dt>
658 <span class="fixedFont">TreeNode</span> <b>node</b>
661 <dd>The node to unselect</dd>
681 Roo.tree.DefaultSelectionModel
690 <!-- ============================== events summary / details ======================== -->
693 <a id="Roo.tree.DefaultSelectionModel-events"></a>
702 <table cellspacing="0" class="member-table">
703 <caption>Events</caption>
706 <th class="sig-header" colspan="2">Event</th>
707 <th class="msource-header">Defined By</th>
716 <tr class="method-row expandable config-row-alt0 notInherited">
717 <td class="micon"><a class="exi" href="#expand"> </a></td>
720 <a id="Roo.tree.DefaultSelectionModel-event-*beforeselect"></a>
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>)
729 <div class="short">Fires before the selected node changes, return false to cancel the change
735 Fires before the selected node changes, return false to cancel the change
741 <dl class="detailList">
742 <dt class="heading">Parameters:</dt>
745 <span class="fixedFont">DefaultSelectionModel</span> <b>this</b>
751 <span class="fixedFont">TreeNode</span> <b>node</b>
754 <dd>the new selection</dd>
757 <span class="fixedFont">TreeNode</span> <b>node</b>
760 <dd>the old selection</dd>
779 Roo.tree.DefaultSelectionModel
783 <tr class="method-row expandable config-row-alt1 notInherited">
784 <td class="micon"><a class="exi" href="#expand"> </a></td>
787 <a id="Roo.tree.DefaultSelectionModel-event-*selectionchange"></a>
789 <div class="fixedFont">
790 <b class="itemname">selectionchange</b> (DefaultSelectionModel <B><i>this</i></B>, TreeNode <B><i>node</i></B>)
796 <div class="short">Fires when the selected node changes
802 Fires when the selected node changes
808 <dl class="detailList">
809 <dt class="heading">Parameters:</dt>
812 <span class="fixedFont">DefaultSelectionModel</span> <b>this</b>
818 <span class="fixedFont">TreeNode</span> <b>node</b>
821 <dd>the new selection</dd>
840 Roo.tree.DefaultSelectionModel
851 <!-- ============================== footer ================================= -->
852 <div class="fineprint" style="clear:both">
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)
856 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>