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).",
47 "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>",
48 "memberOf" : "Roo.util.Observable",
55 "name" : "getAdapter",
56 "desc" : "Get the adapter this SplitBar uses",
58 "isConstructor" : false,
60 "memberOf" : "Roo.SplitBar",
71 "desc" : "The adapter object"
76 "name" : "setMaximumSize",
77 "desc" : "Sets the maximum size for the resizing element",
79 "isConstructor" : false,
81 "memberOf" : "Roo.SplitBar",
90 "desc" : "The maximum size",
98 "name" : "setCurrentSize",
99 "desc" : "Sets the initialize size for the resizing element",
101 "isConstructor" : false,
103 "memberOf" : "Roo.SplitBar",
112 "desc" : "The initial size",
121 "desc" : "Destroy this splitbar.",
123 "isConstructor" : false,
125 "memberOf" : "Roo.SplitBar",
134 "desc" : "True to remove the element",
142 "name" : "setMinimumSize",
143 "desc" : "Sets the minimum size for the resizing element",
145 "isConstructor" : false,
147 "memberOf" : "Roo.SplitBar",
156 "desc" : "The minimum size",
164 "name" : "getMinimumSize",
165 "desc" : "Gets the minimum size for the resizing element",
167 "isConstructor" : false,
169 "memberOf" : "Roo.SplitBar",
180 "desc" : "The minimum size"
185 "name" : "getMaximumSize",
186 "desc" : "Gets the maximum size for the resizing element",
188 "isConstructor" : false,
190 "memberOf" : "Roo.SplitBar",
201 "desc" : "The maximum size"
206 "name" : "setAdapter",
207 "desc" : "Set the adapter this SplitBar uses",
209 "isConstructor" : false,
211 "memberOf" : "Roo.SplitBar",
220 "desc" : "A SplitBar adapter object",
228 "name" : "purgeListeners",
229 "desc" : "Removes all listeners for this object",
231 "isConstructor" : false,
233 "memberOf" : "Roo.util.Observable",
245 "desc" : "Appends an event handler to this element (shorthand for addListener)",
247 "isConstructor" : false,
249 "memberOf" : "Roo.util.Observable",
256 "name" : "eventName",
258 "desc" : "The type of event to listen for",
264 "desc" : "The method the event invokes",
270 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
276 "desc" : "(optional)",
285 "desc" : "Removes a listener (shorthand for removeListener)",
287 "isConstructor" : false,
289 "memberOf" : "Roo.util.Observable",
296 "name" : "eventName",
298 "desc" : "The type of event to listen for",
304 "desc" : "The handler to remove",
310 "desc" : "(optional) The scope (this object) for the handler",
318 "name" : "addEvents",
319 "desc" : "Used to define events on this Observable",
321 "isConstructor" : false,
323 "memberOf" : "Roo.util.Observable",
332 "desc" : "The object with the events defined",
340 "name" : "releaseCapture",
341 "desc" : "Removes <b>all</b> added captures from the Observable.",
343 "isConstructor" : false,
345 "memberOf" : "Roo.util.Observable",
353 "type" : "Observable",
354 "desc" : "The Observable to release",
362 "name" : "removeListener",
363 "desc" : "Removes a listener",
365 "isConstructor" : false,
367 "memberOf" : "Roo.util.Observable",
374 "name" : "eventName",
376 "desc" : "The type of event to listen for",
382 "desc" : "The handler to remove",
388 "desc" : "(optional) The scope (this object) for the handler",
396 "name" : "fireEvent",
397 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
399 "isConstructor" : false,
401 "memberOf" : "Roo.util.Observable",
408 "name" : "eventName",
415 "type" : "Object...",
416 "desc" : "Variable number of parameters are passed to handlers",
424 "desc" : "returns false if any of the handlers return false otherwise it returns true"
429 "name" : "hasListener",
430 "desc" : "Checks to see if this object has any listeners for a specified event",
432 "isConstructor" : false,
434 "memberOf" : "Roo.util.Observable",
441 "name" : "eventName",
443 "desc" : "The name of the event to check for",
451 "desc" : "True if the event is being listened for, else false"
457 "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.",
459 "isConstructor" : false,
461 "memberOf" : "Roo.util.Observable",
469 "type" : "Observable",
470 "desc" : "The Observable to capture",
476 "desc" : "The function to call",
482 "desc" : "(optional) The scope (this object) for the fn",
490 "name" : "addListener",
491 "desc" : "Appends an event handler to this component",
493 "isConstructor" : false,
495 "memberOf" : "Roo.util.Observable",
502 "name" : "eventName",
504 "desc" : "The type of event to listen for",
510 "desc" : "The method the event invokes",
516 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
522 "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>",
533 "desc" : "Fires when the splitter is moved (alias for {@link #event-moved})",
534 "memberOf" : "Roo.SplitBar",
542 "type" : "Roo.SplitBar",
549 "desc" : "the new width or height",
557 "name" : "beforeresize",
558 "desc" : "Fires before the splitter is dragged",
559 "memberOf" : "Roo.SplitBar",
567 "type" : "Roo.SplitBar",
577 "desc" : "Fires when the splitter is moved",
578 "memberOf" : "Roo.SplitBar",
586 "type" : "Roo.SplitBar",
593 "desc" : "the new width or height",