b06e0d464649e3625b31bce72feb7fae0962fc5f.svn-base 32 KB

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