2 "name" : "Roo.SplitBar",
9 "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 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "SplitBar",
22 "name" : "dragElement",
23 "type" : "String/HTMLElement/Roo.Element",
24 "desc" : "The element to be dragged and act as the SplitBar.",
28 "name" : "resizingElement",
29 "type" : "String/HTMLElement/Roo.Element",
30 "desc" : "The element to be resized based on where the SplitBar element is dragged",
34 "name" : "orientation",
36 "desc" : "(optional) Either Roo.SplitBar.HORIZONTAL or Roo.SplitBar.VERTICAL. (Defaults to HORIZONTAL)",
42 "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).",
53 "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>",
54 "memberOf" : "Roo.util.Observable"
59 "name" : "getAdapter",
61 "desc" : "Get the adapter this SplitBar uses",
66 "isConstructor" : false,
79 "desc" : "The adapter object"
84 "name" : "setMaximumSize",
86 "desc" : "Sets the maximum size for the resizing element",
91 "isConstructor" : false,
103 "desc" : "The maximum size",
110 "name" : "setCurrentSize",
112 "desc" : "Sets the initialize size for the resizing element",
117 "isConstructor" : false,
129 "desc" : "The initial size",
138 "desc" : "Destroy this splitbar.",
139 "sig" : "(removeEl)",
143 "isConstructor" : false,
155 "desc" : "True to remove the element",
162 "name" : "setMinimumSize",
164 "desc" : "Sets the minimum size for the resizing element",
169 "isConstructor" : false,
181 "desc" : "The minimum size",
188 "name" : "getMinimumSize",
190 "desc" : "Gets the minimum size for the resizing element",
191 "sig" : "()\n{\n\n}",
195 "isConstructor" : false,
208 "desc" : "The minimum size"
213 "name" : "getMaximumSize",
215 "desc" : "Gets the maximum size for the resizing element",
216 "sig" : "()\n{\n\n}",
220 "isConstructor" : false,
233 "desc" : "The maximum size"
238 "name" : "setAdapter",
240 "desc" : "Set the adapter this SplitBar uses",
245 "isConstructor" : false,
257 "desc" : "A SplitBar adapter object",
264 "name" : "purgeListeners",
266 "desc" : "Removes all listeners for this object",
267 "sig" : "()\n{\n\n}",
269 "memberOf" : "Roo.util.Observable",
271 "isConstructor" : false,
285 "desc" : "Appends an event handler to this element (shorthand for addListener)",
286 "sig" : "(eventName, handler, scope, options)",
288 "memberOf" : "Roo.util.Observable",
290 "isConstructor" : false,
300 "name" : "eventName",
302 "desc" : "The type of event to listen for",
308 "desc" : "The method the event invokes",
314 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
320 "desc" : "(optional)",
329 "desc" : "Removes a listener (shorthand for removeListener)",
330 "sig" : "(eventName, handler, scope)",
332 "memberOf" : "Roo.util.Observable",
334 "isConstructor" : false,
344 "name" : "eventName",
346 "desc" : "The type of event to listen for",
352 "desc" : "The handler to remove",
358 "desc" : "(optional) The scope (this object) for the handler",
365 "name" : "addEvents",
367 "desc" : "Used to define events on this Observable",
370 "memberOf" : "Roo.util.Observable",
372 "isConstructor" : false,
384 "desc" : "The object with the events defined",
391 "name" : "releaseCapture",
393 "desc" : "Removes <b>all</b> added captures from the Observable.",
396 "memberOf" : "Roo.util.Observable",
398 "isConstructor" : false,
409 "type" : "Observable",
410 "desc" : "The Observable to release",
417 "name" : "removeListener",
419 "desc" : "Removes a listener",
420 "sig" : "(eventName, handler, scope)",
422 "memberOf" : "Roo.util.Observable",
424 "isConstructor" : false,
434 "name" : "eventName",
436 "desc" : "The type of event to listen for",
442 "desc" : "The handler to remove",
448 "desc" : "(optional) The scope (this object) for the handler",
455 "name" : "fireEvent",
457 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
458 "sig" : "(eventName, args)",
460 "memberOf" : "Roo.util.Observable",
462 "isConstructor" : false,
472 "name" : "eventName",
479 "type" : "Object...",
480 "desc" : "Variable number of parameters are passed to handlers",
488 "desc" : "returns false if any of the handlers return false otherwise it returns true"
493 "name" : "hasListener",
495 "desc" : "Checks to see if this object has any listeners for a specified event",
496 "sig" : "(eventName)",
498 "memberOf" : "Roo.util.Observable",
500 "isConstructor" : false,
510 "name" : "eventName",
512 "desc" : "The name of the event to check for",
520 "desc" : "True if the event is being listened for, else false"
527 "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.",
528 "sig" : "(o, fn, scope)",
530 "memberOf" : "Roo.util.Observable",
532 "isConstructor" : false,
543 "type" : "Observable",
544 "desc" : "The Observable to capture",
550 "desc" : "The function to call",
556 "desc" : "(optional) The scope (this object) for the fn",
563 "name" : "addListener",
565 "desc" : "Appends an event handler to this component",
566 "sig" : "(eventName, handler, scope, options)",
568 "memberOf" : "Roo.util.Observable",
570 "isConstructor" : false,
580 "name" : "eventName",
582 "desc" : "The type of event to listen for",
588 "desc" : "The method the event invokes",
594 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
600 "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>",
611 "desc" : "Fires when the splitter is moved (alias for {@link #event-moved})",
612 "sig" : "function (_self, newSize)\n{\n\n}",
621 "type" : "Roo.SplitBar",
628 "desc" : "the new width or height",
635 "name" : "beforeresize",
637 "desc" : "Fires before the splitter is dragged",
638 "sig" : "function (_self)\n{\n\n}",
647 "type" : "Roo.SplitBar",
657 "desc" : "Fires when the splitter is moved",
658 "sig" : "function (_self, newSize)\n{\n\n}",
667 "type" : "Roo.SplitBar",
674 "desc" : "the new width or height",