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).",
48 "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>",
49 "memberOf" : "Roo.util.Observable"
54 "name" : "getAdapter",
56 "desc" : "Get the adapter this SplitBar uses",
61 "isConstructor" : false,
74 "desc" : "The adapter object"
79 "name" : "setMaximumSize",
81 "desc" : "Sets the maximum size for the resizing element",
86 "isConstructor" : false,
98 "desc" : "The maximum size",
105 "name" : "setCurrentSize",
107 "desc" : "Sets the initialize size for the resizing element",
112 "isConstructor" : false,
124 "desc" : "The initial size",
133 "desc" : "Destroy this splitbar.",
134 "sig" : "(removeEl)",
138 "isConstructor" : false,
150 "desc" : "True to remove the element",
157 "name" : "setMinimumSize",
159 "desc" : "Sets the minimum size for the resizing element",
164 "isConstructor" : false,
176 "desc" : "The minimum size",
183 "name" : "getMinimumSize",
185 "desc" : "Gets the minimum size for the resizing element",
186 "sig" : "()\n{\n\n}",
190 "isConstructor" : false,
203 "desc" : "The minimum size"
208 "name" : "getMaximumSize",
210 "desc" : "Gets the maximum size for the resizing element",
211 "sig" : "()\n{\n\n}",
215 "isConstructor" : false,
228 "desc" : "The maximum size"
233 "name" : "setAdapter",
235 "desc" : "Set the adapter this SplitBar uses",
240 "isConstructor" : false,
252 "desc" : "A SplitBar adapter object",
259 "name" : "purgeListeners",
261 "desc" : "Removes all listeners for this object",
262 "sig" : "()\n{\n\n}",
264 "memberOf" : "Roo.util.Observable",
266 "isConstructor" : false,
280 "desc" : "Appends an event handler to this element (shorthand for addListener)",
281 "sig" : "(eventName, handler, scope, options)",
283 "memberOf" : "Roo.util.Observable",
285 "isConstructor" : false,
295 "name" : "eventName",
297 "desc" : "The type of event to listen for",
303 "desc" : "The method the event invokes",
309 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
315 "desc" : "(optional)",
324 "desc" : "Removes a listener (shorthand for removeListener)",
325 "sig" : "(eventName, handler, scope)",
327 "memberOf" : "Roo.util.Observable",
329 "isConstructor" : false,
339 "name" : "eventName",
341 "desc" : "The type of event to listen for",
347 "desc" : "The handler to remove",
353 "desc" : "(optional) The scope (this object) for the handler",
360 "name" : "addEvents",
362 "desc" : "Used to define events on this Observable",
365 "memberOf" : "Roo.util.Observable",
367 "isConstructor" : false,
379 "desc" : "The object with the events defined",
386 "name" : "releaseCapture",
388 "desc" : "Removes <b>all</b> added captures from the Observable.",
391 "memberOf" : "Roo.util.Observable",
393 "isConstructor" : false,
404 "type" : "Observable",
405 "desc" : "The Observable to release",
412 "name" : "removeListener",
414 "desc" : "Removes a listener",
415 "sig" : "(eventName, handler, scope)",
417 "memberOf" : "Roo.util.Observable",
419 "isConstructor" : false,
429 "name" : "eventName",
431 "desc" : "The type of event to listen for",
437 "desc" : "The handler to remove",
443 "desc" : "(optional) The scope (this object) for the handler",
450 "name" : "fireEvent",
452 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
453 "sig" : "(eventName, args)",
455 "memberOf" : "Roo.util.Observable",
457 "isConstructor" : false,
467 "name" : "eventName",
474 "type" : "Object...",
475 "desc" : "Variable number of parameters are passed to handlers",
483 "desc" : "returns false if any of the handlers return false otherwise it returns true"
488 "name" : "hasListener",
490 "desc" : "Checks to see if this object has any listeners for a specified event",
491 "sig" : "(eventName)",
493 "memberOf" : "Roo.util.Observable",
495 "isConstructor" : false,
505 "name" : "eventName",
507 "desc" : "The name of the event to check for",
515 "desc" : "True if the event is being listened for, else false"
522 "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.",
523 "sig" : "(o, fn, scope)",
525 "memberOf" : "Roo.util.Observable",
527 "isConstructor" : false,
538 "type" : "Observable",
539 "desc" : "The Observable to capture",
545 "desc" : "The function to call",
551 "desc" : "(optional) The scope (this object) for the fn",
558 "name" : "addListener",
560 "desc" : "Appends an event handler to this component",
561 "sig" : "(eventName, handler, scope, options)",
563 "memberOf" : "Roo.util.Observable",
565 "isConstructor" : false,
575 "name" : "eventName",
577 "desc" : "The type of event to listen for",
583 "desc" : "The method the event invokes",
589 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
595 "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>",
606 "desc" : "Fires when the splitter is moved (alias for {@link #event-moved})",
607 "sig" : "function (_self, newSize)\n{\n\n}",
616 "type" : "Roo.SplitBar",
623 "desc" : "the new width or height",
630 "name" : "beforeresize",
632 "desc" : "Fires before the splitter is dragged",
633 "sig" : "function (_self)\n{\n\n}",
642 "type" : "Roo.SplitBar",
652 "desc" : "Fires when the splitter is moved",
653 "sig" : "function (_self, newSize)\n{\n\n}",
662 "type" : "Roo.SplitBar",
669 "desc" : "the new width or height",