1 | <div class="body-wrap"> |
---|
2 | <div class="top-tools"> |
---|
3 | <a class="inner-link" href="#Ext.tree.DefaultSelectionModel-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> |
---|
4 | <a class="inner-link" href="#Ext.tree.DefaultSelectionModel-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> |
---|
5 | <a class="inner-link" href="#Ext.tree.DefaultSelectionModel-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> |
---|
6 | <a class="inner-link" href="#Ext.tree.DefaultSelectionModel-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> |
---|
7 | <a class="bookmark" href="../docs/?class=Ext.tree.DefaultSelectionModel"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> |
---|
8 | </div> |
---|
9 | <div class="inheritance res-block"> |
---|
10 | <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a> |
---|
11 | <img src="resources/elbow-end.gif"/>DefaultSelectionModel</pre></div> |
---|
12 | <h1>Class Ext.tree.DefaultSelectionModel</h1> |
---|
13 | <table cellspacing="0"> |
---|
14 | <tr><td class="label">Package:</td><td class="hd-info">Ext.tree</td></tr> |
---|
15 | <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/TreeSelectionModel.js" target="_blank">TreeSelectionModel.js</a></td></tr> |
---|
16 | <tr><td class="label">Class:</td><td class="hd-info">DefaultSelectionModel</td></tr> |
---|
17 | <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr> |
---|
18 | </table> |
---|
19 | <div class="description"> |
---|
20 | * |
---|
21 | The default single selection for a TreePanel. </div> |
---|
22 | |
---|
23 | <div class="hr"></div> |
---|
24 | <a id="Ext.tree.DefaultSelectionModel-configs"></a> |
---|
25 | <h2>Config Options</h2> |
---|
26 | <table cellspacing="0" class="member-table"> |
---|
27 | <tr> |
---|
28 | <th class="sig-header" colspan="2">Config Options</th> |
---|
29 | <th class="msource-header">Defined By</th> |
---|
30 | </tr> |
---|
31 | <tr class="config-row inherited expandable"> |
---|
32 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
33 | <td class="sig"> |
---|
34 | <a id="Ext.tree.DefaultSelectionModel-listeners"></a> |
---|
35 | <b>listeners</b> : Object <div class="mdesc"> |
---|
36 | <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div> |
---|
37 | <div class="long"> |
---|
38 | (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div> |
---|
39 | </div> |
---|
40 | </td> |
---|
41 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td> |
---|
42 | </tr> |
---|
43 | </table> |
---|
44 | <a id="Ext.tree.DefaultSelectionModel-props"></a> |
---|
45 | <h2>Public Properties</h2> |
---|
46 | <div class="no-members">This class has no public properties.</div> <a id="Ext.tree.DefaultSelectionModel-methods"></a> |
---|
47 | <h2>Public Methods</h2> |
---|
48 | <table cellspacing="0" class="member-table"> |
---|
49 | <tr> |
---|
50 | <th class="sig-header" colspan="2">Method</th> |
---|
51 | <th class="msource-header">Defined By</th> |
---|
52 | </tr> |
---|
53 | <tr class="method-row inherited expandable"> |
---|
54 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
55 | <td class="sig"> |
---|
56 | <a id="Ext.tree.DefaultSelectionModel-addEvents"></a> |
---|
57 | <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc"> |
---|
58 | <div class="short">Used to define events on this Observable</div> |
---|
59 | <div class="long"> |
---|
60 | Used to define events on this Observable <div class="mdetail-params"> |
---|
61 | <strong>Parameters:</strong> |
---|
62 | <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul> |
---|
63 | <strong>Returns:</strong> |
---|
64 | <ul> |
---|
65 | <li><code>void</code></li> |
---|
66 | </ul> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | </td> |
---|
71 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td> |
---|
72 | </tr> |
---|
73 | <tr class="method-row inherited alt expandable"> |
---|
74 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
75 | <td class="sig"> |
---|
76 | <a id="Ext.tree.DefaultSelectionModel-addListener"></a> |
---|
77 | <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
78 | <div class="short">Appends an event handler to this component</div> |
---|
79 | <div class="long"> |
---|
80 | Appends an event handler to this component <div class="mdetail-params"> |
---|
81 | <strong>Parameters:</strong> |
---|
82 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
83 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration |
---|
84 | properties. This may contain any of the following properties:<ul> |
---|
85 | <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li> |
---|
86 | <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li> |
---|
87 | <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li> |
---|
88 | <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed |
---|
89 | by the specified number of milliseconds. If the event fires again within that time, the original |
---|
90 | handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li> |
---|
91 | </ul><br> |
---|
92 | <p> |
---|
93 | <b>Combining Options</b><br> |
---|
94 | Using the options argument, it is possible to combine different types of listeners:<br> |
---|
95 | <br> |
---|
96 | A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId) |
---|
97 | <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, { |
---|
98 | single: true, |
---|
99 | delay: 100, |
---|
100 | forumId: 4 |
---|
101 | });</code></pre> |
---|
102 | <p> |
---|
103 | <b>Attaching multiple handlers in 1 call</b><br> |
---|
104 | The method also allows for a single argument to be passed which is a config object containing properties |
---|
105 | which specify multiple handlers. |
---|
106 | <p> |
---|
107 | <pre><code>foo.on({ |
---|
108 | <em>'click'</em> : { |
---|
109 | fn: <b>this</b>.onClick, |
---|
110 | scope: <b>this</b>, |
---|
111 | delay: 100 |
---|
112 | }, |
---|
113 | <em>'mouseover'</em> : { |
---|
114 | fn: <b>this</b>.onMouseOver, |
---|
115 | scope: <b>this</b> |
---|
116 | }, |
---|
117 | <em>'mouseout'</em> : { |
---|
118 | fn: <b>this</b>.onMouseOut, |
---|
119 | scope: <b>this</b> |
---|
120 | } |
---|
121 | });</code></pre> |
---|
122 | <p> |
---|
123 | Or a shorthand syntax:<br> |
---|
124 | <pre><code>foo.on({ |
---|
125 | <em>'click'</em> : <b>this</b>.onClick, |
---|
126 | <em>'mouseover'</em> : <b>this</b>.onMouseOver, |
---|
127 | <em>'mouseout'</em> : <b>this</b>.onMouseOut, |
---|
128 | scope: <b>this</b> |
---|
129 | });</code></pre></div></li> </ul> |
---|
130 | <strong>Returns:</strong> |
---|
131 | <ul> |
---|
132 | <li><code>void</code></li> |
---|
133 | </ul> |
---|
134 | </div> |
---|
135 | </div> |
---|
136 | </div> |
---|
137 | </td> |
---|
138 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td> |
---|
139 | </tr> |
---|
140 | <tr class="method-row expandable"> |
---|
141 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
142 | <td class="sig"> |
---|
143 | <a id="Ext.tree.DefaultSelectionModel-clearSelections"></a> |
---|
144 | <b>clearSelections</b>() : void <div class="mdesc"> |
---|
145 | <div class="short">Clear all selections</div> |
---|
146 | <div class="long"> |
---|
147 | Clear all selections <div class="mdetail-params"> |
---|
148 | <strong>Parameters:</strong> |
---|
149 | <ul><li>None.</li> </ul> |
---|
150 | <strong>Returns:</strong> |
---|
151 | <ul> |
---|
152 | <li><code>void</code></li> |
---|
153 | </ul> |
---|
154 | </div> |
---|
155 | </div> |
---|
156 | </div> |
---|
157 | </td> |
---|
158 | <td class="msource">DefaultSelectionModel</td> |
---|
159 | </tr> |
---|
160 | <tr class="method-row inherited alt expandable"> |
---|
161 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
162 | <td class="sig"> |
---|
163 | <a id="Ext.tree.DefaultSelectionModel-fireEvent"></a> |
---|
164 | <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc"> |
---|
165 | <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> |
---|
166 | <div class="long"> |
---|
167 | Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params"> |
---|
168 | <strong>Parameters:</strong> |
---|
169 | <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul> |
---|
170 | <strong>Returns:</strong> |
---|
171 | <ul> |
---|
172 | <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li> |
---|
173 | </ul> |
---|
174 | </div> |
---|
175 | </div> |
---|
176 | </div> |
---|
177 | </td> |
---|
178 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td> |
---|
179 | </tr> |
---|
180 | <tr class="method-row expandable"> |
---|
181 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
182 | <td class="sig"> |
---|
183 | <a id="Ext.tree.DefaultSelectionModel-getSelectedNode"></a> |
---|
184 | <b>getSelectedNode</b>() : TreeNode <div class="mdesc"> |
---|
185 | <div class="short">Get the selected node</div> |
---|
186 | <div class="long"> |
---|
187 | Get the selected node <div class="mdetail-params"> |
---|
188 | <strong>Parameters:</strong> |
---|
189 | <ul><li>None.</li> </ul> |
---|
190 | <strong>Returns:</strong> |
---|
191 | <ul> |
---|
192 | <li><code>TreeNode</code><div class="sub-desc">The selected node</div></li> |
---|
193 | </ul> |
---|
194 | </div> |
---|
195 | </div> |
---|
196 | </div> |
---|
197 | </td> |
---|
198 | <td class="msource">DefaultSelectionModel</td> |
---|
199 | </tr> |
---|
200 | <tr class="method-row inherited alt expandable"> |
---|
201 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
202 | <td class="sig"> |
---|
203 | <a id="Ext.tree.DefaultSelectionModel-hasListener"></a> |
---|
204 | <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc"> |
---|
205 | <div class="short">Checks to see if this object has any listeners for a specified event</div> |
---|
206 | <div class="long"> |
---|
207 | Checks to see if this object has any listeners for a specified event <div class="mdetail-params"> |
---|
208 | <strong>Parameters:</strong> |
---|
209 | <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul> |
---|
210 | <strong>Returns:</strong> |
---|
211 | <ul> |
---|
212 | <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li> |
---|
213 | </ul> |
---|
214 | </div> |
---|
215 | </div> |
---|
216 | </div> |
---|
217 | </td> |
---|
218 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td> |
---|
219 | </tr> |
---|
220 | <tr class="method-row expandable"> |
---|
221 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
222 | <td class="sig"> |
---|
223 | <a id="Ext.tree.DefaultSelectionModel-isSelected"></a> |
---|
224 | <b>isSelected</b>( <code>TreeNode node</code> ) : Boolean <div class="mdesc"> |
---|
225 | <div class="short">Returns true if the node is selected</div> |
---|
226 | <div class="long"> |
---|
227 | Returns true if the node is selected <div class="mdetail-params"> |
---|
228 | <strong>Parameters:</strong> |
---|
229 | <ul><li><code>node</code> : TreeNode<div class="sub-desc">The node to check</div></li> </ul> |
---|
230 | <strong>Returns:</strong> |
---|
231 | <ul> |
---|
232 | <li><code>Boolean</code></li> |
---|
233 | </ul> |
---|
234 | </div> |
---|
235 | </div> |
---|
236 | </div> |
---|
237 | </td> |
---|
238 | <td class="msource">DefaultSelectionModel</td> |
---|
239 | </tr> |
---|
240 | <tr class="method-row inherited alt expandable"> |
---|
241 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
242 | <td class="sig"> |
---|
243 | <a id="Ext.tree.DefaultSelectionModel-on"></a> |
---|
244 | <b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
245 | <div class="short">Appends an event handler to this element (shorthand for addListener)</div> |
---|
246 | <div class="long"> |
---|
247 | Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params"> |
---|
248 | <strong>Parameters:</strong> |
---|
249 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
250 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul> |
---|
251 | <strong>Returns:</strong> |
---|
252 | <ul> |
---|
253 | <li><code>void</code></li> |
---|
254 | </ul> |
---|
255 | </div> |
---|
256 | </div> |
---|
257 | </div> |
---|
258 | </td> |
---|
259 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td> |
---|
260 | </tr> |
---|
261 | <tr class="method-row inherited expandable"> |
---|
262 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
263 | <td class="sig"> |
---|
264 | <a id="Ext.tree.DefaultSelectionModel-purgeListeners"></a> |
---|
265 | <b>purgeListeners</b>() : void <div class="mdesc"> |
---|
266 | <div class="short">Removes all listeners for this object</div> |
---|
267 | <div class="long"> |
---|
268 | Removes all listeners for this object <div class="mdetail-params"> |
---|
269 | <strong>Parameters:</strong> |
---|
270 | <ul><li>None.</li> </ul> |
---|
271 | <strong>Returns:</strong> |
---|
272 | <ul> |
---|
273 | <li><code>void</code></li> |
---|
274 | </ul> |
---|
275 | </div> |
---|
276 | </div> |
---|
277 | </div> |
---|
278 | </td> |
---|
279 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td> |
---|
280 | </tr> |
---|
281 | <tr class="method-row inherited alt expandable"> |
---|
282 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
283 | <td class="sig"> |
---|
284 | <a id="Ext.tree.DefaultSelectionModel-relayEvents"></a> |
---|
285 | <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc"> |
---|
286 | <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div> |
---|
287 | <div class="long"> |
---|
288 | Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params"> |
---|
289 | <strong>Parameters:</strong> |
---|
290 | <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li> </ul> |
---|
291 | <strong>Returns:</strong> |
---|
292 | <ul> |
---|
293 | <li><code>void</code></li> |
---|
294 | </ul> |
---|
295 | </div> |
---|
296 | </div> |
---|
297 | </div> |
---|
298 | </td> |
---|
299 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td> |
---|
300 | </tr> |
---|
301 | <tr class="method-row inherited expandable"> |
---|
302 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
303 | <td class="sig"> |
---|
304 | <a id="Ext.tree.DefaultSelectionModel-removeListener"></a> |
---|
305 | <b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
306 | <div class="short">Removes a listener</div> |
---|
307 | <div class="long"> |
---|
308 | Removes a listener <div class="mdetail-params"> |
---|
309 | <strong>Parameters:</strong> |
---|
310 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
311 | <strong>Returns:</strong> |
---|
312 | <ul> |
---|
313 | <li><code>void</code></li> |
---|
314 | </ul> |
---|
315 | </div> |
---|
316 | </div> |
---|
317 | </div> |
---|
318 | </td> |
---|
319 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td> |
---|
320 | </tr> |
---|
321 | <tr class="method-row inherited alt expandable"> |
---|
322 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
323 | <td class="sig"> |
---|
324 | <a id="Ext.tree.DefaultSelectionModel-resumeEvents"></a> |
---|
325 | <b>resumeEvents</b>() : void <div class="mdesc"> |
---|
326 | <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div> |
---|
327 | <div class="long"> |
---|
328 | Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params"> |
---|
329 | <strong>Parameters:</strong> |
---|
330 | <ul><li>None.</li> </ul> |
---|
331 | <strong>Returns:</strong> |
---|
332 | <ul> |
---|
333 | <li><code>void</code></li> |
---|
334 | </ul> |
---|
335 | </div> |
---|
336 | </div> |
---|
337 | </div> |
---|
338 | </td> |
---|
339 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td> |
---|
340 | </tr> |
---|
341 | <tr class="method-row expandable"> |
---|
342 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
343 | <td class="sig"> |
---|
344 | <a id="Ext.tree.DefaultSelectionModel-select"></a> |
---|
345 | <b>select</b>( <code>TreeNode node</code> ) : TreeNode <div class="mdesc"> |
---|
346 | <div class="short">Select a node.</div> |
---|
347 | <div class="long"> |
---|
348 | Select a node. <div class="mdetail-params"> |
---|
349 | <strong>Parameters:</strong> |
---|
350 | <ul><li><code>node</code> : TreeNode<div class="sub-desc">The node to select</div></li> </ul> |
---|
351 | <strong>Returns:</strong> |
---|
352 | <ul> |
---|
353 | <li><code>TreeNode</code><div class="sub-desc">The selected node</div></li> |
---|
354 | </ul> |
---|
355 | </div> |
---|
356 | </div> |
---|
357 | </div> |
---|
358 | </td> |
---|
359 | <td class="msource">DefaultSelectionModel</td> |
---|
360 | </tr> |
---|
361 | <tr class="method-row alt expandable"> |
---|
362 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
363 | <td class="sig"> |
---|
364 | <a id="Ext.tree.DefaultSelectionModel-selectNext"></a> |
---|
365 | <b>selectNext</b>() : TreeNode <div class="mdesc"> |
---|
366 | <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div> |
---|
367 | <div class="long"> |
---|
368 | Selects the node above the selected node in the tree, intelligently walking the nodes <div class="mdetail-params"> |
---|
369 | <strong>Parameters:</strong> |
---|
370 | <ul><li>None.</li> </ul> |
---|
371 | <strong>Returns:</strong> |
---|
372 | <ul> |
---|
373 | <li><code>TreeNode</code><div class="sub-desc">The new selection</div></li> |
---|
374 | </ul> |
---|
375 | </div> |
---|
376 | </div> |
---|
377 | </div> |
---|
378 | </td> |
---|
379 | <td class="msource">DefaultSelectionModel</td> |
---|
380 | </tr> |
---|
381 | <tr class="method-row expandable"> |
---|
382 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
383 | <td class="sig"> |
---|
384 | <a id="Ext.tree.DefaultSelectionModel-selectPrevious"></a> |
---|
385 | <b>selectPrevious</b>() : TreeNode <div class="mdesc"> |
---|
386 | <div class="short">Selects the node above the selected node in the tree, intelligently walking the nodes</div> |
---|
387 | <div class="long"> |
---|
388 | Selects the node above the selected node in the tree, intelligently walking the nodes <div class="mdetail-params"> |
---|
389 | <strong>Parameters:</strong> |
---|
390 | <ul><li>None.</li> </ul> |
---|
391 | <strong>Returns:</strong> |
---|
392 | <ul> |
---|
393 | <li><code>TreeNode</code><div class="sub-desc">The new selection</div></li> |
---|
394 | </ul> |
---|
395 | </div> |
---|
396 | </div> |
---|
397 | </div> |
---|
398 | </td> |
---|
399 | <td class="msource">DefaultSelectionModel</td> |
---|
400 | </tr> |
---|
401 | <tr class="method-row inherited alt expandable"> |
---|
402 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
403 | <td class="sig"> |
---|
404 | <a id="Ext.tree.DefaultSelectionModel-suspendEvents"></a> |
---|
405 | <b>suspendEvents</b>() : void <div class="mdesc"> |
---|
406 | <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div> |
---|
407 | <div class="long"> |
---|
408 | Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params"> |
---|
409 | <strong>Parameters:</strong> |
---|
410 | <ul><li>None.</li> </ul> |
---|
411 | <strong>Returns:</strong> |
---|
412 | <ul> |
---|
413 | <li><code>void</code></li> |
---|
414 | </ul> |
---|
415 | </div> |
---|
416 | </div> |
---|
417 | </div> |
---|
418 | </td> |
---|
419 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td> |
---|
420 | </tr> |
---|
421 | <tr class="method-row inherited expandable"> |
---|
422 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
423 | <td class="sig"> |
---|
424 | <a id="Ext.tree.DefaultSelectionModel-un"></a> |
---|
425 | <b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
426 | <div class="short">Removes a listener (shorthand for removeListener)</div> |
---|
427 | <div class="long"> |
---|
428 | Removes a listener (shorthand for removeListener) <div class="mdetail-params"> |
---|
429 | <strong>Parameters:</strong> |
---|
430 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
431 | <strong>Returns:</strong> |
---|
432 | <ul> |
---|
433 | <li><code>void</code></li> |
---|
434 | </ul> |
---|
435 | </div> |
---|
436 | </div> |
---|
437 | </div> |
---|
438 | </td> |
---|
439 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td> |
---|
440 | </tr> |
---|
441 | <tr class="method-row alt expandable"> |
---|
442 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
443 | <td class="sig"> |
---|
444 | <a id="Ext.tree.DefaultSelectionModel-unselect"></a> |
---|
445 | <b>unselect</b>( <code>TreeNode node</code> ) : void <div class="mdesc"> |
---|
446 | <div class="short">Deselect a node.</div> |
---|
447 | <div class="long"> |
---|
448 | Deselect a node. <div class="mdetail-params"> |
---|
449 | <strong>Parameters:</strong> |
---|
450 | <ul><li><code>node</code> : TreeNode<div class="sub-desc">The node to unselect</div></li> </ul> |
---|
451 | <strong>Returns:</strong> |
---|
452 | <ul> |
---|
453 | <li><code>void</code></li> |
---|
454 | </ul> |
---|
455 | </div> |
---|
456 | </div> |
---|
457 | </div> |
---|
458 | </td> |
---|
459 | <td class="msource">DefaultSelectionModel</td> |
---|
460 | </tr> |
---|
461 | </table> |
---|
462 | <a id="Ext.tree.DefaultSelectionModel-events"></a> |
---|
463 | <h2>Public Events</h2> |
---|
464 | <table cellspacing="0" class="member-table"> |
---|
465 | <tr> |
---|
466 | <th class="sig-header" colspan="2">Event</th> |
---|
467 | <th class="msource-header">Defined By</th> |
---|
468 | </tr> |
---|
469 | <tr class="event-row expandable"> |
---|
470 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
471 | <td class="sig"> |
---|
472 | <a id="Ext.tree.DefaultSelectionModel-beforeselect"></a> |
---|
473 | <b>beforeselect</b> : ( <code>DefaultSelectionModel this</code>, <code>TreeNode node</code>, <code>TreeNode node</code> ) <div class="mdesc"> |
---|
474 | <div class="short">Fires before the selected node changes, return false to cancel the change</div> |
---|
475 | <div class="long"> |
---|
476 | Fires before the selected node changes, return false to cancel the change <div class="mdetail-params"> |
---|
477 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
478 | <ul><li><code>this</code> : DefaultSelectionModel<div class="sub-desc"></div></li><li><code>node</code> : TreeNode<div class="sub-desc">the new selection</div></li><li><code>node</code> : TreeNode<div class="sub-desc">the old selection</div></li> </ul> |
---|
479 | </div> |
---|
480 | </div> |
---|
481 | </div> |
---|
482 | </td> |
---|
483 | <td class="msource">DefaultSelectionModel</td> |
---|
484 | </tr> |
---|
485 | <tr class="event-row alt expandable"> |
---|
486 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
487 | <td class="sig"> |
---|
488 | <a id="Ext.tree.DefaultSelectionModel-selectionchange"></a> |
---|
489 | <b>selectionchange</b> : ( <code>DefaultSelectionModel this</code>, <code>TreeNode node</code> ) <div class="mdesc"> |
---|
490 | <div class="short">Fires when the selected node changes</div> |
---|
491 | <div class="long"> |
---|
492 | Fires when the selected node changes <div class="mdetail-params"> |
---|
493 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
494 | <ul><li><code>this</code> : DefaultSelectionModel<div class="sub-desc"></div></li><li><code>node</code> : TreeNode<div class="sub-desc">the new selection</div></li> </ul> |
---|
495 | </div> |
---|
496 | </div> |
---|
497 | </div> |
---|
498 | </td> |
---|
499 | <td class="msource">DefaultSelectionModel</td> |
---|
500 | </tr> |
---|
501 | </table> |
---|
502 | |
---|
503 | </div> |
---|