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>",
11 "memberOf" : "LayoutDialog",
19 "type" : "String/HTMLElement/Roo.Element",
20 "desc" : "The id of or container element, or config",
26 "desc" : "configuration options",
36 "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>",
37 "memberOf" : "Roo.util.Observable",
44 "desc" : "The default top page coordinate of the dialog (defaults to center screen)",
45 "memberOf" : "Roo.BasicDialog",
52 "desc" : "True to show the dialog modally, preventing user interaction with the rest of the page (defaults to false)",
53 "memberOf" : "Roo.BasicDialog",
58 "name" : "animateTarget",
59 "type" : "String/Element",
60 "desc" : "Id or element from which the dialog should animate while opening\n(defaults to null with no animation)",
61 "memberOf" : "Roo.BasicDialog",
67 "type" : "Boolean/String",
68 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right\nshadow (defaults to false)",
69 "memberOf" : "Roo.BasicDialog",
74 "name" : "autoScroll",
76 "desc" : "True to allow the dialog body contents to overflow and display scrollbars (defaults to false)",
77 "memberOf" : "Roo.BasicDialog",
82 "name" : "collapsible",
84 "desc" : "False to remove the built-in top-right corner collapse button (defaults to true)",
85 "memberOf" : "Roo.BasicDialog",
92 "desc" : "If true, all elements with class 'x-dlg-tab' will get automatically converted to tabs (defaults to false)",
93 "memberOf" : "Roo.BasicDialog",
98 "name" : "shadowOffset",
100 "desc" : "The number of pixels to offset the shadow if displayed (defaults to 5)",
101 "memberOf" : "Roo.BasicDialog",
108 "desc" : "Array of buttons",
109 "memberOf" : "Roo.BasicDialog",
114 "name" : "minButtonWidth",
116 "desc" : "Minimum width of all dialog buttons (defaults to 75)",
117 "memberOf" : "Roo.BasicDialog",
124 "desc" : "Default text to display in the title bar (defaults to null)",
125 "memberOf" : "Roo.BasicDialog",
132 "desc" : "The minimum allowable width for a resizable dialog (defaults to 200)",
133 "memberOf" : "Roo.BasicDialog",
138 "name" : "buttonAlign",
140 "desc" : "Valid values are \"left,\" \"center\" and \"right\" (defaults to \"right\")",
141 "memberOf" : "Roo.BasicDialog",
146 "name" : "autoCreate",
147 "type" : "Boolean/DomHelper",
148 "desc" : "True to auto create from scratch, or using a DomHelper Object (defaults to false)",
149 "memberOf" : "Roo.BasicDialog",
154 "name" : "minHeight",
156 "desc" : "The minimum allowable height for a resizable dialog (defaults to 80)",
157 "memberOf" : "Roo.BasicDialog",
162 "name" : "proxyDrag",
164 "desc" : "True to drag a lightweight proxy element rather than the dialog itself, used when\ndraggable = true (defaults to false)",
165 "memberOf" : "Roo.BasicDialog",
172 "desc" : "True to create an iframe shim that prevents selects from showing through (defaults to false)",
173 "memberOf" : "Roo.BasicDialog",
180 "desc" : "Width of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
181 "memberOf" : "Roo.BasicDialog",
186 "name" : "constraintoviewport",
188 "desc" : "True to keep the dialog constrained within the visible viewport boundaries (defaults to true)",
189 "memberOf" : "Roo.BasicDialog",
194 "name" : "syncHeightBeforeShow",
196 "desc" : "True to cause the dimensions to be recalculated before the dialog is shown (defaults to false)",
197 "memberOf" : "Roo.BasicDialog",
204 "desc" : "The tag name of tab elements, used when autoTabs = true (defaults to 'div')",
205 "memberOf" : "Roo.BasicDialog",
210 "name" : "resizable",
212 "desc" : "False to disable manual dialog resizing (defaults to true)",
213 "memberOf" : "Roo.BasicDialog",
220 "desc" : "False to remove the built-in top-right corner close button (defaults to true)",
221 "memberOf" : "Roo.BasicDialog",
226 "name" : "fixedcenter",
228 "desc" : "True to ensure that anytime the dialog is shown or resized it gets centered (defaults to false)",
229 "memberOf" : "Roo.BasicDialog",
236 "desc" : "Height of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
237 "memberOf" : "Roo.BasicDialog",
242 "name" : "resizeHandles",
244 "desc" : "Which resize handles to display - see the {@link Roo.Resizable} handles config\nproperty for valid values (defaults to 'all')",
245 "memberOf" : "Roo.BasicDialog",
252 "desc" : "The default left page coordinate of the dialog (defaults to center screen)",
253 "memberOf" : "Roo.BasicDialog",
258 "name" : "draggable",
260 "desc" : "False to disable dragging of the dialog within the viewport (defaults to true)",
261 "memberOf" : "Roo.BasicDialog",
269 "desc" : "Add an xtype element (actually adds to the layout.)",
271 "isConstructor" : false,
273 "memberOf" : "Roo.LayoutDialog",
284 "desc" : "xdata xtype object data."
289 "name" : "getLayout",
290 "desc" : "Get the BorderLayout for this dialog",
292 "isConstructor" : false,
294 "memberOf" : "Roo.LayoutDialog",
304 "type" : "Roo.BorderLayout",
310 "name" : "endUpdate",
311 "desc" : "Ends update of the layout <strike>and resets display to none</strike>. Use standard beginUpdate/endUpdate on the layout.",
313 "isConstructor" : false,
315 "memberOf" : "Roo.LayoutDialog",
317 "deprecated" : "This has been deprecated: ",
326 "name" : "beginUpdate",
327 "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.",
329 "isConstructor" : false,
331 "memberOf" : "Roo.LayoutDialog",
333 "deprecated" : "This has been deprecated: ",
343 "desc" : "Expands a collapsed dialog back to its normal state. Equivalent to the user\nclicking the expand dialog button.",
345 "isConstructor" : false,
347 "memberOf" : "Roo.BasicDialog",
359 "desc" : "Aligns the dialog to the specified element",
361 "isConstructor" : false,
363 "memberOf" : "Roo.BasicDialog",
371 "type" : "String/HTMLElement/Roo.Element",
372 "desc" : "The element to align to.",
378 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details).",
384 "desc" : "(optional) Offset the positioning by [x, y]",
391 "type" : "Roo.BasicDialog",
398 "desc" : "Sets the dialog title text",
400 "isConstructor" : false,
402 "memberOf" : "Roo.BasicDialog",
411 "desc" : "The title text to display",
418 "type" : "Roo.BasicDialog",
424 "name" : "isVisible",
425 "desc" : "Returns true if the dialog is visible",
427 "isConstructor" : false,
429 "memberOf" : "Roo.BasicDialog",
446 "desc" : "Resizes the dialog.",
448 "isConstructor" : false,
450 "memberOf" : "Roo.BasicDialog",
472 "type" : "Roo.BasicDialog",
479 "desc" : "Centers this dialog in the viewport",
481 "isConstructor" : false,
483 "memberOf" : "Roo.BasicDialog",
493 "type" : "Roo.BasicDialog",
500 "desc" : "Collapses the dialog to its minimized state (only the title bar is visible).\nEquivalent to the user clicking the collapse dialog button.",
502 "isConstructor" : false,
504 "memberOf" : "Roo.BasicDialog",
516 "desc" : "Reinitializes the tabs component, clearing out old tabs and finding new ones.",
518 "isConstructor" : false,
520 "memberOf" : "Roo.BasicDialog",
530 "type" : "Roo.TabPanel",
531 "desc" : "The tabs component"
537 "desc" : "Brings this dialog to the front of any other visible dialogs",
539 "isConstructor" : false,
541 "memberOf" : "Roo.BasicDialog",
551 "type" : "Roo.BasicDialog",
558 "desc" : "Moves the dialog's top-left corner to the specified point",
560 "isConstructor" : false,
562 "memberOf" : "Roo.BasicDialog",
584 "type" : "Roo.BasicDialog",
591 "desc" : "Hides the dialog.",
593 "isConstructor" : false,
595 "memberOf" : "Roo.BasicDialog",
604 "desc" : "(optional) Function to call when the dialog is hidden",
611 "type" : "Roo.BasicDialog",
618 "desc" : "Destroys this dialog and all its supporting elements (including any tabs, shim,\nshadow, proxy, mask, etc.) Also removes all event listeners.",
620 "isConstructor" : false,
622 "memberOf" : "Roo.BasicDialog",
631 "desc" : "(optional) true to remove the element from the DOM",
640 "desc" : "Shows the dialog.",
642 "isConstructor" : false,
644 "memberOf" : "Roo.BasicDialog",
651 "name" : "animateTarget",
652 "type" : "String/HTMLElement/Roo.Element",
653 "desc" : "(optional) Reset the animation target",
660 "type" : "Roo.BasicDialog",
667 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
669 "isConstructor" : false,
671 "memberOf" : "Roo.BasicDialog",
679 "type" : "String/HTMLElement/Roo.Element",
680 "desc" : "The element to align to.",
686 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details)",
692 "desc" : "(optional) Offset the positioning by [x, y]",
696 "name" : "monitorScroll",
697 "type" : "Boolean/Number",
698 "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).",
705 "type" : "Roo.BasicDialog",
711 "name" : "addButton",
712 "desc" : "Adds a button to the footer section of the dialog.",
714 "isConstructor" : false,
716 "memberOf" : "Roo.BasicDialog",
724 "type" : "String/Object",
725 "desc" : "A string becomes the button text, an object can either be a Button config\nobject or a valid Roo.DomHelper element config",
731 "desc" : "The function called when the button is clicked",
737 "desc" : "(optional) The scope of the handler function (accepts position as a property)",
744 "type" : "Roo.Button",
745 "desc" : "The new button"
750 "name" : "addKeyListener",
751 "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.",
753 "isConstructor" : false,
755 "memberOf" : "Roo.BasicDialog",
763 "type" : "Number/Array/Object",
764 "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)}",
770 "desc" : "The function to call",
776 "desc" : "(optional) The scope of the function",
783 "type" : "Roo.BasicDialog",
790 "desc" : "Focuses the dialog. If a defaultButton is set, it will receive focus, otherwise the\ndialog itself will receive focus.",
792 "isConstructor" : false,
794 "memberOf" : "Roo.BasicDialog",
806 "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.",
808 "isConstructor" : false,
810 "memberOf" : "Roo.BasicDialog",
820 "type" : "Roo.TabPanel",
821 "desc" : "The tabs component"
826 "name" : "setDefaultButton",
827 "desc" : "Sets the default button to be focused when the dialog is displayed.",
829 "isConstructor" : false,
831 "memberOf" : "Roo.BasicDialog",
839 "type" : "Roo.BasicDialog.Button",
840 "desc" : "The button object returned by {@link #addButton}",
847 "type" : "Roo.BasicDialog",
854 "desc" : "Sends this dialog to the back (under) of any other visible dialogs",
856 "isConstructor" : false,
858 "memberOf" : "Roo.BasicDialog",
868 "type" : "Roo.BasicDialog",
874 "name" : "setContentSize",
875 "desc" : "Resizes the dialog to fit the specified content size.",
877 "isConstructor" : false,
879 "memberOf" : "Roo.BasicDialog",
901 "type" : "Roo.BasicDialog",
907 "name" : "restoreState",
908 "desc" : "Restores the previous state of the dialog if Roo.state is configured.",
910 "isConstructor" : false,
912 "memberOf" : "Roo.BasicDialog",
922 "type" : "Roo.BasicDialog",
929 "desc" : "Returns the element for this dialog",
931 "isConstructor" : false,
933 "memberOf" : "Roo.BasicDialog",
943 "type" : "Roo.Element",
944 "desc" : "The underlying dialog Element"
949 "name" : "purgeListeners",
950 "desc" : "Removes all listeners for this object",
952 "isConstructor" : false,
954 "memberOf" : "Roo.util.Observable",
966 "desc" : "Appends an event handler to this element (shorthand for addListener)",
968 "isConstructor" : false,
970 "memberOf" : "Roo.util.Observable",
977 "name" : "eventName",
979 "desc" : "The type of event to listen for",
985 "desc" : "The method the event invokes",
991 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
997 "desc" : "(optional)",
1006 "desc" : "Removes a listener (shorthand for removeListener)",
1008 "isConstructor" : false,
1009 "isPrivate" : false,
1010 "memberOf" : "Roo.util.Observable",
1017 "name" : "eventName",
1019 "desc" : "The type of event to listen for",
1020 "isOptional" : false
1024 "type" : "Function",
1025 "desc" : "The handler to remove",
1026 "isOptional" : false
1031 "desc" : "(optional) The scope (this object) for the handler",
1032 "isOptional" : false
1039 "name" : "addEvents",
1040 "desc" : "Used to define events on this Observable",
1042 "isConstructor" : false,
1043 "isPrivate" : false,
1044 "memberOf" : "Roo.util.Observable",
1053 "desc" : "The object with the events defined",
1054 "isOptional" : false
1061 "name" : "releaseCapture",
1062 "desc" : "Removes <b>all</b> added captures from the Observable.",
1064 "isConstructor" : false,
1065 "isPrivate" : false,
1066 "memberOf" : "Roo.util.Observable",
1074 "type" : "Observable",
1075 "desc" : "The Observable to release",
1076 "isOptional" : false
1083 "name" : "removeListener",
1084 "desc" : "Removes a listener",
1086 "isConstructor" : false,
1087 "isPrivate" : false,
1088 "memberOf" : "Roo.util.Observable",
1095 "name" : "eventName",
1097 "desc" : "The type of event to listen for",
1098 "isOptional" : false
1102 "type" : "Function",
1103 "desc" : "The handler to remove",
1104 "isOptional" : false
1109 "desc" : "(optional) The scope (this object) for the handler",
1110 "isOptional" : false
1117 "name" : "fireEvent",
1118 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1120 "isConstructor" : false,
1121 "isPrivate" : false,
1122 "memberOf" : "Roo.util.Observable",
1129 "name" : "eventName",
1132 "isOptional" : false
1136 "type" : "Object...",
1137 "desc" : "Variable number of parameters are passed to handlers",
1138 "isOptional" : false
1145 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1150 "name" : "hasListener",
1151 "desc" : "Checks to see if this object has any listeners for a specified event",
1153 "isConstructor" : false,
1154 "isPrivate" : false,
1155 "memberOf" : "Roo.util.Observable",
1162 "name" : "eventName",
1164 "desc" : "The name of the event to check for",
1165 "isOptional" : false
1172 "desc" : "True if the event is being listened for, else false"
1178 "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.",
1180 "isConstructor" : false,
1181 "isPrivate" : false,
1182 "memberOf" : "Roo.util.Observable",
1190 "type" : "Observable",
1191 "desc" : "The Observable to capture",
1192 "isOptional" : false
1196 "type" : "Function",
1197 "desc" : "The function to call",
1198 "isOptional" : false
1203 "desc" : "(optional) The scope (this object) for the fn",
1204 "isOptional" : false
1211 "name" : "addListener",
1212 "desc" : "Appends an event handler to this component",
1214 "isConstructor" : false,
1215 "isPrivate" : false,
1216 "memberOf" : "Roo.util.Observable",
1223 "name" : "eventName",
1225 "desc" : "The type of event to listen for",
1226 "isOptional" : false
1230 "type" : "Function",
1231 "desc" : "The method the event invokes",
1232 "isOptional" : false
1237 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1238 "isOptional" : false
1243 "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>",
1244 "isOptional" : false
1254 "desc" : "Fires when this dialog is moved by the user.",
1255 "memberOf" : "Roo.BasicDialog",
1263 "type" : "Roo.BasicDialog",
1265 "isOptional" : false
1270 "desc" : "The new page X",
1271 "isOptional" : false
1276 "desc" : "The new page Y",
1277 "isOptional" : false
1285 "desc" : "Fires when this dialog is resized by the user.",
1286 "memberOf" : "Roo.BasicDialog",
1294 "type" : "Roo.BasicDialog",
1296 "isOptional" : false
1301 "desc" : "The new width",
1302 "isOptional" : false
1307 "desc" : "The new height",
1308 "isOptional" : false
1315 "name" : "beforehide",
1316 "desc" : "Fires before this dialog is hidden.",
1317 "memberOf" : "Roo.BasicDialog",
1325 "type" : "Roo.BasicDialog",
1327 "isOptional" : false
1334 "name" : "beforeshow",
1335 "desc" : "Fires before this dialog is shown.",
1336 "memberOf" : "Roo.BasicDialog",
1344 "type" : "Roo.BasicDialog",
1346 "isOptional" : false
1354 "desc" : "Fires when this dialog is hidden.",
1355 "memberOf" : "Roo.BasicDialog",
1363 "type" : "Roo.BasicDialog",
1365 "isOptional" : false
1373 "desc" : "Fires when this dialog is shown.",
1374 "memberOf" : "Roo.BasicDialog",
1382 "type" : "Roo.BasicDialog",
1384 "isOptional" : false
1392 "desc" : "Fires when a key is pressed",
1393 "memberOf" : "Roo.BasicDialog",
1401 "type" : "Roo.BasicDialog",
1403 "isOptional" : false
1407 "type" : "Roo.EventObject",
1409 "isOptional" : false