2 "name" : "Roo.SplitBar",
6 "desc" : "Creates draggable splitter bar functionality from two elements (element to be dragged and element to be resized).\n<br><br>\nUsage:\n<pre><code>\nvar split = new Roo.SplitBar(\"elementToDrag\", \"elementToSize\",\n Roo.SplitBar.HORIZONTAL, Roo.SplitBar.LEFT);\nsplit.setAdapter(new Roo.SplitBar.AbsoluteLayoutAdapter(\"container\"));\nsplit.minSize = 100;\nsplit.maxSize = 600;\nsplit.animate = true;\nsplit.on('moved', splitterMoved);\n</code></pre>",
10 "memberOf" : "SplitBar",
17 "name" : "dragElement",
18 "type" : "String/HTMLElement/Roo.Element",
19 "desc" : "The element to be dragged and act as the SplitBar.",
23 "name" : "resizingElement",
24 "type" : "String/HTMLElement/Roo.Element",
25 "desc" : "The element to be resized based on where the SplitBar element is dragged",
29 "name" : "orientation",
31 "desc" : "(optional) Either Roo.SplitBar.HORIZONTAL or Roo.SplitBar.VERTICAL. (Defaults to HORIZONTAL)",
37 "desc" : "(optional) Either Roo.SplitBar.LEFT or Roo.SplitBar.RIGHT for horizontal or \n Roo.SplitBar.TOP or Roo.SplitBar.BOTTOM for vertical. (By default, this is determined automatically by the initial\n position of the SplitBar).",
46 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
47 "memberOf" : "Roo.util.Observable",
53 "name" : "getAdapter",
54 "desc" : "Get the adapter this SplitBar uses",
56 "isConstructor" : false,
58 "memberOf" : "Roo.SplitBar",
68 "desc" : "The adapter object"
73 "name" : "setMaximumSize",
74 "desc" : "Sets the maximum size for the resizing element",
76 "isConstructor" : false,
78 "memberOf" : "Roo.SplitBar",
87 "desc" : "The maximum size",
94 "name" : "setCurrentSize",
95 "desc" : "Sets the initialize size for the resizing element",
97 "isConstructor" : false,
99 "memberOf" : "Roo.SplitBar",
108 "desc" : "The initial size",
116 "desc" : "Destroy this splitbar.",
118 "isConstructor" : false,
120 "memberOf" : "Roo.SplitBar",
129 "desc" : "True to remove the element",
136 "name" : "setMinimumSize",
137 "desc" : "Sets the minimum size for the resizing element",
139 "isConstructor" : false,
141 "memberOf" : "Roo.SplitBar",
150 "desc" : "The minimum size",
157 "name" : "getMinimumSize",
158 "desc" : "Gets the minimum size for the resizing element",
160 "isConstructor" : false,
162 "memberOf" : "Roo.SplitBar",
172 "desc" : "The minimum size"
177 "name" : "getMaximumSize",
178 "desc" : "Gets the maximum size for the resizing element",
180 "isConstructor" : false,
182 "memberOf" : "Roo.SplitBar",
192 "desc" : "The maximum size"
197 "name" : "setAdapter",
198 "desc" : "Set the adapter this SplitBar uses",
200 "isConstructor" : false,
202 "memberOf" : "Roo.SplitBar",
211 "desc" : "A SplitBar adapter object",
218 "name" : "purgeListeners",
219 "desc" : "Removes all listeners for this object",
221 "isConstructor" : false,
223 "memberOf" : "Roo.util.Observable",
233 "desc" : "Appends an event handler to this element (shorthand for addListener)",
235 "isConstructor" : false,
237 "memberOf" : "Roo.util.Observable",
244 "name" : "eventName",
246 "desc" : "The type of event to listen for",
252 "desc" : "The method the event invokes",
258 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
264 "desc" : "(optional)",
272 "desc" : "Removes a listener (shorthand for removeListener)",
274 "isConstructor" : false,
276 "memberOf" : "Roo.util.Observable",
283 "name" : "eventName",
285 "desc" : "The type of event to listen for",
291 "desc" : "The handler to remove",
297 "desc" : "(optional) The scope (this object) for the handler",
304 "name" : "addEvents",
305 "desc" : "Used to define events on this Observable",
307 "isConstructor" : false,
309 "memberOf" : "Roo.util.Observable",
318 "desc" : "The object with the events defined",
325 "name" : "releaseCapture",
326 "desc" : "Removes <b>all</b> added captures from the Observable.",
328 "isConstructor" : false,
330 "memberOf" : "Roo.util.Observable",
338 "type" : "Observable",
339 "desc" : "The Observable to release",
346 "name" : "removeListener",
347 "desc" : "Removes a listener",
349 "isConstructor" : false,
351 "memberOf" : "Roo.util.Observable",
358 "name" : "eventName",
360 "desc" : "The type of event to listen for",
366 "desc" : "The handler to remove",
372 "desc" : "(optional) The scope (this object) for the handler",
379 "name" : "fireEvent",
380 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
382 "isConstructor" : false,
384 "memberOf" : "Roo.util.Observable",
391 "name" : "eventName",
398 "type" : "Object...",
399 "desc" : "Variable number of parameters are passed to handlers",
407 "desc" : "returns false if any of the handlers return false otherwise it returns true"
412 "name" : "hasListener",
413 "desc" : "Checks to see if this object has any listeners for a specified event",
415 "isConstructor" : false,
417 "memberOf" : "Roo.util.Observable",
424 "name" : "eventName",
426 "desc" : "The name of the event to check for",
434 "desc" : "True if the event is being listened for, else false"
440 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
442 "isConstructor" : false,
444 "memberOf" : "Roo.util.Observable",
452 "type" : "Observable",
453 "desc" : "The Observable to capture",
459 "desc" : "The function to call",
465 "desc" : "(optional) The scope (this object) for the fn",
472 "name" : "addListener",
473 "desc" : "Appends an event handler to this component",
475 "isConstructor" : false,
477 "memberOf" : "Roo.util.Observable",
484 "name" : "eventName",
486 "desc" : "The type of event to listen for",
492 "desc" : "The method the event invokes",
498 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
504 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
514 "desc" : "Fires when the splitter is moved (alias for {@link #event-moved})",
515 "memberOf" : "Roo.SplitBar",
523 "type" : "Roo.SplitBar",
530 "desc" : "the new width or height",
537 "name" : "beforeresize",
538 "desc" : "Fires before the splitter is dragged",
539 "memberOf" : "Roo.SplitBar",
547 "type" : "Roo.SplitBar",
556 "desc" : "Fires when the splitter is moved",
557 "memberOf" : "Roo.SplitBar",
565 "type" : "Roo.SplitBar",
572 "desc" : "the new width or height",