2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.SplitBar-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.SplitBar-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.SplitBar-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="inner-link" href="#Ext.SplitBar-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
|
|
|
7 |
<a class="bookmark" href="../docs/?class=Ext.SplitBar"><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"/>SplitBar</pre></div>
|
|
|
12 |
<h1>Class Ext.SplitBar</h1>
|
|
|
13 |
<table cellspacing="0">
|
|
|
14 |
<tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
|
|
|
15 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/SplitBar.js" target="_blank">SplitBar.js</a></td></tr>
|
|
|
16 |
<tr><td class="label">Class:</td><td class="hd-info">SplitBar</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 |
Creates draggable splitter bar functionality from two elements (element to be dragged and element to be resized).
|
|
|
21 |
<br><br>
|
|
|
22 |
Usage:
|
|
|
23 |
<pre><code>var split = <b>new</b> Ext.SplitBar(<em>"elementToDrag"</em>, <em>"elementToSize"</em>,
|
|
|
24 |
Ext.SplitBar.HORIZONTAL, Ext.SplitBar.LEFT);
|
|
|
25 |
split.setAdapter(<b>new</b> Ext.SplitBar.AbsoluteLayoutAdapter(<em>"container"</em>));
|
|
|
26 |
split.minSize = 100;
|
|
|
27 |
split.maxSize = 600;
|
|
|
28 |
split.animate = true;
|
|
|
29 |
split.on(<em>'moved'</em>, splitterMoved);</code></pre> </div>
|
|
|
30 |
|
|
|
31 |
<div class="hr"></div>
|
|
|
32 |
<a id="Ext.SplitBar-configs"></a>
|
|
|
33 |
<h2>Config Options</h2>
|
|
|
34 |
<table cellspacing="0" class="member-table">
|
|
|
35 |
<tr>
|
|
|
36 |
<th class="sig-header" colspan="2">Config Options</th>
|
|
|
37 |
<th class="msource-header">Defined By</th>
|
|
|
38 |
</tr>
|
|
|
39 |
<tr class="config-row inherited expandable">
|
|
|
40 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
41 |
<td class="sig">
|
|
|
42 |
<a id="Ext.SplitBar-listeners"></a>
|
|
|
43 |
<b>listeners</b> : Object <div class="mdesc">
|
|
|
44 |
<div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
|
|
|
45 |
<div class="long">
|
|
|
46 |
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>
|
|
|
47 |
</div>
|
|
|
48 |
</td>
|
|
|
49 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
|
|
|
50 |
</tr>
|
|
|
51 |
</table>
|
|
|
52 |
<a id="Ext.SplitBar-props"></a>
|
|
|
53 |
<h2>Public Properties</h2>
|
|
|
54 |
<table cellspacing="0" class="member-table">
|
|
|
55 |
<tr>
|
|
|
56 |
<th class="sig-header" colspan="2">Property</th>
|
|
|
57 |
<th class="msource-header">Defined By</th>
|
|
|
58 |
</tr>
|
|
|
59 |
<tr class="property-row">
|
|
|
60 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
61 |
<td class="sig">
|
|
|
62 |
<a id="Ext.SplitBar-animate"></a>
|
|
|
63 |
<b>animate</b> : Boolean <div class="mdesc">
|
|
|
64 |
Whether to animate the transition to the new size </div>
|
|
|
65 |
</td>
|
|
|
66 |
<td class="msource">SplitBar</td>
|
|
|
67 |
</tr>
|
|
|
68 |
<tr class="property-row alt">
|
|
|
69 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
70 |
<td class="sig">
|
|
|
71 |
<a id="Ext.SplitBar-maxSize"></a>
|
|
|
72 |
<b>maxSize</b> : Number <div class="mdesc">
|
|
|
73 |
The maximum size of the resizing element. (Defaults to 2000) </div>
|
|
|
74 |
</td>
|
|
|
75 |
<td class="msource">SplitBar</td>
|
|
|
76 |
</tr>
|
|
|
77 |
<tr class="property-row">
|
|
|
78 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
79 |
<td class="sig">
|
|
|
80 |
<a id="Ext.SplitBar-minSize"></a>
|
|
|
81 |
<b>minSize</b> : Number <div class="mdesc">
|
|
|
82 |
The minimum size of the resizing element. (Defaults to 0) </div>
|
|
|
83 |
</td>
|
|
|
84 |
<td class="msource">SplitBar</td>
|
|
|
85 |
</tr>
|
|
|
86 |
<tr class="property-row alt">
|
|
|
87 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
88 |
<td class="sig">
|
|
|
89 |
<a id="Ext.SplitBar-useShim"></a>
|
|
|
90 |
<b>useShim</b> : Boolean <div class="mdesc">
|
|
|
91 |
Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes. </div>
|
|
|
92 |
</td>
|
|
|
93 |
<td class="msource">SplitBar</td>
|
|
|
94 |
</tr>
|
|
|
95 |
</table>
|
|
|
96 |
<a id="Ext.SplitBar-methods"></a>
|
|
|
97 |
<h2>Public Methods</h2>
|
|
|
98 |
<table cellspacing="0" class="member-table">
|
|
|
99 |
<tr>
|
|
|
100 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
101 |
<th class="msource-header">Defined By</th>
|
|
|
102 |
</tr>
|
|
|
103 |
<tr class="method-row expandable">
|
|
|
104 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
105 |
<td class="sig">
|
|
|
106 |
<a id="Ext.SplitBar-SplitBar"></a>
|
|
|
107 |
<b>SplitBar</b>( <code>Mixed dragElement</code>, <code>Mixed resizingElement</code>, <span class="optional" title="Optional">[<code>Number orientation</code>]</span>, <span class="optional" title="Optional">[<code>Number placement</code>]</span> ) <div class="mdesc">
|
|
|
108 |
<div class="short">Create a new SplitBar</div>
|
|
|
109 |
<div class="long">
|
|
|
110 |
Create a new SplitBar <div class="mdetail-params">
|
|
|
111 |
<strong>Parameters:</strong>
|
|
|
112 |
<ul><li><code>dragElement</code> : Mixed<div class="sub-desc">The element to be dragged and act as the SplitBar.</div></li><li><code>resizingElement</code> : Mixed<div class="sub-desc">The element to be resized based on where the SplitBar element is dragged</div></li><li><code>orientation</code> : Number<div class="sub-desc">(optional) Either Ext.SplitBar.HORIZONTAL or Ext.SplitBar.VERTICAL. (Defaults to HORIZONTAL)</div></li><li><code>placement</code> : Number<div class="sub-desc">(optional) Either Ext.SplitBar.LEFT or Ext.SplitBar.RIGHT for horizontal or
|
|
|
113 |
Ext.SplitBar.TOP or Ext.SplitBar.BOTTOM for vertical. (By default, this is determined automatically by the initial
|
|
|
114 |
position of the SplitBar).</div></li> </ul>
|
|
|
115 |
<strong>Returns:</strong>
|
|
|
116 |
<ul>
|
|
|
117 |
<li><code></code></li>
|
|
|
118 |
</ul>
|
|
|
119 |
</div>
|
|
|
120 |
</div>
|
|
|
121 |
</div>
|
|
|
122 |
</td>
|
|
|
123 |
<td class="msource">SplitBar</td>
|
|
|
124 |
</tr>
|
|
|
125 |
<tr class="method-row inherited alt expandable">
|
|
|
126 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
127 |
<td class="sig">
|
|
|
128 |
<a id="Ext.SplitBar-addEvents"></a>
|
|
|
129 |
<b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">
|
|
|
130 |
<div class="short">Used to define events on this Observable</div>
|
|
|
131 |
<div class="long">
|
|
|
132 |
Used to define events on this Observable <div class="mdetail-params">
|
|
|
133 |
<strong>Parameters:</strong>
|
|
|
134 |
<ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
|
|
|
135 |
<strong>Returns:</strong>
|
|
|
136 |
<ul>
|
|
|
137 |
<li><code>void</code></li>
|
|
|
138 |
</ul>
|
|
|
139 |
</div>
|
|
|
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
</td>
|
|
|
143 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
|
|
|
144 |
</tr>
|
|
|
145 |
<tr class="method-row inherited expandable">
|
|
|
146 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
147 |
<td class="sig">
|
|
|
148 |
<a id="Ext.SplitBar-addListener"></a>
|
|
|
149 |
<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">
|
|
|
150 |
<div class="short">Appends an event handler to this component</div>
|
|
|
151 |
<div class="long">
|
|
|
152 |
Appends an event handler to this component <div class="mdetail-params">
|
|
|
153 |
<strong>Parameters:</strong>
|
|
|
154 |
<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
|
|
|
155 |
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
|
|
|
156 |
properties. This may contain any of the following properties:<ul>
|
|
|
157 |
<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>
|
|
|
158 |
<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>
|
|
|
159 |
<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>
|
|
|
160 |
<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
|
|
|
161 |
by the specified number of milliseconds. If the event fires again within that time, the original
|
|
|
162 |
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
|
|
|
163 |
</ul><br>
|
|
|
164 |
<p>
|
|
|
165 |
<b>Combining Options</b><br>
|
|
|
166 |
Using the options argument, it is possible to combine different types of listeners:<br>
|
|
|
167 |
<br>
|
|
|
168 |
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
|
|
|
169 |
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
|
|
|
170 |
single: true,
|
|
|
171 |
delay: 100,
|
|
|
172 |
forumId: 4
|
|
|
173 |
});</code></pre>
|
|
|
174 |
<p>
|
|
|
175 |
<b>Attaching multiple handlers in 1 call</b><br>
|
|
|
176 |
The method also allows for a single argument to be passed which is a config object containing properties
|
|
|
177 |
which specify multiple handlers.
|
|
|
178 |
<p>
|
|
|
179 |
<pre><code>foo.on({
|
|
|
180 |
<em>'click'</em> : {
|
|
|
181 |
fn: <b>this</b>.onClick,
|
|
|
182 |
scope: <b>this</b>,
|
|
|
183 |
delay: 100
|
|
|
184 |
},
|
|
|
185 |
<em>'mouseover'</em> : {
|
|
|
186 |
fn: <b>this</b>.onMouseOver,
|
|
|
187 |
scope: <b>this</b>
|
|
|
188 |
},
|
|
|
189 |
<em>'mouseout'</em> : {
|
|
|
190 |
fn: <b>this</b>.onMouseOut,
|
|
|
191 |
scope: <b>this</b>
|
|
|
192 |
}
|
|
|
193 |
});</code></pre>
|
|
|
194 |
<p>
|
|
|
195 |
Or a shorthand syntax:<br>
|
|
|
196 |
<pre><code>foo.on({
|
|
|
197 |
<em>'click'</em> : <b>this</b>.onClick,
|
|
|
198 |
<em>'mouseover'</em> : <b>this</b>.onMouseOver,
|
|
|
199 |
<em>'mouseout'</em> : <b>this</b>.onMouseOut,
|
|
|
200 |
scope: <b>this</b>
|
|
|
201 |
});</code></pre></div></li> </ul>
|
|
|
202 |
<strong>Returns:</strong>
|
|
|
203 |
<ul>
|
|
|
204 |
<li><code>void</code></li>
|
|
|
205 |
</ul>
|
|
|
206 |
</div>
|
|
|
207 |
</div>
|
|
|
208 |
</div>
|
|
|
209 |
</td>
|
|
|
210 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
|
|
|
211 |
</tr>
|
|
|
212 |
<tr class="method-row alt expandable">
|
|
|
213 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
214 |
<td class="sig">
|
|
|
215 |
<a id="Ext.SplitBar-destroy"></a>
|
|
|
216 |
<b>destroy</b>( <code>Boolean removeEl</code> ) : void <div class="mdesc">
|
|
|
217 |
<div class="short">Destroy this splitbar.</div>
|
|
|
218 |
<div class="long">
|
|
|
219 |
Destroy this splitbar. <div class="mdetail-params">
|
|
|
220 |
<strong>Parameters:</strong>
|
|
|
221 |
<ul><li><code>removeEl</code> : Boolean<div class="sub-desc">True to remove the element</div></li> </ul>
|
|
|
222 |
<strong>Returns:</strong>
|
|
|
223 |
<ul>
|
|
|
224 |
<li><code>void</code></li>
|
|
|
225 |
</ul>
|
|
|
226 |
</div>
|
|
|
227 |
</div>
|
|
|
228 |
</div>
|
|
|
229 |
</td>
|
|
|
230 |
<td class="msource">SplitBar</td>
|
|
|
231 |
</tr>
|
|
|
232 |
<tr class="method-row inherited expandable">
|
|
|
233 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
234 |
<td class="sig">
|
|
|
235 |
<a id="Ext.SplitBar-fireEvent"></a>
|
|
|
236 |
<b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
|
|
|
237 |
<div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
|
|
|
238 |
<div class="long">
|
|
|
239 |
Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
|
|
|
240 |
<strong>Parameters:</strong>
|
|
|
241 |
<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>
|
|
|
242 |
<strong>Returns:</strong>
|
|
|
243 |
<ul>
|
|
|
244 |
<li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
|
|
|
245 |
</ul>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
</div>
|
|
|
249 |
</td>
|
|
|
250 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
|
|
|
251 |
</tr>
|
|
|
252 |
<tr class="method-row alt expandable">
|
|
|
253 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
254 |
<td class="sig">
|
|
|
255 |
<a id="Ext.SplitBar-getAdapter"></a>
|
|
|
256 |
<b>getAdapter</b>() : The <div class="mdesc">
|
|
|
257 |
<div class="short">Get the adapter this SplitBar uses</div>
|
|
|
258 |
<div class="long">
|
|
|
259 |
Get the adapter this SplitBar uses <div class="mdetail-params">
|
|
|
260 |
<strong>Parameters:</strong>
|
|
|
261 |
<ul><li>None.</li> </ul>
|
|
|
262 |
<strong>Returns:</strong>
|
|
|
263 |
<ul>
|
|
|
264 |
<li><code>The</code><div class="sub-desc">adapter object</div></li>
|
|
|
265 |
</ul>
|
|
|
266 |
</div>
|
|
|
267 |
</div>
|
|
|
268 |
</div>
|
|
|
269 |
</td>
|
|
|
270 |
<td class="msource">SplitBar</td>
|
|
|
271 |
</tr>
|
|
|
272 |
<tr class="method-row expandable">
|
|
|
273 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
274 |
<td class="sig">
|
|
|
275 |
<a id="Ext.SplitBar-getMaximumSize"></a>
|
|
|
276 |
<b>getMaximumSize</b>() : Number <div class="mdesc">
|
|
|
277 |
<div class="short">Gets the maximum size for the resizing element</div>
|
|
|
278 |
<div class="long">
|
|
|
279 |
Gets the maximum size for the resizing element <div class="mdetail-params">
|
|
|
280 |
<strong>Parameters:</strong>
|
|
|
281 |
<ul><li>None.</li> </ul>
|
|
|
282 |
<strong>Returns:</strong>
|
|
|
283 |
<ul>
|
|
|
284 |
<li><code>Number</code><div class="sub-desc">The maximum size</div></li>
|
|
|
285 |
</ul>
|
|
|
286 |
</div>
|
|
|
287 |
</div>
|
|
|
288 |
</div>
|
|
|
289 |
</td>
|
|
|
290 |
<td class="msource">SplitBar</td>
|
|
|
291 |
</tr>
|
|
|
292 |
<tr class="method-row alt expandable">
|
|
|
293 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
294 |
<td class="sig">
|
|
|
295 |
<a id="Ext.SplitBar-getMinimumSize"></a>
|
|
|
296 |
<b>getMinimumSize</b>() : Number <div class="mdesc">
|
|
|
297 |
<div class="short">Gets the minimum size for the resizing element</div>
|
|
|
298 |
<div class="long">
|
|
|
299 |
Gets the minimum size for the resizing element <div class="mdetail-params">
|
|
|
300 |
<strong>Parameters:</strong>
|
|
|
301 |
<ul><li>None.</li> </ul>
|
|
|
302 |
<strong>Returns:</strong>
|
|
|
303 |
<ul>
|
|
|
304 |
<li><code>Number</code><div class="sub-desc">The minimum size</div></li>
|
|
|
305 |
</ul>
|
|
|
306 |
</div>
|
|
|
307 |
</div>
|
|
|
308 |
</div>
|
|
|
309 |
</td>
|
|
|
310 |
<td class="msource">SplitBar</td>
|
|
|
311 |
</tr>
|
|
|
312 |
<tr class="method-row inherited expandable">
|
|
|
313 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
314 |
<td class="sig">
|
|
|
315 |
<a id="Ext.SplitBar-hasListener"></a>
|
|
|
316 |
<b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
|
|
|
317 |
<div class="short">Checks to see if this object has any listeners for a specified event</div>
|
|
|
318 |
<div class="long">
|
|
|
319 |
Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
|
|
|
320 |
<strong>Parameters:</strong>
|
|
|
321 |
<ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
|
|
|
322 |
<strong>Returns:</strong>
|
|
|
323 |
<ul>
|
|
|
324 |
<li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
|
|
|
325 |
</ul>
|
|
|
326 |
</div>
|
|
|
327 |
</div>
|
|
|
328 |
</div>
|
|
|
329 |
</td>
|
|
|
330 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
|
|
|
331 |
</tr>
|
|
|
332 |
<tr class="method-row inherited alt expandable">
|
|
|
333 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
334 |
<td class="sig">
|
|
|
335 |
<a id="Ext.SplitBar-on"></a>
|
|
|
336 |
<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">
|
|
|
337 |
<div class="short">Appends an event handler to this element (shorthand for addListener)</div>
|
|
|
338 |
<div class="long">
|
|
|
339 |
Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
|
|
|
340 |
<strong>Parameters:</strong>
|
|
|
341 |
<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
|
|
|
342 |
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
|
|
|
343 |
<strong>Returns:</strong>
|
|
|
344 |
<ul>
|
|
|
345 |
<li><code>void</code></li>
|
|
|
346 |
</ul>
|
|
|
347 |
</div>
|
|
|
348 |
</div>
|
|
|
349 |
</div>
|
|
|
350 |
</td>
|
|
|
351 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
|
|
|
352 |
</tr>
|
|
|
353 |
<tr class="method-row inherited expandable">
|
|
|
354 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
355 |
<td class="sig">
|
|
|
356 |
<a id="Ext.SplitBar-purgeListeners"></a>
|
|
|
357 |
<b>purgeListeners</b>() : void <div class="mdesc">
|
|
|
358 |
<div class="short">Removes all listeners for this object</div>
|
|
|
359 |
<div class="long">
|
|
|
360 |
Removes all listeners for this object <div class="mdetail-params">
|
|
|
361 |
<strong>Parameters:</strong>
|
|
|
362 |
<ul><li>None.</li> </ul>
|
|
|
363 |
<strong>Returns:</strong>
|
|
|
364 |
<ul>
|
|
|
365 |
<li><code>void</code></li>
|
|
|
366 |
</ul>
|
|
|
367 |
</div>
|
|
|
368 |
</div>
|
|
|
369 |
</div>
|
|
|
370 |
</td>
|
|
|
371 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
|
|
|
372 |
</tr>
|
|
|
373 |
<tr class="method-row inherited alt expandable">
|
|
|
374 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
375 |
<td class="sig">
|
|
|
376 |
<a id="Ext.SplitBar-removeListener"></a>
|
|
|
377 |
<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">
|
|
|
378 |
<div class="short">Removes a listener</div>
|
|
|
379 |
<div class="long">
|
|
|
380 |
Removes a listener <div class="mdetail-params">
|
|
|
381 |
<strong>Parameters:</strong>
|
|
|
382 |
<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>
|
|
|
383 |
<strong>Returns:</strong>
|
|
|
384 |
<ul>
|
|
|
385 |
<li><code>void</code></li>
|
|
|
386 |
</ul>
|
|
|
387 |
</div>
|
|
|
388 |
</div>
|
|
|
389 |
</div>
|
|
|
390 |
</td>
|
|
|
391 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
|
|
|
392 |
</tr>
|
|
|
393 |
<tr class="method-row inherited expandable">
|
|
|
394 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
395 |
<td class="sig">
|
|
|
396 |
<a id="Ext.SplitBar-resumeEvents"></a>
|
|
|
397 |
<b>resumeEvents</b>() : void <div class="mdesc">
|
|
|
398 |
<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>
|
|
|
399 |
<div class="long">
|
|
|
400 |
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">
|
|
|
401 |
<strong>Parameters:</strong>
|
|
|
402 |
<ul><li>None.</li> </ul>
|
|
|
403 |
<strong>Returns:</strong>
|
|
|
404 |
<ul>
|
|
|
405 |
<li><code>void</code></li>
|
|
|
406 |
</ul>
|
|
|
407 |
</div>
|
|
|
408 |
</div>
|
|
|
409 |
</div>
|
|
|
410 |
</td>
|
|
|
411 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
|
|
|
412 |
</tr>
|
|
|
413 |
<tr class="method-row alt expandable">
|
|
|
414 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
415 |
<td class="sig">
|
|
|
416 |
<a id="Ext.SplitBar-setAdapter"></a>
|
|
|
417 |
<b>setAdapter</b>( <code>Object adapter</code> ) : void <div class="mdesc">
|
|
|
418 |
<div class="short">Set the adapter this SplitBar uses</div>
|
|
|
419 |
<div class="long">
|
|
|
420 |
Set the adapter this SplitBar uses <div class="mdetail-params">
|
|
|
421 |
<strong>Parameters:</strong>
|
|
|
422 |
<ul><li><code>adapter</code> : Object<div class="sub-desc">A SplitBar adapter object</div></li> </ul>
|
|
|
423 |
<strong>Returns:</strong>
|
|
|
424 |
<ul>
|
|
|
425 |
<li><code>void</code></li>
|
|
|
426 |
</ul>
|
|
|
427 |
</div>
|
|
|
428 |
</div>
|
|
|
429 |
</div>
|
|
|
430 |
</td>
|
|
|
431 |
<td class="msource">SplitBar</td>
|
|
|
432 |
</tr>
|
|
|
433 |
<tr class="method-row expandable">
|
|
|
434 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
435 |
<td class="sig">
|
|
|
436 |
<a id="Ext.SplitBar-setCurrentSize"></a>
|
|
|
437 |
<b>setCurrentSize</b>( <code>Number size</code> ) : void <div class="mdesc">
|
|
|
438 |
<div class="short">Sets the initialize size for the resizing element</div>
|
|
|
439 |
<div class="long">
|
|
|
440 |
Sets the initialize size for the resizing element <div class="mdetail-params">
|
|
|
441 |
<strong>Parameters:</strong>
|
|
|
442 |
<ul><li><code>size</code> : Number<div class="sub-desc">The initial size</div></li> </ul>
|
|
|
443 |
<strong>Returns:</strong>
|
|
|
444 |
<ul>
|
|
|
445 |
<li><code>void</code></li>
|
|
|
446 |
</ul>
|
|
|
447 |
</div>
|
|
|
448 |
</div>
|
|
|
449 |
</div>
|
|
|
450 |
</td>
|
|
|
451 |
<td class="msource">SplitBar</td>
|
|
|
452 |
</tr>
|
|
|
453 |
<tr class="method-row alt expandable">
|
|
|
454 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
455 |
<td class="sig">
|
|
|
456 |
<a id="Ext.SplitBar-setMaximumSize"></a>
|
|
|
457 |
<b>setMaximumSize</b>( <code>Number maxSize</code> ) : void <div class="mdesc">
|
|
|
458 |
<div class="short">Sets the maximum size for the resizing element</div>
|
|
|
459 |
<div class="long">
|
|
|
460 |
Sets the maximum size for the resizing element <div class="mdetail-params">
|
|
|
461 |
<strong>Parameters:</strong>
|
|
|
462 |
<ul><li><code>maxSize</code> : Number<div class="sub-desc">The maximum size</div></li> </ul>
|
|
|
463 |
<strong>Returns:</strong>
|
|
|
464 |
<ul>
|
|
|
465 |
<li><code>void</code></li>
|
|
|
466 |
</ul>
|
|
|
467 |
</div>
|
|
|
468 |
</div>
|
|
|
469 |
</div>
|
|
|
470 |
</td>
|
|
|
471 |
<td class="msource">SplitBar</td>
|
|
|
472 |
</tr>
|
|
|
473 |
<tr class="method-row expandable">
|
|
|
474 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
475 |
<td class="sig">
|
|
|
476 |
<a id="Ext.SplitBar-setMinimumSize"></a>
|
|
|
477 |
<b>setMinimumSize</b>( <code>Number minSize</code> ) : void <div class="mdesc">
|
|
|
478 |
<div class="short">Sets the minimum size for the resizing element</div>
|
|
|
479 |
<div class="long">
|
|
|
480 |
Sets the minimum size for the resizing element <div class="mdetail-params">
|
|
|
481 |
<strong>Parameters:</strong>
|
|
|
482 |
<ul><li><code>minSize</code> : Number<div class="sub-desc">The minimum size</div></li> </ul>
|
|
|
483 |
<strong>Returns:</strong>
|
|
|
484 |
<ul>
|
|
|
485 |
<li><code>void</code></li>
|
|
|
486 |
</ul>
|
|
|
487 |
</div>
|
|
|
488 |
</div>
|
|
|
489 |
</div>
|
|
|
490 |
</td>
|
|
|
491 |
<td class="msource">SplitBar</td>
|
|
|
492 |
</tr>
|
|
|
493 |
<tr class="method-row inherited alt expandable">
|
|
|
494 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
495 |
<td class="sig">
|
|
|
496 |
<a id="Ext.SplitBar-suspendEvents"></a>
|
|
|
497 |
<b>suspendEvents</b>() : void <div class="mdesc">
|
|
|
498 |
<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>
|
|
|
499 |
<div class="long">
|
|
|
500 |
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">
|
|
|
501 |
<strong>Parameters:</strong>
|
|
|
502 |
<ul><li>None.</li> </ul>
|
|
|
503 |
<strong>Returns:</strong>
|
|
|
504 |
<ul>
|
|
|
505 |
<li><code>void</code></li>
|
|
|
506 |
</ul>
|
|
|
507 |
</div>
|
|
|
508 |
</div>
|
|
|
509 |
</div>
|
|
|
510 |
</td>
|
|
|
511 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
|
|
|
512 |
</tr>
|
|
|
513 |
<tr class="method-row inherited expandable">
|
|
|
514 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
515 |
<td class="sig">
|
|
|
516 |
<a id="Ext.SplitBar-un"></a>
|
|
|
517 |
<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">
|
|
|
518 |
<div class="short">Removes a listener (shorthand for removeListener)</div>
|
|
|
519 |
<div class="long">
|
|
|
520 |
Removes a listener (shorthand for removeListener) <div class="mdetail-params">
|
|
|
521 |
<strong>Parameters:</strong>
|
|
|
522 |
<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>
|
|
|
523 |
<strong>Returns:</strong>
|
|
|
524 |
<ul>
|
|
|
525 |
<li><code>void</code></li>
|
|
|
526 |
</ul>
|
|
|
527 |
</div>
|
|
|
528 |
</div>
|
|
|
529 |
</div>
|
|
|
530 |
</td>
|
|
|
531 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
|
|
|
532 |
</tr>
|
|
|
533 |
</table>
|
|
|
534 |
<a id="Ext.SplitBar-events"></a>
|
|
|
535 |
<h2>Public Events</h2>
|
|
|
536 |
<table cellspacing="0" class="member-table">
|
|
|
537 |
<tr>
|
|
|
538 |
<th class="sig-header" colspan="2">Event</th>
|
|
|
539 |
<th class="msource-header">Defined By</th>
|
|
|
540 |
</tr>
|
|
|
541 |
<tr class="event-row expandable">
|
|
|
542 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
543 |
<td class="sig">
|
|
|
544 |
<a id="Ext.SplitBar-beforeresize"></a>
|
|
|
545 |
<b>beforeresize</b> : ( <code>Ext.SplitBar this</code> ) <div class="mdesc">
|
|
|
546 |
<div class="short">Fires before the splitter is dragged</div>
|
|
|
547 |
<div class="long">
|
|
|
548 |
Fires before the splitter is dragged <div class="mdetail-params">
|
|
|
549 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
550 |
<ul><li><code>this</code> : Ext.SplitBar<div class="sub-desc"></div></li> </ul>
|
|
|
551 |
</div>
|
|
|
552 |
</div>
|
|
|
553 |
</div>
|
|
|
554 |
</td>
|
|
|
555 |
<td class="msource">SplitBar</td>
|
|
|
556 |
</tr>
|
|
|
557 |
<tr class="event-row alt expandable">
|
|
|
558 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
559 |
<td class="sig">
|
|
|
560 |
<a id="Ext.SplitBar-moved"></a>
|
|
|
561 |
<b>moved</b> : ( <code>Ext.SplitBar this</code>, <code>Number newSize</code> ) <div class="mdesc">
|
|
|
562 |
<div class="short">Fires when the splitter is moved</div>
|
|
|
563 |
<div class="long">
|
|
|
564 |
Fires when the splitter is moved <div class="mdetail-params">
|
|
|
565 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
566 |
<ul><li><code>this</code> : Ext.SplitBar<div class="sub-desc"></div></li><li><code>newSize</code> : Number<div class="sub-desc">the new width or height</div></li> </ul>
|
|
|
567 |
</div>
|
|
|
568 |
</div>
|
|
|
569 |
</div>
|
|
|
570 |
</td>
|
|
|
571 |
<td class="msource">SplitBar</td>
|
|
|
572 |
</tr>
|
|
|
573 |
<tr class="event-row expandable">
|
|
|
574 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
575 |
<td class="sig">
|
|
|
576 |
<a id="Ext.SplitBar-resize"></a>
|
|
|
577 |
<b>resize</b> : ( <code>Ext.SplitBar this</code>, <code>Number newSize</code> ) <div class="mdesc">
|
|
|
578 |
<div class="short">Fires when the splitter is moved (alias for {@link #event-moved})</div>
|
|
|
579 |
<div class="long">
|
|
|
580 |
Fires when the splitter is moved (alias for {@link #event-moved}) <div class="mdetail-params">
|
|
|
581 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
582 |
<ul><li><code>this</code> : Ext.SplitBar<div class="sub-desc"></div></li><li><code>newSize</code> : Number<div class="sub-desc">the new width or height</div></li> </ul>
|
|
|
583 |
</div>
|
|
|
584 |
</div>
|
|
|
585 |
</div>
|
|
|
586 |
</td>
|
|
|
587 |
<td class="msource">SplitBar</td>
|
|
|
588 |
</tr>
|
|
|
589 |
</table>
|
|
|
590 |
|
|
|
591 |
</div>
|