2 "name" : "Roo.LayoutDialog",
7 "desc" : "Dialog which provides adjustments for working with a layout in a Dialog.\nAdd your necessary layout config options to the dialog's config.<br>\nExample usage (including a nested layout):\n<pre><code>\nif(!dialog){\n dialog = new Roo.LayoutDialog(\"download-dlg\", {\n modal: true,\n width:600,\n height:450,\n shadow:true,\n minWidth:500,\n minHeight:350,\n autoTabs:true,\n proxyDrag:true,\n // layout config merges with the dialog config\n center:{\n tabPosition: \"top\",\n alwaysShowTabs: true\n }\n });\n dialog.addKeyListener(27, dialog.hide, dialog);\n dialog.setDefaultButton(dialog.addButton(\"Close\", dialog.hide, dialog));\n dialog.addButton(\"Build It!\", this.getDownload, this);\n\n // we can even add nested layouts\n var innerLayout = new Roo.BorderLayout(\"dl-inner\", {\n east: {\n initialSize: 200,\n autoScroll:true,\n split:true\n },\n center: {\n autoScroll:true\n }\n });\n innerLayout.beginUpdate();\n innerLayout.add(\"east\", new Roo.ContentPanel(\"dl-details\"));\n innerLayout.add(\"center\", new Roo.ContentPanel(\"selection-panel\"));\n innerLayout.endUpdate(true);\n\n var layout = dialog.getLayout();\n layout.beginUpdate();\n layout.add(\"center\", new Roo.ContentPanel(\"standard-panel\",\n {title: \"Download the Source\", fitToFrame:true}));\n layout.add(\"center\", new Roo.NestedLayoutPanel(innerLayout,\n {title: \"Build your own roo.js\"}));\n layout.getRegion(\"center\").showPanel(sp);\n layout.endUpdate();\n}\n</code></pre>",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
23 "desc" : "The default top page coordinate of the dialog (defaults to center screen)",
24 "memberOf" : "Roo.BasicDialog",
31 "desc" : "True to show the dialog modally, preventing user interaction with the rest of the page (defaults to false)",
32 "memberOf" : "Roo.BasicDialog",
37 "name" : "animateTarget",
38 "type" : "String/Element",
39 "desc" : "Id or element from which the dialog should animate while opening\n(defaults to null with no animation)",
40 "memberOf" : "Roo.BasicDialog",
46 "type" : "Boolean/String",
47 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right\nshadow (defaults to false)",
48 "memberOf" : "Roo.BasicDialog",
53 "name" : "autoScroll",
55 "desc" : "True to allow the dialog body contents to overflow and display scrollbars (defaults to false)",
56 "memberOf" : "Roo.BasicDialog",
61 "name" : "collapsible",
63 "desc" : "False to remove the built-in top-right corner collapse button (defaults to true)",
64 "memberOf" : "Roo.BasicDialog",
71 "desc" : "If true, all elements with class 'x-dlg-tab' will get automatically converted to tabs (defaults to false)",
72 "memberOf" : "Roo.BasicDialog",
77 "name" : "shadowOffset",
79 "desc" : "The number of pixels to offset the shadow if displayed (defaults to 5)",
80 "memberOf" : "Roo.BasicDialog",
87 "desc" : "Array of buttons",
88 "memberOf" : "Roo.BasicDialog",
93 "name" : "minButtonWidth",
95 "desc" : "Minimum width of all dialog buttons (defaults to 75)",
96 "memberOf" : "Roo.BasicDialog",
103 "desc" : "Default text to display in the title bar (defaults to null)",
104 "memberOf" : "Roo.BasicDialog",
111 "desc" : "The minimum allowable width for a resizable dialog (defaults to 200)",
112 "memberOf" : "Roo.BasicDialog",
117 "name" : "buttonAlign",
119 "desc" : "Valid values are \"left,\" \"center\" and \"right\" (defaults to \"right\")",
120 "memberOf" : "Roo.BasicDialog",
125 "name" : "autoCreate",
126 "type" : "Boolean/DomHelper",
127 "desc" : "True to auto create from scratch, or using a DomHelper Object (defaults to false)",
128 "memberOf" : "Roo.BasicDialog",
133 "name" : "minHeight",
135 "desc" : "The minimum allowable height for a resizable dialog (defaults to 80)",
136 "memberOf" : "Roo.BasicDialog",
141 "name" : "proxyDrag",
143 "desc" : "True to drag a lightweight proxy element rather than the dialog itself, used when\ndraggable = true (defaults to false)",
144 "memberOf" : "Roo.BasicDialog",
151 "desc" : "True to create an iframe shim that prevents selects from showing through (defaults to false)",
152 "memberOf" : "Roo.BasicDialog",
159 "desc" : "Width of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
160 "memberOf" : "Roo.BasicDialog",
165 "name" : "constraintoviewport",
167 "desc" : "True to keep the dialog constrained within the visible viewport boundaries (defaults to true)",
168 "memberOf" : "Roo.BasicDialog",
173 "name" : "syncHeightBeforeShow",
175 "desc" : "True to cause the dimensions to be recalculated before the dialog is shown (defaults to false)",
176 "memberOf" : "Roo.BasicDialog",
183 "desc" : "The tag name of tab elements, used when autoTabs = true (defaults to 'div')",
184 "memberOf" : "Roo.BasicDialog",
189 "name" : "resizable",
191 "desc" : "False to disable manual dialog resizing (defaults to true)",
192 "memberOf" : "Roo.BasicDialog",
199 "desc" : "False to remove the built-in top-right corner close button (defaults to true)",
200 "memberOf" : "Roo.BasicDialog",
205 "name" : "fixedcenter",
207 "desc" : "True to ensure that anytime the dialog is shown or resized it gets centered (defaults to false)",
208 "memberOf" : "Roo.BasicDialog",
215 "desc" : "Height of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
216 "memberOf" : "Roo.BasicDialog",
221 "name" : "resizeHandles",
223 "desc" : "Which resize handles to display - see the {@link Roo.Resizable} handles config\nproperty for valid values (defaults to 'all')",
224 "memberOf" : "Roo.BasicDialog",
231 "desc" : "The default left page coordinate of the dialog (defaults to center screen)",
232 "memberOf" : "Roo.BasicDialog",
237 "name" : "draggable",
239 "desc" : "False to disable dragging of the dialog within the viewport (defaults to true)",
240 "memberOf" : "Roo.BasicDialog",
248 "desc" : "Add an xtype element (actually adds to the layout.)",
250 "isConstructor" : false,
252 "memberOf" : "Roo.LayoutDialog",
263 "desc" : "xdata xtype object data."
268 "name" : "getLayout",
269 "desc" : "Get the BorderLayout for this dialog",
271 "isConstructor" : false,
273 "memberOf" : "Roo.LayoutDialog",
283 "type" : "Roo.BorderLayout",
289 "name" : "endUpdate",
290 "desc" : "Ends update of the layout <strike>and resets display to none</strike>. Use standard beginUpdate/endUpdate on the layout.",
292 "isConstructor" : false,
294 "memberOf" : "Roo.LayoutDialog",
296 "deprecated" : "This has been deprecated: ",
305 "name" : "beginUpdate",
306 "desc" : "Begins an update of the layout <strike>and sets display to block and visibility to hidden</strike>. Use standard beginUpdate/endUpdate on the layout.",
308 "isConstructor" : false,
310 "memberOf" : "Roo.LayoutDialog",
312 "deprecated" : "This has been deprecated: ",
322 "desc" : "Expands a collapsed dialog back to its normal state. Equivalent to the user\nclicking the expand dialog button.",
324 "isConstructor" : false,
326 "memberOf" : "Roo.BasicDialog",
338 "desc" : "Aligns the dialog to the specified element",
340 "isConstructor" : false,
342 "memberOf" : "Roo.BasicDialog",
350 "type" : "String/HTMLElement/Roo.Element",
351 "desc" : "The element to align to.",
357 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details).",
363 "desc" : "(optional) Offset the positioning by [x, y]",
370 "type" : "Roo.BasicDialog",
377 "desc" : "Sets the dialog title text",
379 "isConstructor" : false,
381 "memberOf" : "Roo.BasicDialog",
390 "desc" : "The title text to display",
397 "type" : "Roo.BasicDialog",
403 "name" : "isVisible",
404 "desc" : "Returns true if the dialog is visible",
406 "isConstructor" : false,
408 "memberOf" : "Roo.BasicDialog",
425 "desc" : "Resizes the dialog.",
427 "isConstructor" : false,
429 "memberOf" : "Roo.BasicDialog",
451 "type" : "Roo.BasicDialog",
458 "desc" : "Centers this dialog in the viewport",
460 "isConstructor" : false,
462 "memberOf" : "Roo.BasicDialog",
472 "type" : "Roo.BasicDialog",
479 "desc" : "Collapses the dialog to its minimized state (only the title bar is visible).\nEquivalent to the user clicking the collapse dialog button.",
481 "isConstructor" : false,
483 "memberOf" : "Roo.BasicDialog",
495 "desc" : "Reinitializes the tabs component, clearing out old tabs and finding new ones.",
497 "isConstructor" : false,
499 "memberOf" : "Roo.BasicDialog",
509 "type" : "Roo.TabPanel",
510 "desc" : "The tabs component"
516 "desc" : "Brings this dialog to the front of any other visible dialogs",
518 "isConstructor" : false,
520 "memberOf" : "Roo.BasicDialog",
530 "type" : "Roo.BasicDialog",
537 "desc" : "Moves the dialog's top-left corner to the specified point",
539 "isConstructor" : false,
541 "memberOf" : "Roo.BasicDialog",
563 "type" : "Roo.BasicDialog",
570 "desc" : "Hides the dialog.",
572 "isConstructor" : false,
574 "memberOf" : "Roo.BasicDialog",
583 "desc" : "(optional) Function to call when the dialog is hidden",
590 "type" : "Roo.BasicDialog",
597 "desc" : "Destroys this dialog and all its supporting elements (including any tabs, shim,\nshadow, proxy, mask, etc.) Also removes all event listeners.",
599 "isConstructor" : false,
601 "memberOf" : "Roo.BasicDialog",
610 "desc" : "(optional) true to remove the element from the DOM",
619 "desc" : "Shows the dialog.",
621 "isConstructor" : false,
623 "memberOf" : "Roo.BasicDialog",
630 "name" : "animateTarget",
631 "type" : "String/HTMLElement/Roo.Element",
632 "desc" : "(optional) Reset the animation target",
639 "type" : "Roo.BasicDialog",
646 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
648 "isConstructor" : false,
650 "memberOf" : "Roo.BasicDialog",
658 "type" : "String/HTMLElement/Roo.Element",
659 "desc" : "The element to align to.",
665 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details)",
671 "desc" : "(optional) Offset the positioning by [x, y]",
675 "name" : "monitorScroll",
676 "type" : "Boolean/Number",
677 "desc" : "(optional) true to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).",
684 "type" : "Roo.BasicDialog",
690 "name" : "addButton",
691 "desc" : "Adds a button to the footer section of the dialog.",
693 "isConstructor" : false,
695 "memberOf" : "Roo.BasicDialog",
703 "type" : "String/Object",
704 "desc" : "A string becomes the button text, an object can either be a Button config\nobject or a valid Roo.DomHelper element config",
710 "desc" : "The function called when the button is clicked",
716 "desc" : "(optional) The scope of the handler function (accepts position as a property)",
723 "type" : "Roo.Button",
724 "desc" : "The new button"
729 "name" : "addKeyListener",
730 "desc" : "Adds a key listener for when this dialog is displayed. This allows you to hook in a function that will be\nexecuted in response to a particular key being pressed while the dialog is active.",
732 "isConstructor" : false,
734 "memberOf" : "Roo.BasicDialog",
742 "type" : "Number/Array/Object",
743 "desc" : "Either the numeric key code, array of key codes or an object with the following options:\n {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}",
749 "desc" : "The function to call",
755 "desc" : "(optional) The scope of the function",
762 "type" : "Roo.BasicDialog",
769 "desc" : "Focuses the dialog. If a defaultButton is set, it will receive focus, otherwise the\ndialog itself will receive focus.",
771 "isConstructor" : false,
773 "memberOf" : "Roo.BasicDialog",
785 "desc" : "Returns the TabPanel component (creates it if it doesn't exist).\nNote: If you wish to simply check for the existence of tabs without creating them,\ncheck for a null 'tabs' property.",
787 "isConstructor" : false,
789 "memberOf" : "Roo.BasicDialog",
799 "type" : "Roo.TabPanel",
800 "desc" : "The tabs component"
805 "name" : "setDefaultButton",
806 "desc" : "Sets the default button to be focused when the dialog is displayed.",
808 "isConstructor" : false,
810 "memberOf" : "Roo.BasicDialog",
818 "type" : "Roo.BasicDialog.Button",
819 "desc" : "The button object returned by {@link #addButton}",
826 "type" : "Roo.BasicDialog",
833 "desc" : "Sends this dialog to the back (under) of any other visible dialogs",
835 "isConstructor" : false,
837 "memberOf" : "Roo.BasicDialog",
847 "type" : "Roo.BasicDialog",
853 "name" : "setContentSize",
854 "desc" : "Resizes the dialog to fit the specified content size.",
856 "isConstructor" : false,
858 "memberOf" : "Roo.BasicDialog",
880 "type" : "Roo.BasicDialog",
886 "name" : "restoreState",
887 "desc" : "Restores the previous state of the dialog if Roo.state is configured.",
889 "isConstructor" : false,
891 "memberOf" : "Roo.BasicDialog",
901 "type" : "Roo.BasicDialog",
908 "desc" : "Returns the element for this dialog",
910 "isConstructor" : false,
912 "memberOf" : "Roo.BasicDialog",
922 "type" : "Roo.Element",
923 "desc" : "The underlying dialog Element"
928 "name" : "purgeListeners",
929 "desc" : "Removes all listeners for this object",
931 "isConstructor" : false,
933 "memberOf" : "Roo.util.Observable",
945 "desc" : "Appends an event handler to this element (shorthand for addListener)",
947 "isConstructor" : false,
949 "memberOf" : "Roo.util.Observable",
956 "name" : "eventName",
958 "desc" : "The type of event to listen for",
964 "desc" : "The method the event invokes",
970 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
976 "desc" : "(optional)",
985 "desc" : "Removes a listener (shorthand for removeListener)",
987 "isConstructor" : false,
989 "memberOf" : "Roo.util.Observable",
996 "name" : "eventName",
998 "desc" : "The type of event to listen for",
1003 "type" : "Function",
1004 "desc" : "The handler to remove",
1005 "isOptional" : false
1010 "desc" : "(optional) The scope (this object) for the handler",
1011 "isOptional" : false
1018 "name" : "addEvents",
1019 "desc" : "Used to define events on this Observable",
1021 "isConstructor" : false,
1022 "isPrivate" : false,
1023 "memberOf" : "Roo.util.Observable",
1032 "desc" : "The object with the events defined",
1033 "isOptional" : false
1040 "name" : "releaseCapture",
1041 "desc" : "Removes <b>all</b> added captures from the Observable.",
1043 "isConstructor" : false,
1044 "isPrivate" : false,
1045 "memberOf" : "Roo.util.Observable",
1053 "type" : "Observable",
1054 "desc" : "The Observable to release",
1055 "isOptional" : false
1062 "name" : "removeListener",
1063 "desc" : "Removes a listener",
1065 "isConstructor" : false,
1066 "isPrivate" : false,
1067 "memberOf" : "Roo.util.Observable",
1074 "name" : "eventName",
1076 "desc" : "The type of event to listen for",
1077 "isOptional" : false
1081 "type" : "Function",
1082 "desc" : "The handler to remove",
1083 "isOptional" : false
1088 "desc" : "(optional) The scope (this object) for the handler",
1089 "isOptional" : false
1096 "name" : "fireEvent",
1097 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1099 "isConstructor" : false,
1100 "isPrivate" : false,
1101 "memberOf" : "Roo.util.Observable",
1108 "name" : "eventName",
1111 "isOptional" : false
1115 "type" : "Object...",
1116 "desc" : "Variable number of parameters are passed to handlers",
1117 "isOptional" : false
1124 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1129 "name" : "hasListener",
1130 "desc" : "Checks to see if this object has any listeners for a specified event",
1132 "isConstructor" : false,
1133 "isPrivate" : false,
1134 "memberOf" : "Roo.util.Observable",
1141 "name" : "eventName",
1143 "desc" : "The name of the event to check for",
1144 "isOptional" : false
1151 "desc" : "True if the event is being listened for, else false"
1157 "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.",
1159 "isConstructor" : false,
1160 "isPrivate" : false,
1161 "memberOf" : "Roo.util.Observable",
1169 "type" : "Observable",
1170 "desc" : "The Observable to capture",
1171 "isOptional" : false
1175 "type" : "Function",
1176 "desc" : "The function to call",
1177 "isOptional" : false
1182 "desc" : "(optional) The scope (this object) for the fn",
1183 "isOptional" : false
1190 "name" : "addListener",
1191 "desc" : "Appends an event handler to this component",
1193 "isConstructor" : false,
1194 "isPrivate" : false,
1195 "memberOf" : "Roo.util.Observable",
1202 "name" : "eventName",
1204 "desc" : "The type of event to listen for",
1205 "isOptional" : false
1209 "type" : "Function",
1210 "desc" : "The method the event invokes",
1211 "isOptional" : false
1216 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1217 "isOptional" : false
1222 "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>",
1223 "isOptional" : false
1233 "desc" : "Fires when this dialog is moved by the user.",
1234 "memberOf" : "Roo.BasicDialog",
1242 "type" : "Roo.BasicDialog",
1244 "isOptional" : false
1249 "desc" : "The new page X",
1250 "isOptional" : false
1255 "desc" : "The new page Y",
1256 "isOptional" : false
1264 "desc" : "Fires when this dialog is resized by the user.",
1265 "memberOf" : "Roo.BasicDialog",
1273 "type" : "Roo.BasicDialog",
1275 "isOptional" : false
1280 "desc" : "The new width",
1281 "isOptional" : false
1286 "desc" : "The new height",
1287 "isOptional" : false
1294 "name" : "beforehide",
1295 "desc" : "Fires before this dialog is hidden.",
1296 "memberOf" : "Roo.BasicDialog",
1304 "type" : "Roo.BasicDialog",
1306 "isOptional" : false
1313 "name" : "beforeshow",
1314 "desc" : "Fires before this dialog is shown.",
1315 "memberOf" : "Roo.BasicDialog",
1323 "type" : "Roo.BasicDialog",
1325 "isOptional" : false
1333 "desc" : "Fires when this dialog is hidden.",
1334 "memberOf" : "Roo.BasicDialog",
1342 "type" : "Roo.BasicDialog",
1344 "isOptional" : false
1352 "desc" : "Fires when this dialog is shown.",
1353 "memberOf" : "Roo.BasicDialog",
1361 "type" : "Roo.BasicDialog",
1363 "isOptional" : false
1371 "desc" : "Fires when a key is pressed",
1372 "memberOf" : "Roo.BasicDialog",
1380 "type" : "Roo.BasicDialog",
1382 "isOptional" : false
1386 "type" : "Roo.EventObject",
1388 "isOptional" : false