1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.LayoutDialog</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.LayoutDialog-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.LayoutDialog-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.LayoutDialog-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.LayoutDialog-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.BasicDialog.html#constructor" roo:cls="Roo.BasicDialog.html#constructor">Roo.BasicDialog</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.LayoutDialog
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.LayoutDialog
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_BasicDialog.js.html">Roo/BasicDialog.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">LayoutDialog</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.BasicDialog.html#constructor" roo:cls="Roo.BasicDialog.html#constructor">Roo.BasicDialog</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 Dialog which provides adjustments for working with a layout in a Dialog.<br/>Add your necessary layout config options to the dialog's config.<br><br/>Example usage (including a nested layout):<br/><pre><code><br/>if(!dialog){<br/> dialog = new Roo.LayoutDialog("download-dlg", {<br/> modal: true,<br/> width:600,<br/> height:450,<br/> shadow:true,<br/> minWidth:500,<br/> minHeight:350,<br/> autoTabs:true,<br/> proxyDrag:true,<br/> // layout config merges with the dialog config<br/> center:{<br/> tabPosition: "top",<br/> alwaysShowTabs: true<br/> }<br/> });<br/> dialog.addKeyListener(27, dialog.hide, dialog);<br/> dialog.setDefaultButton(dialog.addButton("Close", dialog.hide, dialog));<br/> dialog.addButton("Build It!", this.getDownload, this);<br/><br/> // we can even add nested layouts<br/> var innerLayout = new Roo.BorderLayout("dl-inner", {<br/> east: {<br/> initialSize: 200,<br/> autoScroll:true,<br/> split:true<br/> },<br/> center: {<br/> autoScroll:true<br/> }<br/> });<br/> innerLayout.beginUpdate();<br/> innerLayout.add("east", new Roo.ContentPanel("dl-details"));<br/> innerLayout.add("center", new Roo.ContentPanel("selection-panel"));<br/> innerLayout.endUpdate(true);<br/><br/> var layout = dialog.getLayout();<br/> layout.beginUpdate();<br/> layout.add("center", new Roo.ContentPanel("standard-panel",<br/> {title: "Download the Source", fitToFrame:true}));<br/> layout.add("center", new Roo.NestedLayoutPanel(innerLayout,<br/> {title: "Build your own roo.js"}));<br/> layout.getRegion("center").showPanel(sp);<br/> layout.endUpdate();<br/>}<br/></code></pre>
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.LayoutDialog';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.LayoutDialog.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.LayoutDialog-configs"></a>
111 <table cellspacing="0" class="member-table">
112 <caption class="Empty">Config Options - Has None</caption>
126 <!-- ============================== public properties ==================== -->
130 <a id="Roo.LayoutDialog-props"></a>
136 <table cellspacing="0" class="member-table">
137 <caption class="Empty">Public Properties - Has None</caption>
143 <!-- ============================== methods summary / details ======================== -->
146 <a id="Roo.LayoutDialog-methods"></a>
147 <!-- constructor?? -->
154 <!-- then dynamics first -->
161 <table cellspacing="0" class="member-table">
162 <caption>Public Methods</caption>
164 <th class="sig-header" colspan="2">Method</th>
165 <th class="msource-header">Defined By</th>
175 <tr class="method-row config-row-alt0 expandable notInherited">
176 <td class="micon"><a class="exi" href="#expand"> </a></td>
180 <a id="Roo-method-LayoutDialog" name=".LayoutDialog"></a>
181 <div class="fixedFont">
182 <span class="attributes">new <B>Roo.</B></span><b class="itemname">LayoutDialog</b>
184 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
192 <div class="short">Create a new Roo.LayoutDialog</div>
199 Create a new Roo.LayoutDialog
202 <dl class="detailList">
203 <dt class="heading">Parameters:</dt>
206 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
209 <dd>The id of or container element, or config</dd>
212 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
215 <dd>configuration options</dd>
239 <tr class="method-row config-row-alt1 expandable notInherited">
240 <td class="micon"><a class="exi" href="#expand"> </a></td>
244 <a id="Roo.LayoutDialog-method-addxtype" name=".addxtype"></a>
245 <div class="fixedFont">
246 <span class="attributes"></span><b class="itemname">addxtype</b>
254 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
263 <div class="short">Add an xtype element (actually adds to the layout.</div>
269 Add an xtype element (actually adds to the layout.)
280 <dl class="detailList">
281 <dt class="heading">Returns:</dt>
283 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> xdata xtype object data.</dd>
305 <tr class="method-row config-row-alt0 expandable notInherited">
306 <td class="micon"><a class="exi" href="#expand"> </a></td>
310 <a id="Roo.LayoutDialog-method-beginUpdate" name=".beginUpdate"></a>
311 <div class="fixedFont">
312 <span class="attributes"></span><b class="itemname">beginUpdate</b>
321 <div class="short">Begins an update of the layout <strike>and sets display to block and visibility to hidden</strike>.</div>
327 Begins an update of the layout <strike>and sets display to block and visibility to hidden</strike>. Use standard beginUpdate/endUpdate on the layout.
356 <tr class="method-row config-row-alt1 expandable notInherited">
357 <td class="micon"><a class="exi" href="#expand"> </a></td>
361 <a id="Roo.LayoutDialog-method-endUpdate" name=".endUpdate"></a>
362 <div class="fixedFont">
363 <span class="attributes"></span><b class="itemname">endUpdate</b>
372 <div class="short">Ends update of the layout <strike>and resets display to none</strike>.</div>
378 Ends update of the layout <strike>and resets display to none</strike>. Use standard beginUpdate/endUpdate on the layout.
407 <tr class="method-row config-row-alt0 expandable notInherited">
408 <td class="micon"><a class="exi" href="#expand"> </a></td>
412 <a id="Roo.LayoutDialog-method-getLayout" name=".getLayout"></a>
413 <div class="fixedFont">
414 <span class="attributes"></span><b class="itemname">getLayout</b>
422 <a href="./Roo.BorderLayout.html#constructor" roo:cls="Roo.BorderLayout.html#constructor">Roo.BorderLayout</a>
431 <div class="short">Get the BorderLayout for this dialog</div>
437 Get the BorderLayout for this dialog
448 <dl class="detailList">
449 <dt class="heading">Returns:</dt>
451 <dd><span class="fixedFont"><a href="./Roo.BorderLayout.html#constructor" roo:cls="Roo.BorderLayout.html#constructor">Roo.BorderLayout</a></span> </dd>
476 <!-- ============================== events summary / details ======================== -->
479 <a id="Roo.LayoutDialog-events"></a>
485 <table cellspacing="0" class="member-table">
486 <caption class="Empty">Events - Has None</caption>
497 <!-- ============================== footer ================================= -->
498 <div class="fineprint" style="clear:both">
500 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jul 16 2010 16:37:02 GMT+0800 (HKT)
502 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>