commit extjs-2.2.1
[extjs.git] / docs / output / Ext.Viewport.html
1         <div class="body-wrap">
2         <div class="top-tools">
3             <a class="inner-link" href="#Ext.Viewport-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4             <a class="inner-link" href="#Ext.Viewport-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5             <a class="inner-link" href="#Ext.Viewport-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                             <a class="inner-link" href="#Ext.Viewport-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7                         <a class="bookmark" href="../docs/?class=Ext.Viewport"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8         </div>
9                 <div class="inheritance res-block">
10 <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11   <img src="resources/elbow-end.gif"/><a ext:cls="Ext.Component" ext:member="" href="output/Ext.Component.html">Component</a>
12     <img src="resources/elbow-end.gif"/><a ext:cls="Ext.BoxComponent" ext:member="" href="output/Ext.BoxComponent.html">BoxComponent</a>
13       <img src="resources/elbow-end.gif"/><a ext:cls="Ext.Container" ext:member="" href="output/Ext.Container.html">Container</a>
14         <img src="resources/elbow-end.gif"/>Viewport</pre></div>
15                 <h1>Class Ext.Viewport</h1>
16         <table cellspacing="0">
17             <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
18             <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Viewport.js" target="_blank">Viewport.js</a></td></tr>
19             <tr><td class="label">Class:</td><td class="hd-info">Viewport</td></tr>
20                                     <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.Container" ext:member="" href="output/Ext.Container.html">Container</a></td></tr>
21                     </table>
22         <div class="description">
23             *
24 A specialized container representing the viewable application area (the browser viewport).
25 <p> The Viewport renders itself to the document body, and automatically sizes itself to the size of
26 the browser viewport and manages window resizing. There may only be one Viewport created
27 in a page. Inner layouts are available by virtue of the fact that all <a ext:cls="Ext.Panel" href="output/Ext.Panel.html">Panel</a>s
28 added to the Viewport, either through its <a ext:cls="Ext.Viewport" ext:member="items" href="output/Ext.Viewport.html#items">items</a>, or through the items, or the <a ext:cls="Ext.Viewport" ext:member="add" href="output/Ext.Viewport.html#add">add</a>
29 method of any of its child Panels may themselves have a layout.</p>
30 <p>The Viewport does not provide scrolling, so child Panels within the Viewport should provide
31 for scrolling if needed using the <a ext:cls="Ext.Viewport" ext:member="autoScroll" href="output/Ext.Viewport.html#autoScroll">autoScroll</a> config.</p>
32 Example showing a classic application border layout :<pre><code>new Ext.Viewport({
33     layout: <em>'border'</em>,
34     items: [{
35         region: <em>'north'</em>,
36         html: <em>'&lt;h1 class="x-panel-header">Page Title&lt;/h1>'</em>,
37         autoHeight: true,
38         border: false,
39         margins: <em>'0 0 5 0'</em>
40     }, {
41         region: <em>'west'</em>,
42         collapsible: true,
43         title: <em>'Navigation'</em>,
44         xtype: <em>'treepanel'</em>,
45         width: 200,
46         autoScroll: true,
47         split: true,
48         loader: <b>new</b> Ext.tree.TreeLoader(),
49         root: <b>new</b> Ext.tree.AsyncTreeNode({
50             expanded: true,
51             children: [{
52                 text: <em>'Menu Option 1'</em>,
53                 leaf: true
54             }, {
55                 text: <em>'Menu Option 2'</em>,
56                 leaf: true
57             }, {
58                 text: <em>'Menu Option 3'</em>,
59                 leaf: true
60             }]
61         }),
62         rootVisible: false,
63         listeners: {
64             click: <b>function</b>(n) {
65                 Ext.Msg.alert(<em>'Navigation Tree Click'</em>, <em>'You clicked: "'</em> + n.attributes.text + <em>'"'</em>);
66             }
67         }
68     }, {
69         region: <em>'center'</em>,
70         xtype: <em>'tabpanel'</em>,
71         items: {
72             title: <em>'Default Tab'</em>,
73             html: <em>'The first tab\'</em>s content. Others may be added dynamically'
74         }
75     }, {
76         region: <em>'south'</em>,
77         title: <em>'Information'</em>,
78         collapsible: true,
79         html: <em>'Information goes here'</em>,
80         split: true,
81         height: 100,
82         minHeight: 100
83     }]
84 });</code></pre>        </div>
85         
86         <div class="hr"></div>
87                 <a id="Ext.Viewport-configs"></a>
88         <h2>Config Options</h2>
89         <table cellspacing="0" class="member-table">
90             <tr>
91                 <th class="sig-header" colspan="2">Config Options</th>
92                 <th class="msource-header">Defined By</th>
93             </tr>
94                 <tr class="config-row inherited expandable">\r
95         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
96         <td class="sig">\r
97         <a id="Ext.Viewport-activeItem"></a>\r
98             <b>activeItem</b> : String/Number            <div class="mdesc">\r
99                         <div class="short">A string component id or the numeric index of the component that should be initially activated within the container's...</div>\r
100             <div class="long">\r
101                 A string component id or the numeric index of the component that should be initially activated within the container's layout on render. For example, activeItem: 'item-1' or activeItem: 0 (index 0 = the first item in the container's collection). activeItem only applies to layout styles that can display items one at a time (like <a ext:cls="Ext.layout.Accordion" href="output/Ext.layout.Accordion.html">Ext.layout.Accordion</a>, <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a> and <a ext:cls="Ext.layout.FitLayout" href="output/Ext.layout.FitLayout.html">Ext.layout.FitLayout</a>). Related to <a ext:cls="Ext.layout.ContainerLayout" ext:member="activeItem" href="output/Ext.layout.ContainerLayout.html#activeItem">Ext.layout.ContainerLayout.activeItem</a>.            </div>\r
102                         </div>\r
103         </td>\r
104         <td class="msource"><a ext:cls="Ext.Container" ext:member="#activeItem" href="output/Ext.Container.html#activeItem">Container</a></td>\r
105     </tr>\r
106         <tr class="config-row inherited alt expandable">\r
107         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
108         <td class="sig">\r
109         <a id="Ext.Viewport-autoDestroy"></a>\r
110             <b>autoDestroy</b> : Boolean            <div class="mdesc">\r
111                         <div class="short">If true the container will automatically destroy any contained component that is removed from it, else destruction mu...</div>\r
112             <div class="long">\r
113                 If true the container will automatically destroy any contained component that is removed from it, else destruction must be handled manually (defaults to true).            </div>\r
114                         </div>\r
115         </td>\r
116         <td class="msource"><a ext:cls="Ext.Container" ext:member="#autoDestroy" href="output/Ext.Container.html#autoDestroy">Container</a></td>\r
117     </tr>\r
118         <tr class="config-row inherited expandable">\r
119         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
120         <td class="sig">\r
121         <a id="Ext.Viewport-autoEl"></a>\r
122             <b>autoEl</b> : String/Object            <div class="mdesc">\r
123                         <div class="short">A tag name or DomHelper spec to create an element with. This is intended to create shorthand utility components inlin...</div>\r
124             <div class="long">\r
125                 A tag name or DomHelper spec to create an element with. This is intended to create shorthand utility components inline via JSON. It should not be used for higher level components which already create their own elements. Example usage: <pre><code>{xtype:<em>'box'</em>, autoEl: <em>'div'</em>, cls:<em>'my-class'</em>}
126 {xtype:<em>'box'</em>, autoEl: {tag:<em>'blockquote'</em>, html:<em>'autoEl is cool!'</em>}} // <b>with</b> DomHelper</code></pre>            </div>\r
127                         </div>\r
128         </td>\r
129         <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoEl" href="output/Ext.Component.html#autoEl">Component</a></td>\r
130     </tr>\r
131         <tr class="config-row inherited alt expandable">\r
132         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
133         <td class="sig">\r
134         <a id="Ext.Viewport-autoShow"></a>\r
135             <b>autoShow</b> : Boolean            <div class="mdesc">\r
136                         <div class="short">True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render...</div>\r
137             <div class="long">\r
138                 True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false).            </div>\r
139                         </div>\r
140         </td>\r
141         <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td>\r
142     </tr>\r
143         <tr class="config-row inherited expandable">\r
144         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
145         <td class="sig">\r
146         <a id="Ext.Viewport-bufferResize"></a>\r
147             <b>bufferResize</b> : Boolean/Number            <div class="mdesc">\r
148                         <div class="short">When set to true (100 milliseconds) or a number of milliseconds, the layout assigned for this container will buffer t...</div>\r
149             <div class="long">\r
150                 When set to true (100 milliseconds) or a number of milliseconds, the layout assigned for this container will buffer the frequency it calculates and does a re-layout of components. This is useful for heavy containers or containers with a large quantity of sub-components for which frequent layout calls would be expensive.            </div>\r
151                         </div>\r
152         </td>\r
153         <td class="msource"><a ext:cls="Ext.Container" ext:member="#bufferResize" href="output/Ext.Container.html#bufferResize">Container</a></td>\r
154     </tr>\r
155         <tr class="config-row inherited alt expandable">\r
156         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
157         <td class="sig">\r
158         <a id="Ext.Viewport-clearCls"></a>\r
159             <b>clearCls</b> : String            <div class="mdesc">\r
160                         <div class="short">The CSS class used to provide field clearing (defaults to 'x-form-clear-left'). This config is only used when this Co...</div>\r
161             <div class="long">\r
162                 The CSS class used to provide field clearing (defaults to 'x-form-clear-left'). <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p>            </div>\r
163                         </div>\r
164         </td>\r
165         <td class="msource"><a ext:cls="Ext.Component" ext:member="#clearCls" href="output/Ext.Component.html#clearCls">Component</a></td>\r
166     </tr>\r
167         <tr class="config-row inherited expandable">\r
168         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
169         <td class="sig">\r
170         <a id="Ext.Viewport-cls"></a>\r
171             <b>cls</b> : String            <div class="mdesc">\r
172                         <div class="short">An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for a...</div>\r
173             <div class="long">\r
174                 An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules.            </div>\r
175                         </div>\r
176         </td>\r
177         <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</a></td>\r
178     </tr>\r
179         <tr class="config-row inherited alt expandable">\r
180         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
181         <td class="sig">\r
182         <a id="Ext.Viewport-ctCls"></a>\r
183             <b>ctCls</b> : String            <div class="mdesc">\r
184                         <div class="short">An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for...</div>\r
185             <div class="long">\r
186                 An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules.            </div>\r
187                         </div>\r
188         </td>\r
189         <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">Component</a></td>\r
190     </tr>\r
191         <tr class="config-row inherited expandable">\r
192         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
193         <td class="sig">\r
194         <a id="Ext.Viewport-defaultType"></a>\r
195             <b>defaultType</b> : String            <div class="mdesc">\r
196                         <div class="short">The default xtype of child Components to create in this Container when a child item is specified as a raw configurati...</div>\r
197             <div class="long">\r
198                 <p>The default <a ext:cls="Ext.Component" href="output/Ext.Component.html">xtype</a> of child Components to create in this Container when a child item is specified as a raw configuration object, rather than as an instantiated Component.</p> <p>Defaults to 'panel'.</p>            </div>\r
199                         </div>\r
200         </td>\r
201         <td class="msource"><a ext:cls="Ext.Container" ext:member="#defaultType" href="output/Ext.Container.html#defaultType">Container</a></td>\r
202     </tr>\r
203         <tr class="config-row inherited alt expandable">\r
204         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
205         <td class="sig">\r
206         <a id="Ext.Viewport-defaults"></a>\r
207             <b>defaults</b> : Object            <div class="mdesc">\r
208                         <div class="short">A config object that will be applied to all components added to this container either via the items config or via the...</div>\r
209             <div class="long">\r
210                 A config object that will be applied to all components added to this container either via the <a ext:cls="Ext.Container" ext:member="items" href="output/Ext.Container.html#items">items</a> config or via the <a ext:cls="Ext.Container" ext:member="add" href="output/Ext.Container.html#add">add</a> or <a ext:cls="Ext.Container" ext:member="insert" href="output/Ext.Container.html#insert">insert</a> methods. The defaults config can contain any number of name/value property pairs to be added to each item, and should be valid for the types of items being added to the container. For example, to automatically apply padding to the body of each of a set of contained <a ext:cls="Ext.Panel" href="output/Ext.Panel.html">Ext.Panel</a> items, you could pass: defaults: {bodyStyle:'padding:15px'}.            </div>\r
211                         </div>\r
212         </td>\r
213         <td class="msource"><a ext:cls="Ext.Container" ext:member="#defaults" href="output/Ext.Container.html#defaults">Container</a></td>\r
214     </tr>\r
215         <tr class="config-row inherited">\r
216         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
217         <td class="sig">\r
218         <a id="Ext.Viewport-disabled"></a>\r
219             <b>disabled</b> : Boolean            <div class="mdesc">\r
220                             Render this component disabled (default is false).                        </div>\r
221         </td>\r
222         <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>\r
223     </tr>\r
224         <tr class="config-row inherited alt">\r
225         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
226         <td class="sig">\r
227         <a id="Ext.Viewport-disabledClass"></a>\r
228             <b>disabledClass</b> : String            <div class="mdesc">\r
229                             CSS class added to the component when it is disabled (defaults to "x-item-disabled").                        </div>\r
230         </td>\r
231         <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td>\r
232     </tr>\r
233         <tr class="config-row inherited expandable">\r
234         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
235         <td class="sig">\r
236         <a id="Ext.Viewport-fieldLabel"></a>\r
237             <b>fieldLabel</b> : String            <div class="mdesc">\r
238                         <div class="short">The label text to display next to this Component (defaults to '') This config is only used when this Component is ren...</div>\r
239             <div class="long">\r
240                 The label text to display next to this Component (defaults to '') <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
241     height: 100,
242     renderTo: Ext.getBody(),
243     items: [{
244         xtype: <em>'textfield'</em>,
245         fieldLabel: <em>'Name'</em>
246     }]
247 });</code></pre>            </div>\r
248                         </div>\r
249         </td>\r
250         <td class="msource"><a ext:cls="Ext.Component" ext:member="#fieldLabel" href="output/Ext.Component.html#fieldLabel">Component</a></td>\r
251     </tr>\r
252         <tr class="config-row inherited alt">\r
253         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
254         <td class="sig">\r
255         <a id="Ext.Viewport-hidden"></a>\r
256             <b>hidden</b> : Boolean            <div class="mdesc">\r
257                             Render this component hidden (default is false).                        </div>\r
258         </td>\r
259         <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>\r
260     </tr>\r
261         <tr class="config-row inherited expandable">\r
262         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
263         <td class="sig">\r
264         <a id="Ext.Viewport-hideBorders"></a>\r
265             <b>hideBorders</b> : Boolean            <div class="mdesc">\r
266                         <div class="short">True to hide the borders of each contained component, false to defer to the component's existing border settings (def...</div>\r
267             <div class="long">\r
268                 True to hide the borders of each contained component, false to defer to the component's existing border settings (defaults to false).            </div>\r
269                         </div>\r
270         </td>\r
271         <td class="msource"><a ext:cls="Ext.Container" ext:member="#hideBorders" href="output/Ext.Container.html#hideBorders">Container</a></td>\r
272     </tr>\r
273         <tr class="config-row inherited alt expandable">\r
274         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
275         <td class="sig">\r
276         <a id="Ext.Viewport-hideLabel"></a>\r
277             <b>hideLabel</b> : Boolean            <div class="mdesc">\r
278                         <div class="short">True to completely hide the label element (defaults to false). By default, even if you do not specify a fieldLabel th...</div>\r
279             <div class="long">\r
280                 True to completely hide the label element (defaults to false). By default, even if you do not specify a <a ext:cls="fieldLabel" href="output/fieldLabel.html">fieldLabel</a> the space will still be reserved so that the field will line up with other fields that do have labels. Setting this to true will cause the field to not reserve that space. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
281     height: 100,
282     renderTo: Ext.getBody(),
283     items: [{
284         xtype: <em>'textfield'</em>
285         hideLabel: true
286     }]
287 });</code></pre>            </div>\r
288                         </div>\r
289         </td>\r
290         <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideLabel" href="output/Ext.Component.html#hideLabel">Component</a></td>\r
291     </tr>\r
292         <tr class="config-row inherited expandable">\r
293         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
294         <td class="sig">\r
295         <a id="Ext.Viewport-hideMode"></a>\r
296             <b>hideMode</b> : String            <div class="mdesc">\r
297                         <div class="short">How this component should be hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset p...</div>\r
298             <div class="long">\r
299                 <p>How this component should be hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display".</p> <p>For Containers which may be hidden and shown as part of a <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">card layout</a> Container such as a <a ext:cls="Ext.TabPanel" href="output/Ext.TabPanel.html">TabPanel</a>, it is recommended that hideMode is configured as "offsets". This ensures that hidden Components still have height and width so that layout managers can perform measurements when calculating layouts.</p>            </div>\r
300                         </div>\r
301         </td>\r
302         <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideMode" href="output/Ext.Component.html#hideMode">Component</a></td>\r
303     </tr>\r
304         <tr class="config-row inherited alt expandable">\r
305         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
306         <td class="sig">\r
307         <a id="Ext.Viewport-id"></a>\r
308             <b>id</b> : String            <div class="mdesc">\r
309                         <div class="short">The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to ...</div>\r
310             <div class="long">\r
311                 The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to access the component later and you do not have an object reference available (e.g., using <a ext:cls="Ext.ComponentMgr" ext:member="getCmp" href="output/Ext.ComponentMgr.html#getCmp">Ext.ComponentMgr.getCmp</a>). Note that this id will also be used as the element id for the containing HTML element that is rendered to the page for this component. This allows you to write id-based CSS rules to style the specific instance of this component uniquely, and also to select sub-elements using this component's id as the parent.            </div>\r
312                         </div>\r
313         </td>\r
314         <td class="msource"><a ext:cls="Ext.Component" ext:member="#id" href="output/Ext.Component.html#id">Component</a></td>\r
315     </tr>\r
316         <tr class="config-row inherited expandable">\r
317         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
318         <td class="sig">\r
319         <a id="Ext.Viewport-itemCls"></a>\r
320             <b>itemCls</b> : String            <div class="mdesc">\r
321                         <div class="short">An additional CSS class to apply to the wrapper's form item element of this field (defaults to the container's itemCl...</div>\r
322             <div class="long">\r
323                 An additional CSS class to apply to the wrapper's form item element of this field (defaults to the container's itemCls value if set, or ''). Since it is applied to the item wrapper, it allows you to write standard CSS rules that can apply to the field, the label (if specified) or any other element within the markup for the field. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code><i>// Apply a style to the field's label:</i>
324 &lt;style>
325     .required .x-form-item-label {font-weight:bold;color:red;}
326 &lt;/style>
327
328 <b>new</b> Ext.FormPanel({
329     height: 100,
330     renderTo: Ext.getBody(),
331     items: [{
332         xtype: <em>'textfield'</em>,
333         fieldLabel: <em>'Name'</em>,
334         itemCls: <em>'required'</em> <i>//<b>this</b> label will be styled</i>
335     },{
336         xtype: <em>'textfield'</em>,
337         fieldLabel: <em>'Favorite Color'</em>
338     }]
339 });</code></pre>            </div>\r
340                         </div>\r
341         </td>\r
342         <td class="msource"><a ext:cls="Ext.Component" ext:member="#itemCls" href="output/Ext.Component.html#itemCls">Component</a></td>\r
343     </tr>\r
344         <tr class="config-row inherited alt expandable">\r
345         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
346         <td class="sig">\r
347         <a id="Ext.Viewport-items"></a>\r
348             <b>items</b> : Mixed            <div class="mdesc">\r
349                         <div class="short">A single item, or an array of child Components to be added to this container. Each item can be any type of object bas...</div>\r
350             <div class="long">\r
351                 A single item, or an array of child Components to be added to this container. Each item can be any type of object based on <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>.<br><br> Component config objects may also be specified in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the added Component will not be rendered immediately. To take advantage of this "lazy instantiation", set the <a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">Ext.Component.xtype</a> config property to the registered type of the Component wanted.<br><br> For a list of all available xtypes, see <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>. If a single item is being passed, it should be passed directly as an object reference (e.g., items: {...}). Multiple items should be passed as an array of objects (e.g., items: [{...}, {...}]).            </div>\r
352                         </div>\r
353         </td>\r
354         <td class="msource"><a ext:cls="Ext.Container" ext:member="#items" href="output/Ext.Container.html#items">Container</a></td>\r
355     </tr>\r
356         <tr class="config-row inherited expandable">\r
357         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
358         <td class="sig">\r
359         <a id="Ext.Viewport-labelSeparator"></a>\r
360             <b>labelSeparator</b> : String            <div class="mdesc">\r
361                         <div class="short">The standard separator to display after the text of each form label (defaults to the value of Ext.layout.FormLayout.l...</div>\r
362             <div class="long">\r
363                 The standard separator to display after the text of each form label (defaults to the value of <a ext:cls="Ext.layout.FormLayout" ext:member="labelSeparator" href="output/Ext.layout.FormLayout.html#labelSeparator">Ext.layout.FormLayout.labelSeparator</a>, which is a colon ':' by default). To display no separator for this field's label specify empty string ''. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
364     height: 100,
365     renderTo: Ext.getBody(),
366     items: [{
367         xtype: <em>'textfield'</em>,
368         fieldLabel: <em>'Name'</em>,
369         labelSeparator: <em>'...'</em>
370     }]
371 });</code></pre>            </div>\r
372                         </div>\r
373         </td>\r
374         <td class="msource"><a ext:cls="Ext.Component" ext:member="#labelSeparator" href="output/Ext.Component.html#labelSeparator">Component</a></td>\r
375     </tr>\r
376         <tr class="config-row inherited alt expandable">\r
377         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
378         <td class="sig">\r
379         <a id="Ext.Viewport-labelStyle"></a>\r
380             <b>labelStyle</b> : String            <div class="mdesc">\r
381                         <div class="short">A CSS style specification to apply directly to this field's label (defaults to the container's labelStyle value if se...</div>\r
382             <div class="long">\r
383                 A CSS style specification to apply directly to this field's label (defaults to the container's labelStyle value if set, or '').<code></code>. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
384     height: 100,
385     renderTo: Ext.getBody(),
386     items: [{
387         xtype: <em>'textfield'</em>,
388         fieldLabel: <em>'Name'</em>,
389         labelStyle: <em>'font-weight:bold;'</em>
390     }]
391 });</code></pre>            </div>\r
392                         </div>\r
393         </td>\r
394         <td class="msource"><a ext:cls="Ext.Component" ext:member="#labelStyle" href="output/Ext.Component.html#labelStyle">Component</a></td>\r
395     </tr>\r
396         <tr class="config-row inherited expandable">\r
397         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
398         <td class="sig">\r
399         <a id="Ext.Viewport-layout"></a>\r
400             <b>layout</b> : String            <div class="mdesc">\r
401                         <div class="short">The layout type to be used in this container. If not specified, a default Ext.layout.ContainerLayout will be created ...</div>\r
402             <div class="long">\r
403                 The layout type to be used in this container. If not specified, a default <a ext:cls="Ext.layout.ContainerLayout" href="output/Ext.layout.ContainerLayout.html">Ext.layout.ContainerLayout</a> will be created and used. Specific config values for the chosen layout type can be specified using <a ext:cls="Ext.Container" ext:member="layoutConfig" href="output/Ext.Container.html#layoutConfig">layoutConfig</a>. Valid values are:<ul class="mdetail-params"> <li>absolute</li> <li>accordion</li> <li>anchor</li> <li>border</li> <li>card</li> <li>column</li> <li>fit</li> <li>form</li> <li>table</li></ul>            </div>\r
404                         </div>\r
405         </td>\r
406         <td class="msource"><a ext:cls="Ext.Container" ext:member="#layout" href="output/Ext.Container.html#layout">Container</a></td>\r
407     </tr>\r
408         <tr class="config-row inherited alt expandable">\r
409         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
410         <td class="sig">\r
411         <a id="Ext.Viewport-layoutConfig"></a>\r
412             <b>layoutConfig</b> : Object            <div class="mdesc">\r
413                         <div class="short">This is a config object containing properties specific to the chosen layout (to be used in conjunction with the layou...</div>\r
414             <div class="long">\r
415                 This is a config object containing properties specific to the chosen layout (to be used in conjunction with the <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> config value). For complete details regarding the valid config options for each layout type, see the layout class corresponding to the type specified:<ul class="mdetail-params"> <li><a ext:cls="Ext.layout.Absolute" href="output/Ext.layout.Absolute.html">Ext.layout.Absolute</a></li> <li><a ext:cls="Ext.layout.Accordion" href="output/Ext.layout.Accordion.html">Ext.layout.Accordion</a></li> <li><a ext:cls="Ext.layout.AnchorLayout" href="output/Ext.layout.AnchorLayout.html">Ext.layout.AnchorLayout</a></li> <li><a ext:cls="Ext.layout.BorderLayout" href="output/Ext.layout.BorderLayout.html">Ext.layout.BorderLayout</a></li> <li><a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a></li> <li><a ext:cls="Ext.layout.ColumnLayout" href="output/Ext.layout.ColumnLayout.html">Ext.layout.ColumnLayout</a></li> <li><a ext:cls="Ext.layout.FitLayout" href="output/Ext.layout.FitLayout.html">Ext.layout.FitLayout</a></li> <li><a ext:cls="Ext.layout.FormLayout" href="output/Ext.layout.FormLayout.html">Ext.layout.FormLayout</a></li> <li><a ext:cls="Ext.layout.TableLayout" href="output/Ext.layout.TableLayout.html">Ext.layout.TableLayout</a></li></ul>            </div>\r
416                         </div>\r
417         </td>\r
418         <td class="msource"><a ext:cls="Ext.Container" ext:member="#layoutConfig" href="output/Ext.Container.html#layoutConfig">Container</a></td>\r
419     </tr>\r
420         <tr class="config-row inherited expandable">\r
421         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
422         <td class="sig">\r
423         <a id="Ext.Viewport-listeners"></a>\r
424             <b>listeners</b> : Object            <div class="mdesc">\r
425                         <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>\r
426             <div class="long">\r
427                 (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>\r
428                         </div>\r
429         </td>\r
430         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>\r
431     </tr>\r
432         <tr class="config-row inherited alt expandable">\r
433         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
434         <td class="sig">\r
435         <a id="Ext.Viewport-monitorResize"></a>\r
436             <b>monitorResize</b> : Boolean            <div class="mdesc">\r
437                         <div class="short">True to automatically monitor window resize events to handle anything that is sensitive to the current size of the vi...</div>\r
438             <div class="long">\r
439                 True to automatically monitor window resize events to handle anything that is sensitive to the current size of the viewport. This value is typically managed by the chosen <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> and should not need to be set manually.            </div>\r
440                         </div>\r
441         </td>\r
442         <td class="msource"><a ext:cls="Ext.Container" ext:member="#monitorResize" href="output/Ext.Container.html#monitorResize">Container</a></td>\r
443     </tr>\r
444         <tr class="config-row inherited expandable">\r
445         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
446         <td class="sig">\r
447         <a id="Ext.Viewport-overCls"></a>\r
448             <b>overCls</b> : String            <div class="mdesc">\r
449                         <div class="short">An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and...</div>\r
450             <div class="long">\r
451                 An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and removed when the mouse moves out. (defaults to ''). This can be useful for adding customized "active" or "hover" styles to the component or any of its children using standard CSS rules.            </div>\r
452                         </div>\r
453         </td>\r
454         <td class="msource"><a ext:cls="Ext.Component" ext:member="#overCls" href="output/Ext.Component.html#overCls">Component</a></td>\r
455     </tr>\r
456         <tr class="config-row inherited alt">\r
457         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
458         <td class="sig">\r
459         <a id="Ext.Viewport-pageX"></a>\r
460             <b>pageX</b> : Number            <div class="mdesc">\r
461                             The page level x coordinate for this component if contained within a positioning container.                        </div>\r
462         </td>\r
463         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#pageX" href="output/Ext.BoxComponent.html#pageX">BoxComponent</a></td>\r
464     </tr>\r
465         <tr class="config-row inherited">\r
466         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
467         <td class="sig">\r
468         <a id="Ext.Viewport-pageY"></a>\r
469             <b>pageY</b> : Number            <div class="mdesc">\r
470                             The page level y coordinate for this component if contained within a positioning container.                        </div>\r
471         </td>\r
472         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#pageY" href="output/Ext.BoxComponent.html#pageY">BoxComponent</a></td>\r
473     </tr>\r
474         <tr class="config-row inherited alt expandable">\r
475         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
476         <td class="sig">\r
477         <a id="Ext.Viewport-plugins"></a>\r
478             <b>plugins</b> : Object/Array            <div class="mdesc">\r
479                         <div class="short">An object or array of objects that will provide custom functionality for this component. The only requirement for a v...</div>\r
480             <div class="long">\r
481                 An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality.            </div>\r
482                         </div>\r
483         </td>\r
484         <td class="msource"><a ext:cls="Ext.Component" ext:member="#plugins" href="output/Ext.Component.html#plugins">Component</a></td>\r
485     </tr>\r
486         <tr class="config-row inherited expandable">\r
487         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
488         <td class="sig">\r
489         <a id="Ext.Viewport-stateEvents"></a>\r
490             <b>stateEvents</b> : Array            <div class="mdesc">\r
491                         <div class="short">An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be...</div>\r
492             <div class="long">\r
493                 An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be any types of events supported by this component, including browser or custom events (e.g., ['click', 'customerchange']). <p>See <a ext:cls="Ext.Component" ext:member="stateful" href="output/Ext.Component.html#stateful">stateful</a> for an explanation of saving and restoring Component state.</p>            </div>\r
494                         </div>\r
495         </td>\r
496         <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateEvents" href="output/Ext.Component.html#stateEvents">Component</a></td>\r
497     </tr>\r
498         <tr class="config-row inherited alt expandable">\r
499         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
500         <td class="sig">\r
501         <a id="Ext.Viewport-stateId"></a>\r
502             <b>stateId</b> : String            <div class="mdesc">\r
503                         <div class="short">The unique id for this component to use for state management purposes (defaults to the component id if one was set, o...</div>\r
504             <div class="long">\r
505                 The unique id for this component to use for state management purposes (defaults to the component id if one was set, otherwise null if the component is using a generated id). <p>See <a ext:cls="Ext.Component" ext:member="stateful" href="output/Ext.Component.html#stateful">stateful</a> for an explanation of saving and restoring Component state.</p>            </div>\r
506                         </div>\r
507         </td>\r
508         <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>\r
509     </tr>\r
510         <tr class="config-row inherited expandable">\r
511         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
512         <td class="sig">\r
513         <a id="Ext.Viewport-stateful"></a>\r
514             <b>stateful</b> : Boolean            <div class="mdesc">\r
515                         <div class="short">A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startu...</div>\r
516             <div class="long">\r
517                 <p>A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startup. The component must have either a <a ext:cls="Ext.Component" ext:member="stateId" href="output/Ext.Component.html#stateId">stateId</a> or <a ext:cls="Ext.Component" ext:member="id" href="output/Ext.Component.html#id">id</a> assigned for state to be managed. Auto-generated ids are not guaranteed to be stable across page loads and cannot be relied upon to save and restore the same state for a component.<p> For state saving to work, the state manager's provider must have been set to an implementation of <a ext:cls="Ext.state.Provider" href="output/Ext.state.Provider.html">Ext.state.Provider</a> which overrides the <a ext:cls="Ext.state.Provider" ext:member="set" href="output/Ext.state.Provider.html#set">set</a> and <a ext:cls="Ext.state.Provider" ext:member="get" href="output/Ext.state.Provider.html#get">get</a> methods to save and recall name/value pairs. A built-in implementation, <a ext:cls="Ext.state.CookieProvider" href="output/Ext.state.CookieProvider.html">Ext.state.CookieProvider</a> is available.</p> <p>To set the state provider for the current page:</p> <pre><code>Ext.state.Manager.setProvider(<b>new</b> Ext.state.CookieProvider());</code></pre> <p>Components attempt to save state when one of the events listed in the <a ext:cls="Ext.Component" ext:member="stateEvents" href="output/Ext.Component.html#stateEvents">stateEvents</a> configuration fires.</p> <p>You can perform extra processing on state save and restore by attaching handlers to the <a ext:cls="Ext.Component" ext:member="beforestaterestore" href="output/Ext.Component.html#beforestaterestore">beforestaterestore</a>, <a ext:cls="Ext.Component" ext:member="staterestore" href="output/Ext.Component.html#staterestore">staterestore</a>, <a ext:cls="Ext.Component" ext:member="beforestatesave" href="output/Ext.Component.html#beforestatesave">beforestatesave</a> and <a ext:cls="Ext.Component" ext:member="statesave" href="output/Ext.Component.html#statesave">statesave</a> events</p>            </div>\r
518                         </div>\r
519         </td>\r
520         <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateful" href="output/Ext.Component.html#stateful">Component</a></td>\r
521     </tr>\r
522         <tr class="config-row inherited alt expandable">\r
523         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
524         <td class="sig">\r
525         <a id="Ext.Viewport-style"></a>\r
526             <b>style</b> : String            <div class="mdesc">\r
527                         <div class="short">A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.app...</div>\r
528             <div class="long">\r
529                 A custom style specification to be applied to this component's Element. Should be a valid argument to <a ext:cls="Ext.Element" ext:member="applyStyles" href="output/Ext.Element.html#applyStyles">Ext.Element.applyStyles</a>.            </div>\r
530                         </div>\r
531         </td>\r
532         <td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>\r
533     </tr>\r
534         <tr class="config-row inherited">\r
535         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
536         <td class="sig">\r
537         <a id="Ext.Viewport-x"></a>\r
538             <b>x</b> : Number            <div class="mdesc">\r
539                             The local x (left) coordinate for this component if contained within a positioning container.                        </div>\r
540         </td>\r
541         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#x" href="output/Ext.BoxComponent.html#x">BoxComponent</a></td>\r
542     </tr>\r
543         <tr class="config-row inherited alt expandable">\r
544         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
545         <td class="sig">\r
546         <a id="Ext.Viewport-xtype"></a>\r
547             <b>xtype</b> : String            <div class="mdesc">\r
548                         <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>\r
549             <div class="long">\r
550                 The registered xtype to create. This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed <a ext:cls="Ext.Component" href="output/Ext.Component.html">here</a>. <br><br> If you subclass Components to create your own Components, you may register them using <a ext:cls="Ext.ComponentMgr" ext:member="registerType" href="output/Ext.ComponentMgr.html#registerType">Ext.ComponentMgr.registerType</a> in order to be able to take advantage of lazy instantiation and rendering.            </div>\r
551                         </div>\r
552         </td>\r
553         <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>\r
554     </tr>\r
555         <tr class="config-row inherited">\r
556         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
557         <td class="sig">\r
558         <a id="Ext.Viewport-y"></a>\r
559             <b>y</b> : Number            <div class="mdesc">\r
560                             The local y (top) coordinate for this component if contained within a positioning container.                        </div>\r
561         </td>\r
562         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#y" href="output/Ext.BoxComponent.html#y">BoxComponent</a></td>\r
563     </tr>\r
564             </table>
565                 <a id="Ext.Viewport-props"></a>
566         <h2>Public Properties</h2>
567                 <table cellspacing="0" class="member-table">
568             <tr>
569                 <th class="sig-header" colspan="2">Property</th>
570                 <th class="msource-header">Defined By</th>
571             </tr>
572                 <tr class="property-row inherited">\r
573         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
574         <td class="sig">\r
575         <a id="Ext.Viewport-disabled"></a>\r
576             <b>disabled</b> : Boolean            <div class="mdesc">\r
577                             True if this component is disabled. Read-only.                        </div>\r
578         </td>\r
579         <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>\r
580     </tr>\r
581         <tr class="property-row inherited alt">\r
582         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
583         <td class="sig">\r
584         <a id="Ext.Viewport-hidden"></a>\r
585             <b>hidden</b> : Boolean            <div class="mdesc">\r
586                             
587 True if this component is hidden. Read-only.                        </div>\r
588         </td>\r
589         <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>\r
590     </tr>\r
591         <tr class="property-row inherited">\r
592         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
593         <td class="sig">\r
594         <a id="Ext.Viewport-initialConfig"></a>\r
595             <b>initialConfig</b> : Object            <div class="mdesc">\r
596                             This Component's initial configuration specification. Read-only.                        </div>\r
597         </td>\r
598         <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>\r
599     </tr>\r
600         <tr class="property-row inherited alt">\r
601         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
602         <td class="sig">\r
603         <a id="Ext.Viewport-items"></a>\r
604             <b>items</b> : MixedCollection            <div class="mdesc">\r
605                             The collection of components in this container as a <a ext:cls="Ext.util.MixedCollection" href="output/Ext.util.MixedCollection.html">Ext.util.MixedCollection</a>                        </div>\r
606         </td>\r
607         <td class="msource"><a ext:cls="Ext.Container" ext:member="#items" href="output/Ext.Container.html#items">Container</a></td>\r
608     </tr>\r
609         <tr class="property-row inherited expandable">\r
610         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
611         <td class="sig">\r
612         <a id="Ext.Viewport-ownerCt"></a>\r
613             <b>ownerCt</b> : Ext.Container            <div class="mdesc">\r
614                         <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically when
615 the component is added to a...</div>\r
616             <div class="long">\r
617                 The component's owner <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (defaults to undefined, and is set automatically when
618 the component is added to a container).  Read-only.            </div>\r
619                         </div>\r
620         </td>\r
621         <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td>\r
622     </tr>\r
623         <tr class="property-row inherited alt">\r
624         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
625         <td class="sig">\r
626         <a id="Ext.Viewport-rendered"></a>\r
627             <b>rendered</b> : Boolean            <div class="mdesc">\r
628                             True if this component has been rendered. Read-only.                        </div>\r
629         </td>\r
630         <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td>\r
631     </tr>\r
632             </table>
633                 <a id="Ext.Viewport-methods"></a>
634         <h2>Public Methods</h2>
635                 <table cellspacing="0" class="member-table">
636             <tr>
637                 <th class="sig-header" colspan="2">Method</th>
638                 <th class="msource-header">Defined By</th>
639             </tr>
640                 <tr class="method-row expandable">\r
641         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
642         <td class="sig">\r
643         <a id="Ext.Viewport-Viewport"></a>\r
644             <b>Viewport</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">\r
645                         <div class="short">Create a new Viewport</div>\r
646             <div class="long">\r
647                 Create a new Viewport    <div class="mdetail-params">\r
648         <strong>Parameters:</strong>\r
649         <ul><li><code>config</code> : Object<div class="sub-desc">The config object</div></li>        </ul>\r
650         <strong>Returns:</strong>\r
651         <ul>\r
652             <li><code></code></li>\r
653         </ul>\r
654     </div>\r
655                 </div>\r
656                         </div>\r
657         </td>\r
658         <td class="msource">Viewport</td>\r
659     </tr>\r
660         <tr class="method-row inherited alt expandable">\r
661         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
662         <td class="sig">\r
663         <a id="Ext.Viewport-add"></a>\r
664             <b>add</b>(&nbsp;<code>Ext.Component/Object component</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
665                         <div class="short">Adds a Component to this Container. Fires the beforeadd event before
666 adding, then fires the add event after the compo...</div>\r
667             <div class="long">\r
668                 <p>Adds a <a ext:cls="Ext.Component" href="output/Ext.Component.html">Component</a> to this Container. Fires the <a ext:cls="Ext.Container" ext:member="beforeadd" href="output/Ext.Container.html#beforeadd">beforeadd</a> event before
669 adding, then fires the <a ext:cls="Ext.Container" ext:member="add" href="output/Ext.Container.html#add">add</a> event after the component has been added.</p>
670 <p>You will never call the render method of a child Component when using a Container.
671 Child Components are rendered by this Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager when
672 this Container is first rendered.</p>
673 <p>Certain layout managers allow dynamic addition of child components. Those that do
674 include <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a>, <a ext:cls="Ext.layout.AnchorLayout" href="output/Ext.layout.AnchorLayout.html">Ext.layout.AnchorLayout</a>,
675 <a ext:cls="Ext.layout.FormLayout" href="output/Ext.layout.FormLayout.html">Ext.layout.FormLayout</a>, <a ext:cls="Ext.layout.TableLayout" href="output/Ext.layout.TableLayout.html">Ext.layout.TableLayout</a>.</p>
676 <p>If the Container is already rendered when add is called, you may need to call
677 <a ext:cls="Ext.Container" ext:member="doLayout" href="output/Ext.Container.html#doLayout">doLayout</a> to refresh the view which causes any unrendered child Components
678 to be rendered. This is required so that you can add multiple child components if needed
679 while only refreshing the layout once.</p>
680 <p>When creating complex UIs, it is important to remember that sizing and positioning
681 of child items is the responsibility of the Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager. If
682 you expect child items to be sized in response to user interactions, you must
683 specify a layout manager which creates and manages the type of layout you have in mind.</p>
684 <p><b>Omitting the <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> config means that a basic layout manager is
685 used which does nothnig but render child components sequentially into the Container.
686 No sizing or positioning will be performed in this situation.</b></p>    <div class="mdetail-params">\r
687         <strong>Parameters:</strong>\r
688         <ul><li><code>component</code> : Ext.Component/Object<div class="sub-desc">The Component to add.<br><br>
689 Ext uses lazy rendering, and will only render the added Component should
690 it become necessary, that is: when the Container is layed out either on first render
691 or in response to a <a ext:cls="Ext.Container" ext:member="doLayout" href="output/Ext.Container.html#doLayout">doLayout</a> call.<br><br>
692 A Component config object may be passed instead of an instantiated Component object.
693 The type of Component created from a config object is determined by the <a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">xtype</a>
694 config property. If no xtype is configured, the Container's <a ext:cls="Ext.Container" ext:member="defaultType" href="output/Ext.Container.html#defaultType">defaultType</a>
695 is used.<br><br>
696 For a list of all available xtypes, see <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>.</div></li>        </ul>\r
697         <strong>Returns:</strong>\r
698         <ul>\r
699             <li><code>Ext.Component</code><div class="sub-desc">component The Component (or config object) that was added with the Container's default config values applied. <p>example:</p><pre><code> var myNewGrid = new Ext.grid.GridPanel({ store: myStore, colModel: myColModel }); myTabPanel.add(myNewGrid); myTabPanel.setActiveTab(myNewGrid); </code></pre></div></li>\r
700         </ul>\r
701     </div>\r
702                 </div>\r
703                         </div>\r
704         </td>\r
705         <td class="msource"><a ext:cls="Ext.Container" ext:member="#add" href="output/Ext.Container.html#add">Container</a></td>\r
706     </tr>\r
707         <tr class="method-row inherited expandable">\r
708         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
709         <td class="sig">\r
710         <a id="Ext.Viewport-addClass"></a>\r
711             <b>addClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void            <div class="mdesc">\r
712                         <div class="short">Adds a CSS class to the component's underlying element.</div>\r
713             <div class="long">\r
714                 Adds a CSS class to the component's underlying element.    <div class="mdetail-params">\r
715         <strong>Parameters:</strong>\r
716         <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li>        </ul>\r
717         <strong>Returns:</strong>\r
718         <ul>\r
719             <li><code>void</code></li>\r
720         </ul>\r
721     </div>\r
722                 </div>\r
723                         </div>\r
724         </td>\r
725         <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td>\r
726     </tr>\r
727         <tr class="method-row inherited alt expandable">\r
728         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
729         <td class="sig">\r
730         <a id="Ext.Viewport-addEvents"></a>\r
731             <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">\r
732                         <div class="short">Used to define events on this Observable</div>\r
733             <div class="long">\r
734                 Used to define events on this Observable    <div class="mdetail-params">\r
735         <strong>Parameters:</strong>\r
736         <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>\r
737         <strong>Returns:</strong>\r
738         <ul>\r
739             <li><code>void</code></li>\r
740         </ul>\r
741     </div>\r
742                 </div>\r
743                         </div>\r
744         </td>\r
745         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>\r
746     </tr>\r
747         <tr class="method-row inherited expandable">\r
748         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
749         <td class="sig">\r
750         <a id="Ext.Viewport-addListener"></a>\r
751             <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">\r
752                         <div class="short">Appends an event handler to this component</div>\r
753             <div class="long">\r
754                 Appends an event handler to this component    <div class="mdetail-params">\r
755         <strong>Parameters:</strong>\r
756         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
757 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
758 properties. This may contain any of the following properties:<ul>
759 <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
760 <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
761 <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
762 <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
763 by the specified number of milliseconds. If the event fires again within that time, the original
764 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
765 </ul><br>
766 <p>
767 <b>Combining Options</b><br>
768 Using the options argument, it is possible to combine different types of listeners:<br>
769 <br>
770 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
771 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
772     single: true,
773     delay: 100,
774     forumId: 4
775 });</code></pre>
776 <p>
777 <b>Attaching multiple handlers in 1 call</b><br>
778 The method also allows for a single argument to be passed which is a config object containing properties
779 which specify multiple handlers.
780 <p>
781 <pre><code>foo.on({
782     <em>'click'</em> : {
783         fn: <b>this</b>.onClick,
784         scope: <b>this</b>,
785         delay: 100
786     },
787     <em>'mouseover'</em> : {
788         fn: <b>this</b>.onMouseOver,
789         scope: <b>this</b>
790     },
791     <em>'mouseout'</em> : {
792         fn: <b>this</b>.onMouseOut,
793         scope: <b>this</b>
794     }
795 });</code></pre>
796 <p>
797 Or a shorthand syntax:<br>
798 <pre><code>foo.on({
799     <em>'click'</em> : <b>this</b>.onClick,
800     <em>'mouseover'</em> : <b>this</b>.onMouseOver,
801     <em>'mouseout'</em> : <b>this</b>.onMouseOut,
802      scope: <b>this</b>
803 });</code></pre></div></li>        </ul>\r
804         <strong>Returns:</strong>\r
805         <ul>\r
806             <li><code>void</code></li>\r
807         </ul>\r
808     </div>\r
809                 </div>\r
810                         </div>\r
811         </td>\r
812         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>\r
813     </tr>\r
814         <tr class="method-row inherited alt expandable">\r
815         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
816         <td class="sig">\r
817         <a id="Ext.Viewport-applyToMarkup"></a>\r
818             <b>applyToMarkup</b>(&nbsp;<code>String/HTMLElement el</code>&nbsp;) : void            <div class="mdesc">\r
819                         <div class="short">Apply this component to existing markup that is valid. With this function, no call to render() is required.</div>\r
820             <div class="long">\r
821                 Apply this component to existing markup that is valid. With this function, no call to render() is required.    <div class="mdetail-params">\r
822         <strong>Parameters:</strong>\r
823         <ul><li><code>el</code> : String/HTMLElement<div class="sub-desc"></div></li>        </ul>\r
824         <strong>Returns:</strong>\r
825         <ul>\r
826             <li><code>void</code></li>\r
827         </ul>\r
828     </div>\r
829                 </div>\r
830                         </div>\r
831         </td>\r
832         <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyToMarkup" href="output/Ext.Component.html#applyToMarkup">Component</a></td>\r
833     </tr>\r
834         <tr class="method-row inherited expandable">\r
835         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
836         <td class="sig">\r
837         <a id="Ext.Viewport-bubble"></a>\r
838             <b>bubble</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : void            <div class="mdesc">\r
839                         <div class="short">Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of...</div>\r
840             <div class="long">\r
841                 Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (<i>this</i>) of
842 function call will be the scope provided or the current component. The arguments to the function
843 will be the args provided or the current component. If the function returns false at any point,
844 the bubble is stopped.    <div class="mdetail-params">\r
845         <strong>Parameters:</strong>\r
846         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current component)</div></li>        </ul>\r
847         <strong>Returns:</strong>\r
848         <ul>\r
849             <li><code>void</code></li>\r
850         </ul>\r
851     </div>\r
852                 </div>\r
853                         </div>\r
854         </td>\r
855         <td class="msource"><a ext:cls="Ext.Container" ext:member="#bubble" href="output/Ext.Container.html#bubble">Container</a></td>\r
856     </tr>\r
857         <tr class="method-row inherited alt expandable">\r
858         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
859         <td class="sig">\r
860         <a id="Ext.Viewport-cascade"></a>\r
861             <b>cascade</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : void            <div class="mdesc">\r
862                         <div class="short">Cascades down the component/container heirarchy from this component (called first), calling the specified function wi...</div>\r
863             <div class="long">\r
864                 Cascades down the component/container heirarchy from this component (called first), calling the specified function with
865 each component. The scope (<i>this</i>) of
866 function call will be the scope provided or the current component. The arguments to the function
867 will be the args provided or the current component. If the function returns false at any point,
868 the cascade is stopped on that branch.    <div class="mdetail-params">\r
869         <strong>Parameters:</strong>\r
870         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current component)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (defaults to passing the current component)</div></li>        </ul>\r
871         <strong>Returns:</strong>\r
872         <ul>\r
873             <li><code>void</code></li>\r
874         </ul>\r
875     </div>\r
876                 </div>\r
877                         </div>\r
878         </td>\r
879         <td class="msource"><a ext:cls="Ext.Container" ext:member="#cascade" href="output/Ext.Container.html#cascade">Container</a></td>\r
880     </tr>\r
881         <tr class="method-row inherited expandable">\r
882         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
883         <td class="sig">\r
884         <a id="Ext.Viewport-cloneConfig"></a>\r
885             <b>cloneConfig</b>(&nbsp;<code>Object overrides</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
886                         <div class="short">Clone the current component using the original config values passed into this instance by default.</div>\r
887             <div class="long">\r
888                 Clone the current component using the original config values passed into this instance by default.    <div class="mdetail-params">\r
889         <strong>Parameters:</strong>\r
890         <ul><li><code>overrides</code> : Object<div class="sub-desc">A new config containing any properties to override in the cloned version.
891 An id property can be passed on this object, otherwise one will be generated to avoid duplicates.</div></li>        </ul>\r
892         <strong>Returns:</strong>\r
893         <ul>\r
894             <li><code>Ext.Component</code><div class="sub-desc">clone The cloned copy of this component</div></li>\r
895         </ul>\r
896     </div>\r
897                 </div>\r
898                         </div>\r
899         </td>\r
900         <td class="msource"><a ext:cls="Ext.Component" ext:member="#cloneConfig" href="output/Ext.Component.html#cloneConfig">Component</a></td>\r
901     </tr>\r
902         <tr class="method-row inherited alt expandable">\r
903         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
904         <td class="sig">\r
905         <a id="Ext.Viewport-destroy"></a>\r
906             <b>destroy</b>() : void            <div class="mdesc">\r
907                         <div class="short">Destroys this component by purging any event listeners, removing the component's element from the DOM,
908 removing the c...</div>\r
909             <div class="long">\r
910                 Destroys this component by purging any event listeners, removing the component's element from the DOM,
911 removing the component from its <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (if applicable) and unregistering it from
912 <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>.  Destruction is generally handled automatically by the framework and this method
913 should usually not need to be called directly.    <div class="mdetail-params">\r
914         <strong>Parameters:</strong>\r
915         <ul><li>None.</li>        </ul>\r
916         <strong>Returns:</strong>\r
917         <ul>\r
918             <li><code>void</code></li>\r
919         </ul>\r
920     </div>\r
921                 </div>\r
922                         </div>\r
923         </td>\r
924         <td class="msource"><a ext:cls="Ext.Component" ext:member="#destroy" href="output/Ext.Component.html#destroy">Component</a></td>\r
925     </tr>\r
926         <tr class="method-row inherited expandable">\r
927         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
928         <td class="sig">\r
929         <a id="Ext.Viewport-disable"></a>\r
930             <b>disable</b>() : Ext.Component            <div class="mdesc">\r
931                         <div class="short">Disable this component.</div>\r
932             <div class="long">\r
933                 Disable this component.    <div class="mdetail-params">\r
934         <strong>Parameters:</strong>\r
935         <ul><li>None.</li>        </ul>\r
936         <strong>Returns:</strong>\r
937         <ul>\r
938             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
939         </ul>\r
940     </div>\r
941                 </div>\r
942                         </div>\r
943         </td>\r
944         <td class="msource"><a ext:cls="Ext.Component" ext:member="#disable" href="output/Ext.Component.html#disable">Component</a></td>\r
945     </tr>\r
946         <tr class="method-row inherited alt expandable">\r
947         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
948         <td class="sig">\r
949         <a id="Ext.Viewport-doLayout"></a>\r
950             <b>doLayout</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : void            <div class="mdesc">\r
951                         <div class="short">Force this container's layout to be recalculated. A call to this function is required after adding a new component
952 to...</div>\r
953             <div class="long">\r
954                 Force this container's layout to be recalculated. A call to this function is required after adding a new component
955 to an already rendered container, or possibly after changing sizing/position properties of child components.    <div class="mdetail-params">\r
956         <strong>Parameters:</strong>\r
957         <ul><li><code>shallow</code> : Boolean<div class="sub-desc">(optional) True to only calc the layout of this component, and let child components auto
958 calc layouts as required (defaults to false, which calls doLayout recursively for each subcontainer)</div></li>        </ul>\r
959         <strong>Returns:</strong>\r
960         <ul>\r
961             <li><code>void</code></li>\r
962         </ul>\r
963     </div>\r
964                 </div>\r
965                         </div>\r
966         </td>\r
967         <td class="msource"><a ext:cls="Ext.Container" ext:member="#doLayout" href="output/Ext.Container.html#doLayout">Container</a></td>\r
968     </tr>\r
969         <tr class="method-row inherited expandable">\r
970         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
971         <td class="sig">\r
972         <a id="Ext.Viewport-enable"></a>\r
973             <b>enable</b>() : Ext.Component            <div class="mdesc">\r
974                         <div class="short">Enable this component.</div>\r
975             <div class="long">\r
976                 Enable this component.    <div class="mdetail-params">\r
977         <strong>Parameters:</strong>\r
978         <ul><li>None.</li>        </ul>\r
979         <strong>Returns:</strong>\r
980         <ul>\r
981             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
982         </ul>\r
983     </div>\r
984                 </div>\r
985                         </div>\r
986         </td>\r
987         <td class="msource"><a ext:cls="Ext.Component" ext:member="#enable" href="output/Ext.Component.html#enable">Component</a></td>\r
988     </tr>\r
989         <tr class="method-row inherited alt expandable">\r
990         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
991         <td class="sig">\r
992         <a id="Ext.Viewport-find"></a>\r
993             <b>find</b>(&nbsp;<code>String prop</code>, <code>String value</code>&nbsp;) : Array            <div class="mdesc">\r
994                         <div class="short">Find a component under this container at any level by property</div>\r
995             <div class="long">\r
996                 Find a component under this container at any level by property    <div class="mdetail-params">\r
997         <strong>Parameters:</strong>\r
998         <ul><li><code>prop</code> : String<div class="sub-desc"></div></li><li><code>value</code> : String<div class="sub-desc"></div></li>        </ul>\r
999         <strong>Returns:</strong>\r
1000         <ul>\r
1001             <li><code>Array</code><div class="sub-desc">Array of Ext.Components</div></li>\r
1002         </ul>\r
1003     </div>\r
1004                 </div>\r
1005                         </div>\r
1006         </td>\r
1007         <td class="msource"><a ext:cls="Ext.Container" ext:member="#find" href="output/Ext.Container.html#find">Container</a></td>\r
1008     </tr>\r
1009         <tr class="method-row inherited expandable">\r
1010         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1011         <td class="sig">\r
1012         <a id="Ext.Viewport-findBy"></a>\r
1013             <b>findBy</b>(&nbsp;<code>Function fcn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Array            <div class="mdesc">\r
1014                         <div class="short">Find a component under this container at any level by a custom function. If the passed function returns
1015 true, the com...</div>\r
1016             <div class="long">\r
1017                 Find a component under this container at any level by a custom function. If the passed function returns
1018 true, the component will be included in the results. The passed function is called with the arguments (component, this container).    <div class="mdetail-params">\r
1019         <strong>Parameters:</strong>\r
1020         <ul><li><code>fcn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>\r
1021         <strong>Returns:</strong>\r
1022         <ul>\r
1023             <li><code>Array</code><div class="sub-desc">Array of Ext.Components</div></li>\r
1024         </ul>\r
1025     </div>\r
1026                 </div>\r
1027                         </div>\r
1028         </td>\r
1029         <td class="msource"><a ext:cls="Ext.Container" ext:member="#findBy" href="output/Ext.Container.html#findBy">Container</a></td>\r
1030     </tr>\r
1031         <tr class="method-row inherited alt expandable">\r
1032         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1033         <td class="sig">\r
1034         <a id="Ext.Viewport-findById"></a>\r
1035             <b>findById</b>(&nbsp;<code>String id</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
1036                         <div class="short">Find a component under this container at any level by id</div>\r
1037             <div class="long">\r
1038                 Find a component under this container at any level by id    <div class="mdetail-params">\r
1039         <strong>Parameters:</strong>\r
1040         <ul><li><code>id</code> : String<div class="sub-desc"></div></li>        </ul>\r
1041         <strong>Returns:</strong>\r
1042         <ul>\r
1043             <li><code>Ext.Component</code></li>\r
1044         </ul>\r
1045     </div>\r
1046                 </div>\r
1047                         </div>\r
1048         </td>\r
1049         <td class="msource"><a ext:cls="Ext.Container" ext:member="#findById" href="output/Ext.Container.html#findById">Container</a></td>\r
1050     </tr>\r
1051         <tr class="method-row inherited expandable">\r
1052         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1053         <td class="sig">\r
1054         <a id="Ext.Viewport-findByType"></a>\r
1055             <b>findByType</b>(&nbsp;<code>String/Class xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : Array            <div class="mdesc">\r
1056                         <div class="short">Find a component under this container at any level by xtype or class</div>\r
1057             <div class="long">\r
1058                 Find a component under this container at any level by xtype or class    <div class="mdetail-params">\r
1059         <strong>Parameters:</strong>\r
1060         <ul><li><code>xtype</code> : String/Class<div class="sub-desc">The xtype string for a component, or the class of the component directly</div></li><li><code>shallow</code> : Boolean<div class="sub-desc">(optional) False to check whether this Component is descended from the xtype (this is
1061 the default), or true to check whether this Component is directly of the specified xtype.</div></li>        </ul>\r
1062         <strong>Returns:</strong>\r
1063         <ul>\r
1064             <li><code>Array</code><div class="sub-desc">Array of Ext.Components</div></li>\r
1065         </ul>\r
1066     </div>\r
1067                 </div>\r
1068                         </div>\r
1069         </td>\r
1070         <td class="msource"><a ext:cls="Ext.Container" ext:member="#findByType" href="output/Ext.Container.html#findByType">Container</a></td>\r
1071     </tr>\r
1072         <tr class="method-row inherited alt expandable">\r
1073         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1074         <td class="sig">\r
1075         <a id="Ext.Viewport-findParentBy"></a>\r
1076             <b>findParentBy</b>(&nbsp;<code>Function fcn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Ext.Container            <div class="mdesc">\r
1077                         <div class="short">Find a container above this component at any level by a custom function. If the passed function returns
1078 true, the con...</div>\r
1079             <div class="long">\r
1080                 Find a container above this component at any level by a custom function. If the passed function returns
1081 true, the container will be returned. The passed function is called with the arguments (container, this component).    <div class="mdetail-params">\r
1082         <strong>Parameters:</strong>\r
1083         <ul><li><code>fcn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>\r
1084         <strong>Returns:</strong>\r
1085         <ul>\r
1086             <li><code>Ext.Container</code><div class="sub-desc">The first Container for which the custom function returns true</div></li>\r
1087         </ul>\r
1088     </div>\r
1089                 </div>\r
1090                         </div>\r
1091         </td>\r
1092         <td class="msource"><a ext:cls="Ext.Component" ext:member="#findParentBy" href="output/Ext.Component.html#findParentBy">Component</a></td>\r
1093     </tr>\r
1094         <tr class="method-row inherited expandable">\r
1095         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1096         <td class="sig">\r
1097         <a id="Ext.Viewport-findParentByType"></a>\r
1098             <b>findParentByType</b>(&nbsp;<code>String/Class xtype</code>&nbsp;) : Ext.Container            <div class="mdesc">\r
1099                         <div class="short">Find a container above this component at any level by xtype or class</div>\r
1100             <div class="long">\r
1101                 Find a container above this component at any level by xtype or class    <div class="mdetail-params">\r
1102         <strong>Parameters:</strong>\r
1103         <ul><li><code>xtype</code> : String/Class<div class="sub-desc">The xtype string for a component, or the class of the component directly</div></li>        </ul>\r
1104         <strong>Returns:</strong>\r
1105         <ul>\r
1106             <li><code>Ext.Container</code><div class="sub-desc">The first Container which matches the given xtype or class</div></li>\r
1107         </ul>\r
1108     </div>\r
1109                 </div>\r
1110                         </div>\r
1111         </td>\r
1112         <td class="msource"><a ext:cls="Ext.Component" ext:member="#findParentByType" href="output/Ext.Component.html#findParentByType">Component</a></td>\r
1113     </tr>\r
1114         <tr class="method-row inherited alt expandable">\r
1115         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1116         <td class="sig">\r
1117         <a id="Ext.Viewport-fireEvent"></a>\r
1118             <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">\r
1119                         <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>\r
1120             <div class="long">\r
1121                 Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">\r
1122         <strong>Parameters:</strong>\r
1123         <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>\r
1124         <strong>Returns:</strong>\r
1125         <ul>\r
1126             <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>\r
1127         </ul>\r
1128     </div>\r
1129                 </div>\r
1130                         </div>\r
1131         </td>\r
1132         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>\r
1133     </tr>\r
1134         <tr class="method-row inherited expandable">\r
1135         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1136         <td class="sig">\r
1137         <a id="Ext.Viewport-focus"></a>\r
1138             <b>focus</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean selectText</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Number delay</code>]</span>&nbsp;) : Ext.Component            <div class="mdesc">\r
1139                         <div class="short">Try to focus this component.</div>\r
1140             <div class="long">\r
1141                 Try to focus this component.    <div class="mdetail-params">\r
1142         <strong>Parameters:</strong>\r
1143         <ul><li><code>selectText</code> : Boolean<div class="sub-desc">(optional) If applicable, true to also select the text in this component</div></li><li><code>delay</code> : Boolean/Number<div class="sub-desc">(optional) Delay the focus this number of milliseconds (true for 10 milliseconds)</div></li>        </ul>\r
1144         <strong>Returns:</strong>\r
1145         <ul>\r
1146             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
1147         </ul>\r
1148     </div>\r
1149                 </div>\r
1150                         </div>\r
1151         </td>\r
1152         <td class="msource"><a ext:cls="Ext.Component" ext:member="#focus" href="output/Ext.Component.html#focus">Component</a></td>\r
1153     </tr>\r
1154         <tr class="method-row inherited alt expandable">\r
1155         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1156         <td class="sig">\r
1157         <a id="Ext.Viewport-getBox"></a>\r
1158             <b>getBox</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean local</code>]</span>&nbsp;) : Object            <div class="mdesc">\r
1159                         <div class="short">Gets the current box measurements of the component's underlying element.</div>\r
1160             <div class="long">\r
1161                 Gets the current box measurements of the component's underlying element.    <div class="mdetail-params">\r
1162         <strong>Parameters:</strong>\r
1163         <ul><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page XY (defaults to false)</div></li>        </ul>\r
1164         <strong>Returns:</strong>\r
1165         <ul>\r
1166             <li><code>Object</code><div class="sub-desc">box An object in the format {x, y, width, height}</div></li>\r
1167         </ul>\r
1168     </div>\r
1169                 </div>\r
1170                         </div>\r
1171         </td>\r
1172         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getBox" href="output/Ext.BoxComponent.html#getBox">BoxComponent</a></td>\r
1173     </tr>\r
1174         <tr class="method-row inherited expandable">\r
1175         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1176         <td class="sig">\r
1177         <a id="Ext.Viewport-getComponent"></a>\r
1178             <b>getComponent</b>(&nbsp;<code>String/Number id</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
1179                         <div class="short">Gets a direct child Component by id, or by index.</div>\r
1180             <div class="long">\r
1181                 Gets a direct child Component by id, or by index.    <div class="mdetail-params">\r
1182         <strong>Parameters:</strong>\r
1183         <ul><li><code>id</code> : String/Number<div class="sub-desc">or index of child Component to return.</div></li>        </ul>\r
1184         <strong>Returns:</strong>\r
1185         <ul>\r
1186             <li><code>Ext.Component</code></li>\r
1187         </ul>\r
1188     </div>\r
1189                 </div>\r
1190                         </div>\r
1191         </td>\r
1192         <td class="msource"><a ext:cls="Ext.Container" ext:member="#getComponent" href="output/Ext.Container.html#getComponent">Container</a></td>\r
1193     </tr>\r
1194         <tr class="method-row inherited alt expandable">\r
1195         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1196         <td class="sig">\r
1197         <a id="Ext.Viewport-getEl"></a>\r
1198             <b>getEl</b>() : Ext.Element            <div class="mdesc">\r
1199                         <div class="short">Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.</div>\r
1200             <div class="long">\r
1201                 Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.    <div class="mdetail-params">\r
1202         <strong>Parameters:</strong>\r
1203         <ul><li>None.</li>        </ul>\r
1204         <strong>Returns:</strong>\r
1205         <ul>\r
1206             <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>\r
1207         </ul>\r
1208     </div>\r
1209                 </div>\r
1210                         </div>\r
1211         </td>\r
1212         <td class="msource"><a ext:cls="Ext.Component" ext:member="#getEl" href="output/Ext.Component.html#getEl">Component</a></td>\r
1213     </tr>\r
1214         <tr class="method-row inherited expandable">\r
1215         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1216         <td class="sig">\r
1217         <a id="Ext.Viewport-getId"></a>\r
1218             <b>getId</b>() : String            <div class="mdesc">\r
1219                         <div class="short">Returns the id of this component.</div>\r
1220             <div class="long">\r
1221                 Returns the id of this component.    <div class="mdetail-params">\r
1222         <strong>Parameters:</strong>\r
1223         <ul><li>None.</li>        </ul>\r
1224         <strong>Returns:</strong>\r
1225         <ul>\r
1226             <li><code>String</code></li>\r
1227         </ul>\r
1228     </div>\r
1229                 </div>\r
1230                         </div>\r
1231         </td>\r
1232         <td class="msource"><a ext:cls="Ext.Component" ext:member="#getId" href="output/Ext.Component.html#getId">Component</a></td>\r
1233     </tr>\r
1234         <tr class="method-row inherited alt expandable">\r
1235         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1236         <td class="sig">\r
1237         <a id="Ext.Viewport-getItemId"></a>\r
1238             <b>getItemId</b>() : String            <div class="mdesc">\r
1239                         <div class="short">Returns the item id of this component.</div>\r
1240             <div class="long">\r
1241                 Returns the item id of this component.    <div class="mdetail-params">\r
1242         <strong>Parameters:</strong>\r
1243         <ul><li>None.</li>        </ul>\r
1244         <strong>Returns:</strong>\r
1245         <ul>\r
1246             <li><code>String</code></li>\r
1247         </ul>\r
1248     </div>\r
1249                 </div>\r
1250                         </div>\r
1251         </td>\r
1252         <td class="msource"><a ext:cls="Ext.Component" ext:member="#getItemId" href="output/Ext.Component.html#getItemId">Component</a></td>\r
1253     </tr>\r
1254         <tr class="method-row inherited expandable">\r
1255         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1256         <td class="sig">\r
1257         <a id="Ext.Viewport-getLayout"></a>\r
1258             <b>getLayout</b>() : ContainerLayout            <div class="mdesc">\r
1259                         <div class="short">Returns the layout currently in use by the container.  If the container does not currently have a layout
1260 set, a defau...</div>\r
1261             <div class="long">\r
1262                 Returns the layout currently in use by the container.  If the container does not currently have a layout
1263 set, a default <a ext:cls="Ext.layout.ContainerLayout" href="output/Ext.layout.ContainerLayout.html">Ext.layout.ContainerLayout</a> will be created and set as the container's layout.    <div class="mdetail-params">\r
1264         <strong>Parameters:</strong>\r
1265         <ul><li>None.</li>        </ul>\r
1266         <strong>Returns:</strong>\r
1267         <ul>\r
1268             <li><code>ContainerLayout</code><div class="sub-desc">layout The container's layout</div></li>\r
1269         </ul>\r
1270     </div>\r
1271                 </div>\r
1272                         </div>\r
1273         </td>\r
1274         <td class="msource"><a ext:cls="Ext.Container" ext:member="#getLayout" href="output/Ext.Container.html#getLayout">Container</a></td>\r
1275     </tr>\r
1276         <tr class="method-row inherited alt expandable">\r
1277         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1278         <td class="sig">\r
1279         <a id="Ext.Viewport-getLayoutTarget"></a>\r
1280             <b>getLayoutTarget</b>() : Ext.Element            <div class="mdesc">\r
1281                         <div class="short">Returns the Element to be used to contain the child Components of this Container.
1282 An implementation is provided which...</div>\r
1283             <div class="long">\r
1284                 <p>Returns the Element to be used to contain the child Components of this Container.</p>
1285 <p>An implementation is provided which returns the Container's <a ext:cls="Ext.Container" ext:member="getEl" href="output/Ext.Container.html#getEl">Element</a>, but
1286 if there is a more complex structure to a Container, this may be overridden to return
1287 the element into which the <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> renders child Components.</p>    <div class="mdetail-params">\r
1288         <strong>Parameters:</strong>\r
1289         <ul><li>None.</li>        </ul>\r
1290         <strong>Returns:</strong>\r
1291         <ul>\r
1292             <li><code>Ext.Element</code><div class="sub-desc">The Element to render child Components into.</div></li>\r
1293         </ul>\r
1294     </div>\r
1295                 </div>\r
1296                         </div>\r
1297         </td>\r
1298         <td class="msource"><a ext:cls="Ext.Container" ext:member="#getLayoutTarget" href="output/Ext.Container.html#getLayoutTarget">Container</a></td>\r
1299     </tr>\r
1300         <tr class="method-row inherited expandable">\r
1301         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1302         <td class="sig">\r
1303         <a id="Ext.Viewport-getPosition"></a>\r
1304             <b>getPosition</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean local</code>]</span>&nbsp;) : Array            <div class="mdesc">\r
1305                         <div class="short">Gets the current XY position of the component's underlying element.</div>\r
1306             <div class="long">\r
1307                 Gets the current XY position of the component's underlying element.    <div class="mdetail-params">\r
1308         <strong>Parameters:</strong>\r
1309         <ul><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page XY (defaults to false)</div></li>        </ul>\r
1310         <strong>Returns:</strong>\r
1311         <ul>\r
1312             <li><code>Array</code><div class="sub-desc">The XY position of the element (e.g., [100, 200])</div></li>\r
1313         </ul>\r
1314     </div>\r
1315                 </div>\r
1316                         </div>\r
1317         </td>\r
1318         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getPosition" href="output/Ext.BoxComponent.html#getPosition">BoxComponent</a></td>\r
1319     </tr>\r
1320         <tr class="method-row inherited alt expandable">\r
1321         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1322         <td class="sig">\r
1323         <a id="Ext.Viewport-getSize"></a>\r
1324             <b>getSize</b>() : Object            <div class="mdesc">\r
1325                         <div class="short">Gets the current size of the component's underlying element.</div>\r
1326             <div class="long">\r
1327                 Gets the current size of the component's underlying element.    <div class="mdetail-params">\r
1328         <strong>Parameters:</strong>\r
1329         <ul><li>None.</li>        </ul>\r
1330         <strong>Returns:</strong>\r
1331         <ul>\r
1332             <li><code>Object</code><div class="sub-desc">An object containing the element's size {width: (element width), height: (element height)}</div></li>\r
1333         </ul>\r
1334     </div>\r
1335                 </div>\r
1336                         </div>\r
1337         </td>\r
1338         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getSize" href="output/Ext.BoxComponent.html#getSize">BoxComponent</a></td>\r
1339     </tr>\r
1340         <tr class="method-row inherited expandable">\r
1341         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1342         <td class="sig">\r
1343         <a id="Ext.Viewport-getXType"></a>\r
1344             <b>getXType</b>() : String            <div class="mdesc">\r
1345                         <div class="short">Gets the xtype for this component as registered with Ext.ComponentMgr. For a list of all
1346 available xtypes, see the Ex...</div>\r
1347             <div class="long">\r
1348                 Gets the xtype for this component as registered with <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. For a list of all
1349 available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
1350 <pre><code>var t = <b>new</b> Ext.form.TextField();
1351 alert(t.getXType());  // alerts <em>'textfield'</em></code></pre>    <div class="mdetail-params">\r
1352         <strong>Parameters:</strong>\r
1353         <ul><li>None.</li>        </ul>\r
1354         <strong>Returns:</strong>\r
1355         <ul>\r
1356             <li><code>String</code><div class="sub-desc">The xtype</div></li>\r
1357         </ul>\r
1358     </div>\r
1359                 </div>\r
1360                         </div>\r
1361         </td>\r
1362         <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXType" href="output/Ext.Component.html#getXType">Component</a></td>\r
1363     </tr>\r
1364         <tr class="method-row inherited alt expandable">\r
1365         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1366         <td class="sig">\r
1367         <a id="Ext.Viewport-getXTypes"></a>\r
1368             <b>getXTypes</b>() : String            <div class="mdesc">\r
1369                         <div class="short">Returns this Component's xtype hierarchy as a slash-delimited string. For a list of all
1370 available xtypes, see the Ext...</div>\r
1371             <div class="long">\r
1372                 <p>Returns this Component's xtype hierarchy as a slash-delimited string. For a list of all
1373 available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header.</p>
1374 <p><b>If using your own subclasses, be aware that a Component must register its own xtype
1375 to participate in determination of inherited xtypes.</b></p>
1376 <p>Example usage:</p>
1377 <pre><code>\r
1378 var t = new Ext.form.TextField();\r
1379 alert(t.getXTypes());  // alerts 'component/box/field/textfield'</pre></code>    <div class="mdetail-params">\r
1380         <strong>Parameters:</strong>\r
1381         <ul><li>None.</li>        </ul>\r
1382         <strong>Returns:</strong>\r
1383         <ul>\r
1384             <li><code>String</code><div class="sub-desc">The xtype hierarchy string</div></li>\r
1385         </ul>\r
1386     </div>\r
1387                 </div>\r
1388                         </div>\r
1389         </td>\r
1390         <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXTypes" href="output/Ext.Component.html#getXTypes">Component</a></td>\r
1391     </tr>\r
1392         <tr class="method-row inherited expandable">\r
1393         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1394         <td class="sig">\r
1395         <a id="Ext.Viewport-hasListener"></a>\r
1396             <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">\r
1397                         <div class="short">Checks to see if this object has any listeners for a specified event</div>\r
1398             <div class="long">\r
1399                 Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">\r
1400         <strong>Parameters:</strong>\r
1401         <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>\r
1402         <strong>Returns:</strong>\r
1403         <ul>\r
1404             <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>\r
1405         </ul>\r
1406     </div>\r
1407                 </div>\r
1408                         </div>\r
1409         </td>\r
1410         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>\r
1411     </tr>\r
1412         <tr class="method-row inherited alt expandable">\r
1413         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1414         <td class="sig">\r
1415         <a id="Ext.Viewport-hide"></a>\r
1416             <b>hide</b>() : Ext.Component            <div class="mdesc">\r
1417                         <div class="short">Hide this component.</div>\r
1418             <div class="long">\r
1419                 Hide this component.    <div class="mdetail-params">\r
1420         <strong>Parameters:</strong>\r
1421         <ul><li>None.</li>        </ul>\r
1422         <strong>Returns:</strong>\r
1423         <ul>\r
1424             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
1425         </ul>\r
1426     </div>\r
1427                 </div>\r
1428                         </div>\r
1429         </td>\r
1430         <td class="msource"><a ext:cls="Ext.Component" ext:member="#hide" href="output/Ext.Component.html#hide">Component</a></td>\r
1431     </tr>\r
1432         <tr class="method-row inherited expandable">\r
1433         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1434         <td class="sig">\r
1435         <a id="Ext.Viewport-insert"></a>\r
1436             <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.Component component</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
1437                         <div class="short">Inserts a Component into this Container at a specified index. Fires the
1438 beforeadd event before inserting, then fires ...</div>\r
1439             <div class="long">\r
1440                 Inserts a Component into this Container at a specified index. Fires the
1441 <a ext:cls="Ext.Container" ext:member="beforeadd" href="output/Ext.Container.html#beforeadd">beforeadd</a> event before inserting, then fires the <a ext:cls="Ext.Container" ext:member="add" href="output/Ext.Container.html#add">add</a> event after the
1442 Component has been inserted.    <div class="mdetail-params">\r
1443         <strong>Parameters:</strong>\r
1444         <ul><li><code>index</code> : Number<div class="sub-desc">The index at which the Component will be inserted
1445 into the Container's items collection</div></li><li><code>component</code> : Ext.Component<div class="sub-desc">The child Component to insert.<br><br>
1446 Ext uses lazy rendering, and will only render the inserted Component should
1447 it become necessary.<br><br>
1448 A Component config object may be passed in order to avoid the overhead of
1449 constructing a real Component object if lazy rendering might mean that the
1450 inserted Component will not be rendered immediately. To take advantage of
1451 this "lazy instantiation", set the <a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">Ext.Component.xtype</a> config
1452 property to the registered type of the Component wanted.<br><br>
1453 For a list of all available xtypes, see <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>.</div></li>        </ul>\r
1454         <strong>Returns:</strong>\r
1455         <ul>\r
1456             <li><code>Ext.Component</code><div class="sub-desc">component The Component (or config object) that was inserted with the Container's default config values applied.</div></li>\r
1457         </ul>\r
1458     </div>\r
1459                 </div>\r
1460                         </div>\r
1461         </td>\r
1462         <td class="msource"><a ext:cls="Ext.Container" ext:member="#insert" href="output/Ext.Container.html#insert">Container</a></td>\r
1463     </tr>\r
1464         <tr class="method-row inherited alt expandable">\r
1465         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1466         <td class="sig">\r
1467         <a id="Ext.Viewport-isVisible"></a>\r
1468             <b>isVisible</b>() : void            <div class="mdesc">\r
1469                         <div class="short">Returns true if this component is visible.</div>\r
1470             <div class="long">\r
1471                 Returns true if this component is visible.    <div class="mdetail-params">\r
1472         <strong>Parameters:</strong>\r
1473         <ul><li>None.</li>        </ul>\r
1474         <strong>Returns:</strong>\r
1475         <ul>\r
1476             <li><code>void</code></li>\r
1477         </ul>\r
1478     </div>\r
1479                 </div>\r
1480                         </div>\r
1481         </td>\r
1482         <td class="msource"><a ext:cls="Ext.Component" ext:member="#isVisible" href="output/Ext.Component.html#isVisible">Component</a></td>\r
1483     </tr>\r
1484         <tr class="method-row inherited expandable">\r
1485         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1486         <td class="sig">\r
1487         <a id="Ext.Viewport-isXType"></a>\r
1488             <b>isXType</b>(&nbsp;<code>String xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1489                         <div class="short">Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended
1490 from th...</div>\r
1491             <div class="long">\r
1492                 <p>Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended
1493 from the xtype (default) or whether it is directly of the xtype specified (shallow = true).</p>
1494 <p><b>If using your own subclasses, be aware that a Component must register its own xtype
1495 to participate in determination of inherited xtypes.</b></p>
1496 <p>For a list of all available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header.</p>
1497 <p>Example usage:</p>
1498 <pre><code>var t = <b>new</b> Ext.form.TextField();
1499 <b>var</b> isText = t.isXType(<em>'textfield'</em>);        <i>// true</i>
1500 <b>var</b> isBoxSubclass = t.isXType(<em>'box'</em>);       <i>// true, descended from BoxComponent</i>
1501 <b>var</b> isBoxInstance = t.isXType(<em>'box'</em>, true); // false, not a direct BoxComponent instance</code></pre>    <div class="mdetail-params">\r
1502         <strong>Parameters:</strong>\r
1503         <ul><li><code>xtype</code> : String<div class="sub-desc">The xtype to check for this Component</div></li><li><code>shallow</code> : Boolean<div class="sub-desc">(optional) False to check whether this Component is descended from the xtype (this is
1504 the default), or true to check whether this Component is directly of the specified xtype.</div></li>        </ul>\r
1505         <strong>Returns:</strong>\r
1506         <ul>\r
1507             <li><code>void</code></li>\r
1508         </ul>\r
1509     </div>\r
1510                 </div>\r
1511                         </div>\r
1512         </td>\r
1513         <td class="msource"><a ext:cls="Ext.Component" ext:member="#isXType" href="output/Ext.Component.html#isXType">Component</a></td>\r
1514     </tr>\r
1515         <tr class="method-row inherited alt expandable">\r
1516         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1517         <td class="sig">\r
1518         <a id="Ext.Viewport-on"></a>\r
1519             <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1520                         <div class="short">Appends an event handler to this element (shorthand for addListener)</div>\r
1521             <div class="long">\r
1522                 Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">\r
1523         <strong>Parameters:</strong>\r
1524         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
1525 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>\r
1526         <strong>Returns:</strong>\r
1527         <ul>\r
1528             <li><code>void</code></li>\r
1529         </ul>\r
1530     </div>\r
1531                 </div>\r
1532                         </div>\r
1533         </td>\r
1534         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>\r
1535     </tr>\r
1536         <tr class="method-row inherited expandable">\r
1537         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1538         <td class="sig">\r
1539         <a id="Ext.Viewport-purgeListeners"></a>\r
1540             <b>purgeListeners</b>() : void            <div class="mdesc">\r
1541                         <div class="short">Removes all listeners for this object</div>\r
1542             <div class="long">\r
1543                 Removes all listeners for this object    <div class="mdetail-params">\r
1544         <strong>Parameters:</strong>\r
1545         <ul><li>None.</li>        </ul>\r
1546         <strong>Returns:</strong>\r
1547         <ul>\r
1548             <li><code>void</code></li>\r
1549         </ul>\r
1550     </div>\r
1551                 </div>\r
1552                         </div>\r
1553         </td>\r
1554         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>\r
1555     </tr>\r
1556         <tr class="method-row inherited alt expandable">\r
1557         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1558         <td class="sig">\r
1559         <a id="Ext.Viewport-relayEvents"></a>\r
1560             <b>relayEvents</b>(&nbsp;<code>Object o</code>, <code>Array events</code>&nbsp;) : void            <div class="mdesc">\r
1561                         <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>\r
1562             <div class="long">\r
1563                 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.    <div class="mdetail-params">\r
1564         <strong>Parameters:</strong>\r
1565         <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li>        </ul>\r
1566         <strong>Returns:</strong>\r
1567         <ul>\r
1568             <li><code>void</code></li>\r
1569         </ul>\r
1570     </div>\r
1571                 </div>\r
1572                         </div>\r
1573         </td>\r
1574         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>\r
1575     </tr>\r
1576         <tr class="method-row inherited expandable">\r
1577         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1578         <td class="sig">\r
1579         <a id="Ext.Viewport-remove"></a>\r
1580             <b>remove</b>(&nbsp;<code>Component/String component</code>, <span class="optional" title="Optional">[<code>Boolean autoDestroy</code>]</span>&nbsp;) : Ext.Component            <div class="mdesc">\r
1581                         <div class="short">Removes a component from this container.  Fires the beforeremove event before removing, then fires
1582 the remove event a...</div>\r
1583             <div class="long">\r
1584                 Removes a component from this container.  Fires the <a ext:cls="Ext.Container" ext:member="beforeremove" href="output/Ext.Container.html#beforeremove">beforeremove</a> event before removing, then fires
1585 the <a ext:cls="Ext.Container" ext:member="remove" href="output/Ext.Container.html#remove">remove</a> event after the component has been removed.    <div class="mdetail-params">\r
1586         <strong>Parameters:</strong>\r
1587         <ul><li><code>component</code> : Component/String<div class="sub-desc">The component reference or id to remove.</div></li><li><code>autoDestroy</code> : Boolean<div class="sub-desc">(optional) True to automatically invoke the removed Component's <a ext:cls="Ext.Component" ext:member="destroy" href="output/Ext.Component.html#destroy">Ext.Component.destroy</a> function.
1588 Defaults to the value of this Container's <a ext:cls="Ext.Container" ext:member="autoDestroy" href="output/Ext.Container.html#autoDestroy">autoDestroy</a> config.</div></li>        </ul>\r
1589         <strong>Returns:</strong>\r
1590         <ul>\r
1591             <li><code>Ext.Component</code><div class="sub-desc">component The Component that was removed.</div></li>\r
1592         </ul>\r
1593     </div>\r
1594                 </div>\r
1595                         </div>\r
1596         </td>\r
1597         <td class="msource"><a ext:cls="Ext.Container" ext:member="#remove" href="output/Ext.Container.html#remove">Container</a></td>\r
1598     </tr>\r
1599         <tr class="method-row inherited alt expandable">\r
1600         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1601         <td class="sig">\r
1602         <a id="Ext.Viewport-removeAll"></a>\r
1603             <b>removeAll</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean autoDestroy</code>]</span>&nbsp;) : Array            <div class="mdesc">\r
1604                         <div class="short">Removes all components from this container.</div>\r
1605             <div class="long">\r
1606                 Removes all components from this container.    <div class="mdetail-params">\r
1607         <strong>Parameters:</strong>\r
1608         <ul><li><code>autoDestroy</code> : Boolean<div class="sub-desc">(optional) True to automatically invoke the removed Component's <a ext:cls="Ext.Component" ext:member="destroy" href="output/Ext.Component.html#destroy">Ext.Component.destroy</a> function.
1609 Defaults to the value of this Container's <a ext:cls="Ext.Container" ext:member="autoDestroy" href="output/Ext.Container.html#autoDestroy">autoDestroy</a> config.</div></li>        </ul>\r
1610         <strong>Returns:</strong>\r
1611         <ul>\r
1612             <li><code>Array</code><div class="sub-desc">Array of the destroyed components</div></li>\r
1613         </ul>\r
1614     </div>\r
1615                 </div>\r
1616                         </div>\r
1617         </td>\r
1618         <td class="msource"><a ext:cls="Ext.Container" ext:member="#removeAll" href="output/Ext.Container.html#removeAll">Container</a></td>\r
1619     </tr>\r
1620         <tr class="method-row inherited expandable">\r
1621         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1622         <td class="sig">\r
1623         <a id="Ext.Viewport-removeClass"></a>\r
1624             <b>removeClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void            <div class="mdesc">\r
1625                         <div class="short">Removes a CSS class from the component's underlying element.</div>\r
1626             <div class="long">\r
1627                 Removes a CSS class from the component's underlying element.    <div class="mdetail-params">\r
1628         <strong>Parameters:</strong>\r
1629         <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to remove</div></li>        </ul>\r
1630         <strong>Returns:</strong>\r
1631         <ul>\r
1632             <li><code>void</code></li>\r
1633         </ul>\r
1634     </div>\r
1635                 </div>\r
1636                         </div>\r
1637         </td>\r
1638         <td class="msource"><a ext:cls="Ext.Component" ext:member="#removeClass" href="output/Ext.Component.html#removeClass">Component</a></td>\r
1639     </tr>\r
1640         <tr class="method-row inherited alt expandable">\r
1641         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1642         <td class="sig">\r
1643         <a id="Ext.Viewport-removeListener"></a>\r
1644             <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1645                         <div class="short">Removes a listener</div>\r
1646             <div class="long">\r
1647                 Removes a listener    <div class="mdetail-params">\r
1648         <strong>Parameters:</strong>\r
1649         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>\r
1650         <strong>Returns:</strong>\r
1651         <ul>\r
1652             <li><code>void</code></li>\r
1653         </ul>\r
1654     </div>\r
1655                 </div>\r
1656                         </div>\r
1657         </td>\r
1658         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>\r
1659     </tr>\r
1660         <tr class="method-row inherited expandable">\r
1661         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1662         <td class="sig">\r
1663         <a id="Ext.Viewport-render"></a>\r
1664             <b>render</b>(&nbsp;<span class="optional" title="Optional">[<code>Element/HTMLElement/String container</code>]</span>, <span class="optional" title="Optional">[<code>String/Number position</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1665                         <div class="short">Render this Component into the passed HTML element.
1666 If you are using a Container object to house this Component, then...</div>\r
1667             <div class="long">\r
1668                 <p>Render this Component into the passed HTML element.</p>
1669 <p><b>If you are using a <a ext:cls="Ext.Container" href="output/Ext.Container.html">Container</a> object to house this Component, then
1670 do not use the render method.</b></p>
1671 <p>A Container's child Components are rendered by that Container's
1672 <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager when the Container is first rendered.</p>
1673 <p>Certain layout managers allow dynamic addition of child components. Those that do
1674 include <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a>, <a ext:cls="Ext.layout.AnchorLayout" href="output/Ext.layout.AnchorLayout.html">Ext.layout.AnchorLayout</a>,
1675 <a ext:cls="Ext.layout.FormLayout" href="output/Ext.layout.FormLayout.html">Ext.layout.FormLayout</a>, <a ext:cls="Ext.layout.TableLayout" href="output/Ext.layout.TableLayout.html">Ext.layout.TableLayout</a>.</p>
1676 <p>If the Container is already rendered when a new child Component is added, you may need to call
1677 the Container's <a ext:cls="Ext.Container" ext:member="doLayout" href="output/Ext.Container.html#doLayout">doLayout</a> to refresh the view which causes any
1678 unrendered child Components to be rendered. This is required so that you can add multiple
1679 child components if needed while only refreshing the layout once.</p>
1680 <p>When creating complex UIs, it is important to remember that sizing and positioning
1681 of child items is the responsibility of the Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager.
1682 If you expect child items to be sized in response to user interactions, you must
1683 configure the Container with a layout manager which creates and manages the type of layout you
1684 have in mind.</p>
1685 <p><b>Omitting the Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> config means that a basic
1686 layout manager is used which does nothing but render child components sequentially into the
1687 Container. No sizing or positioning will be performed in this situation.</b></p>    <div class="mdetail-params">\r
1688         <strong>Parameters:</strong>\r
1689         <ul><li><code>container</code> : Element/HTMLElement/String<div class="sub-desc">(optional) The element this Component should be
1690 rendered into. If it is being created from existing markup, this should be omitted.</div></li><li><code>position</code> : String/Number<div class="sub-desc">(optional) The element ID or DOM node index within the container <b>before</b>
1691 which this component will be inserted (defaults to appending to the end of the container)</div></li>        </ul>\r
1692         <strong>Returns:</strong>\r
1693         <ul>\r
1694             <li><code>void</code></li>\r
1695         </ul>\r
1696     </div>\r
1697                 </div>\r
1698                         </div>\r
1699         </td>\r
1700         <td class="msource"><a ext:cls="Ext.Component" ext:member="#render" href="output/Ext.Component.html#render">Component</a></td>\r
1701     </tr>\r
1702         <tr class="method-row inherited alt expandable">\r
1703         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1704         <td class="sig">\r
1705         <a id="Ext.Viewport-resumeEvents"></a>\r
1706             <b>resumeEvents</b>() : void            <div class="mdesc">\r
1707                         <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>\r
1708             <div class="long">\r
1709                 Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">\r
1710         <strong>Parameters:</strong>\r
1711         <ul><li>None.</li>        </ul>\r
1712         <strong>Returns:</strong>\r
1713         <ul>\r
1714             <li><code>void</code></li>\r
1715         </ul>\r
1716     </div>\r
1717                 </div>\r
1718                         </div>\r
1719         </td>\r
1720         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>\r
1721     </tr>\r
1722         <tr class="method-row inherited expandable">\r
1723         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1724         <td class="sig">\r
1725         <a id="Ext.Viewport-setDisabled"></a>\r
1726             <b>setDisabled</b>(&nbsp;<code>Boolean disabled</code>&nbsp;) : void            <div class="mdesc">\r
1727                         <div class="short">Convenience function for setting disabled/enabled by boolean.</div>\r
1728             <div class="long">\r
1729                 Convenience function for setting disabled/enabled by boolean.    <div class="mdetail-params">\r
1730         <strong>Parameters:</strong>\r
1731         <ul><li><code>disabled</code> : Boolean<div class="sub-desc"></div></li>        </ul>\r
1732         <strong>Returns:</strong>\r
1733         <ul>\r
1734             <li><code>void</code></li>\r
1735         </ul>\r
1736     </div>\r
1737                 </div>\r
1738                         </div>\r
1739         </td>\r
1740         <td class="msource"><a ext:cls="Ext.Component" ext:member="#setDisabled" href="output/Ext.Component.html#setDisabled">Component</a></td>\r
1741     </tr>\r
1742         <tr class="method-row inherited alt expandable">\r
1743         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1744         <td class="sig">\r
1745         <a id="Ext.Viewport-setHeight"></a>\r
1746             <b>setHeight</b>(&nbsp;<code>Number height</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1747                         <div class="short">Sets the height of the component.  This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.</div>\r
1748             <div class="long">\r
1749                 Sets the height of the component.  This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.    <div class="mdetail-params">\r
1750         <strong>Parameters:</strong>\r
1751         <ul><li><code>height</code> : Number<div class="sub-desc">The new height to set</div></li>        </ul>\r
1752         <strong>Returns:</strong>\r
1753         <ul>\r
1754             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1755         </ul>\r
1756     </div>\r
1757                 </div>\r
1758                         </div>\r
1759         </td>\r
1760         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setHeight" href="output/Ext.BoxComponent.html#setHeight">BoxComponent</a></td>\r
1761     </tr>\r
1762         <tr class="method-row inherited expandable">\r
1763         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1764         <td class="sig">\r
1765         <a id="Ext.Viewport-setPagePosition"></a>\r
1766             <b>setPagePosition</b>(&nbsp;<code>Number x</code>, <code>Number y</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1767                         <div class="short">Sets the page XY position of the component.  To set the left and top instead, use setPosition.
1768 This method fires the ...</div>\r
1769             <div class="long">\r
1770                 Sets the page XY position of the component.  To set the left and top instead, use <a ext:cls="Ext.BoxComponent" ext:member="setPosition" href="output/Ext.BoxComponent.html#setPosition">setPosition</a>.
1771 This method fires the <a ext:cls="Ext.BoxComponent" ext:member="move" href="output/Ext.BoxComponent.html#move">move</a> event.    <div class="mdetail-params">\r
1772         <strong>Parameters:</strong>\r
1773         <ul><li><code>x</code> : Number<div class="sub-desc">The new x position</div></li><li><code>y</code> : Number<div class="sub-desc">The new y position</div></li>        </ul>\r
1774         <strong>Returns:</strong>\r
1775         <ul>\r
1776             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1777         </ul>\r
1778     </div>\r
1779                 </div>\r
1780                         </div>\r
1781         </td>\r
1782         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setPagePosition" href="output/Ext.BoxComponent.html#setPagePosition">BoxComponent</a></td>\r
1783     </tr>\r
1784         <tr class="method-row inherited alt expandable">\r
1785         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1786         <td class="sig">\r
1787         <a id="Ext.Viewport-setPosition"></a>\r
1788             <b>setPosition</b>(&nbsp;<code>Number left</code>, <code>Number top</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1789                         <div class="short">Sets the left and top of the component.  To set the page XY position instead, use setPagePosition.
1790 This method fires ...</div>\r
1791             <div class="long">\r
1792                 Sets the left and top of the component.  To set the page XY position instead, use <a ext:cls="Ext.BoxComponent" ext:member="setPagePosition" href="output/Ext.BoxComponent.html#setPagePosition">setPagePosition</a>.
1793 This method fires the <a ext:cls="Ext.BoxComponent" ext:member="move" href="output/Ext.BoxComponent.html#move">move</a> event.    <div class="mdetail-params">\r
1794         <strong>Parameters:</strong>\r
1795         <ul><li><code>left</code> : Number<div class="sub-desc">The new left</div></li><li><code>top</code> : Number<div class="sub-desc">The new top</div></li>        </ul>\r
1796         <strong>Returns:</strong>\r
1797         <ul>\r
1798             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1799         </ul>\r
1800     </div>\r
1801                 </div>\r
1802                         </div>\r
1803         </td>\r
1804         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setPosition" href="output/Ext.BoxComponent.html#setPosition">BoxComponent</a></td>\r
1805     </tr>\r
1806         <tr class="method-row inherited expandable">\r
1807         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1808         <td class="sig">\r
1809         <a id="Ext.Viewport-setSize"></a>\r
1810             <b>setSize</b>(&nbsp;<code>Number/Object width</code>, <code>Number height</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1811                         <div class="short">Sets the width and height of the component.  This method fires the resize event.  This method can accept
1812 either width...</div>\r
1813             <div class="long">\r
1814                 Sets the width and height of the component.  This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.  This method can accept
1815 either width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}.    <div class="mdetail-params">\r
1816         <strong>Parameters:</strong>\r
1817         <ul><li><code>width</code> : Number/Object<div class="sub-desc">The new width to set, or a size object in the format {width, height}</div></li><li><code>height</code> : Number<div class="sub-desc">The new height to set (not required if a size object is passed as the first arg)</div></li>        </ul>\r
1818         <strong>Returns:</strong>\r
1819         <ul>\r
1820             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1821         </ul>\r
1822     </div>\r
1823                 </div>\r
1824                         </div>\r
1825         </td>\r
1826         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setSize" href="output/Ext.BoxComponent.html#setSize">BoxComponent</a></td>\r
1827     </tr>\r
1828         <tr class="method-row inherited alt expandable">\r
1829         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1830         <td class="sig">\r
1831         <a id="Ext.Viewport-setVisible"></a>\r
1832             <b>setVisible</b>(&nbsp;<code>Boolean visible</code>&nbsp;) : Ext.Component            <div class="mdesc">\r
1833                         <div class="short">Convenience function to hide or show this component by boolean.</div>\r
1834             <div class="long">\r
1835                 Convenience function to hide or show this component by boolean.    <div class="mdetail-params">\r
1836         <strong>Parameters:</strong>\r
1837         <ul><li><code>visible</code> : Boolean<div class="sub-desc">True to show, false to hide</div></li>        </ul>\r
1838         <strong>Returns:</strong>\r
1839         <ul>\r
1840             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
1841         </ul>\r
1842     </div>\r
1843                 </div>\r
1844                         </div>\r
1845         </td>\r
1846         <td class="msource"><a ext:cls="Ext.Component" ext:member="#setVisible" href="output/Ext.Component.html#setVisible">Component</a></td>\r
1847     </tr>\r
1848         <tr class="method-row inherited expandable">\r
1849         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1850         <td class="sig">\r
1851         <a id="Ext.Viewport-setWidth"></a>\r
1852             <b>setWidth</b>(&nbsp;<code>Number width</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1853                         <div class="short">Sets the width of the component.  This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.</div>\r
1854             <div class="long">\r
1855                 Sets the width of the component.  This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.    <div class="mdetail-params">\r
1856         <strong>Parameters:</strong>\r
1857         <ul><li><code>width</code> : Number<div class="sub-desc">The new width to set</div></li>        </ul>\r
1858         <strong>Returns:</strong>\r
1859         <ul>\r
1860             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1861         </ul>\r
1862     </div>\r
1863                 </div>\r
1864                         </div>\r
1865         </td>\r
1866         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setWidth" href="output/Ext.BoxComponent.html#setWidth">BoxComponent</a></td>\r
1867     </tr>\r
1868         <tr class="method-row inherited alt expandable">\r
1869         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1870         <td class="sig">\r
1871         <a id="Ext.Viewport-show"></a>\r
1872             <b>show</b>() : Ext.Component            <div class="mdesc">\r
1873                         <div class="short">Show this component.</div>\r
1874             <div class="long">\r
1875                 Show this component.    <div class="mdetail-params">\r
1876         <strong>Parameters:</strong>\r
1877         <ul><li>None.</li>        </ul>\r
1878         <strong>Returns:</strong>\r
1879         <ul>\r
1880             <li><code>Ext.Component</code><div class="sub-desc">this</div></li>\r
1881         </ul>\r
1882     </div>\r
1883                 </div>\r
1884                         </div>\r
1885         </td>\r
1886         <td class="msource"><a ext:cls="Ext.Component" ext:member="#show" href="output/Ext.Component.html#show">Component</a></td>\r
1887     </tr>\r
1888         <tr class="method-row inherited expandable">\r
1889         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1890         <td class="sig">\r
1891         <a id="Ext.Viewport-suspendEvents"></a>\r
1892             <b>suspendEvents</b>() : void            <div class="mdesc">\r
1893                         <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>\r
1894             <div class="long">\r
1895                 Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">\r
1896         <strong>Parameters:</strong>\r
1897         <ul><li>None.</li>        </ul>\r
1898         <strong>Returns:</strong>\r
1899         <ul>\r
1900             <li><code>void</code></li>\r
1901         </ul>\r
1902     </div>\r
1903                 </div>\r
1904                         </div>\r
1905         </td>\r
1906         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>\r
1907     </tr>\r
1908         <tr class="method-row inherited alt expandable">\r
1909         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1910         <td class="sig">\r
1911         <a id="Ext.Viewport-syncSize"></a>\r
1912             <b>syncSize</b>() : Ext.BoxComponent            <div class="mdesc">\r
1913                         <div class="short">Force the component's size to recalculate based on the underlying element's current height and width.</div>\r
1914             <div class="long">\r
1915                 Force the component's size to recalculate based on the underlying element's current height and width.    <div class="mdetail-params">\r
1916         <strong>Parameters:</strong>\r
1917         <ul><li>None.</li>        </ul>\r
1918         <strong>Returns:</strong>\r
1919         <ul>\r
1920             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1921         </ul>\r
1922     </div>\r
1923                 </div>\r
1924                         </div>\r
1925         </td>\r
1926         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#syncSize" href="output/Ext.BoxComponent.html#syncSize">BoxComponent</a></td>\r
1927     </tr>\r
1928         <tr class="method-row inherited expandable">\r
1929         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1930         <td class="sig">\r
1931         <a id="Ext.Viewport-un"></a>\r
1932             <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1933                         <div class="short">Removes a listener (shorthand for removeListener)</div>\r
1934             <div class="long">\r
1935                 Removes a listener (shorthand for removeListener)    <div class="mdetail-params">\r
1936         <strong>Parameters:</strong>\r
1937         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>\r
1938         <strong>Returns:</strong>\r
1939         <ul>\r
1940             <li><code>void</code></li>\r
1941         </ul>\r
1942     </div>\r
1943                 </div>\r
1944                         </div>\r
1945         </td>\r
1946         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>\r
1947     </tr>\r
1948         <tr class="method-row inherited alt expandable">\r
1949         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1950         <td class="sig">\r
1951         <a id="Ext.Viewport-updateBox"></a>\r
1952             <b>updateBox</b>(&nbsp;<code>Object box</code>&nbsp;) : Ext.BoxComponent            <div class="mdesc">\r
1953                         <div class="short">Sets the current box measurements of the component's underlying element.</div>\r
1954             <div class="long">\r
1955                 Sets the current box measurements of the component's underlying element.    <div class="mdetail-params">\r
1956         <strong>Parameters:</strong>\r
1957         <ul><li><code>box</code> : Object<div class="sub-desc">An object in the format {x, y, width, height}</div></li>        </ul>\r
1958         <strong>Returns:</strong>\r
1959         <ul>\r
1960             <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>\r
1961         </ul>\r
1962     </div>\r
1963                 </div>\r
1964                         </div>\r
1965         </td>\r
1966         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#updateBox" href="output/Ext.BoxComponent.html#updateBox">BoxComponent</a></td>\r
1967     </tr>\r
1968             </table>
1969                 <a id="Ext.Viewport-events"></a>
1970         <h2>Public Events</h2>
1971                 <table cellspacing="0" class="member-table">
1972             <tr>
1973                 <th class="sig-header" colspan="2">Event</th>
1974                 <th class="msource-header">Defined By</th>
1975             </tr>
1976                 <tr class="event-row inherited expandable">\r
1977         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1978         <td class="sig">\r
1979         <a id="Ext.Viewport-add"></a>\r
1980             <b>add</b> : (&nbsp;<code>Ext.Container this</code>, <code>Ext.Component component</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">\r
1981                         <div class="short">Fires after any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is added or inserted into the container.</div>\r
1982             <div class="long">\r
1983                 Fires after any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is added or inserted into the container.    <div class="mdetail-params">\r
1984         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1985         <ul><li><code>this</code> : Ext.Container<div class="sub-desc"></div></li><li><code>component</code> : Ext.Component<div class="sub-desc">The component that was added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the component was added to the container's items collection</div></li>        </ul>\r
1986     </div>\r
1987                 </div>\r
1988                         </div>\r
1989         </td>\r
1990         <td class="msource"><a ext:cls="Ext.Container" ext:member="#event-add" href="output/Ext.Container.html#event-add">Container</a></td>\r
1991     </tr>\r
1992         <tr class="event-row inherited alt expandable">\r
1993         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1994         <td class="sig">\r
1995         <a id="Ext.Viewport-afterlayout"></a>\r
1996             <b>afterlayout</b> : (&nbsp;<code>Ext.Container this</code>, <code>ContainerLayout layout</code>&nbsp;)            <div class="mdesc">\r
1997                         <div class="short">Fires when the components in this container are arranged by the associated layout manager.</div>\r
1998             <div class="long">\r
1999                 Fires when the components in this container are arranged by the associated layout manager.    <div class="mdetail-params">\r
2000         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2001         <ul><li><code>this</code> : Ext.Container<div class="sub-desc"></div></li><li><code>layout</code> : ContainerLayout<div class="sub-desc">The ContainerLayout implementation for this container</div></li>        </ul>\r
2002     </div>\r
2003                 </div>\r
2004                         </div>\r
2005         </td>\r
2006         <td class="msource"><a ext:cls="Ext.Container" ext:member="#event-afterlayout" href="output/Ext.Container.html#event-afterlayout">Container</a></td>\r
2007     </tr>\r
2008         <tr class="event-row inherited expandable">\r
2009         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2010         <td class="sig">\r
2011         <a id="Ext.Viewport-beforeadd"></a>\r
2012             <b>beforeadd</b> : (&nbsp;<code>Ext.Container this</code>, <code>Ext.Component component</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">\r
2013                         <div class="short">Fires before any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is added or inserted into the container.
2014 A handler can return false to cancel the add.</div>\r
2015             <div class="long">\r
2016                 Fires before any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is added or inserted into the container.
2017 A handler can return false to cancel the add.    <div class="mdetail-params">\r
2018         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2019         <ul><li><code>this</code> : Ext.Container<div class="sub-desc"></div></li><li><code>component</code> : Ext.Component<div class="sub-desc">The component being added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the component will be added to the container's items collection</div></li>        </ul>\r
2020     </div>\r
2021                 </div>\r
2022                         </div>\r
2023         </td>\r
2024         <td class="msource"><a ext:cls="Ext.Container" ext:member="#event-beforeadd" href="output/Ext.Container.html#event-beforeadd">Container</a></td>\r
2025     </tr>\r
2026         <tr class="event-row inherited alt expandable">\r
2027         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2028         <td class="sig">\r
2029         <a id="Ext.Viewport-beforedestroy"></a>\r
2030             <b>beforedestroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2031                         <div class="short">Fires before the component is destroyed. Return false to stop the destroy.</div>\r
2032             <div class="long">\r
2033                 Fires before the component is destroyed. Return false to stop the destroy.    <div class="mdetail-params">\r
2034         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2035         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2036     </div>\r
2037                 </div>\r
2038                         </div>\r
2039         </td>\r
2040         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforedestroy" href="output/Ext.Component.html#event-beforedestroy">Component</a></td>\r
2041     </tr>\r
2042         <tr class="event-row inherited expandable">\r
2043         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2044         <td class="sig">\r
2045         <a id="Ext.Viewport-beforehide"></a>\r
2046             <b>beforehide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2047                         <div class="short">Fires before the component is hidden. Return false to stop the hide.</div>\r
2048             <div class="long">\r
2049                 Fires before the component is hidden. Return false to stop the hide.    <div class="mdetail-params">\r
2050         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2051         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2052     </div>\r
2053                 </div>\r
2054                         </div>\r
2055         </td>\r
2056         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforehide" href="output/Ext.Component.html#event-beforehide">Component</a></td>\r
2057     </tr>\r
2058         <tr class="event-row inherited alt expandable">\r
2059         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2060         <td class="sig">\r
2061         <a id="Ext.Viewport-beforeremove"></a>\r
2062             <b>beforeremove</b> : (&nbsp;<code>Ext.Container this</code>, <code>Ext.Component component</code>&nbsp;)            <div class="mdesc">\r
2063                         <div class="short">Fires before any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is removed from the container.  A handler can return
2064 false to cancel the remove.</div>\r
2065             <div class="long">\r
2066                 Fires before any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is removed from the container.  A handler can return
2067 false to cancel the remove.    <div class="mdetail-params">\r
2068         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2069         <ul><li><code>this</code> : Ext.Container<div class="sub-desc"></div></li><li><code>component</code> : Ext.Component<div class="sub-desc">The component being removed</div></li>        </ul>\r
2070     </div>\r
2071                 </div>\r
2072                         </div>\r
2073         </td>\r
2074         <td class="msource"><a ext:cls="Ext.Container" ext:member="#event-beforeremove" href="output/Ext.Container.html#event-beforeremove">Container</a></td>\r
2075     </tr>\r
2076         <tr class="event-row inherited expandable">\r
2077         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2078         <td class="sig">\r
2079         <a id="Ext.Viewport-beforerender"></a>\r
2080             <b>beforerender</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2081                         <div class="short">Fires before the component is rendered. Return false to stop the render.</div>\r
2082             <div class="long">\r
2083                 Fires before the component is rendered. Return false to stop the render.    <div class="mdetail-params">\r
2084         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2085         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2086     </div>\r
2087                 </div>\r
2088                         </div>\r
2089         </td>\r
2090         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforerender" href="output/Ext.Component.html#event-beforerender">Component</a></td>\r
2091     </tr>\r
2092         <tr class="event-row inherited alt expandable">\r
2093         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2094         <td class="sig">\r
2095         <a id="Ext.Viewport-beforeshow"></a>\r
2096             <b>beforeshow</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2097                         <div class="short">Fires before the component is shown. Return false to stop the show.</div>\r
2098             <div class="long">\r
2099                 Fires before the component is shown. Return false to stop the show.    <div class="mdetail-params">\r
2100         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2101         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2102     </div>\r
2103                 </div>\r
2104                         </div>\r
2105         </td>\r
2106         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforeshow" href="output/Ext.Component.html#event-beforeshow">Component</a></td>\r
2107     </tr>\r
2108         <tr class="event-row inherited expandable">\r
2109         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2110         <td class="sig">\r
2111         <a id="Ext.Viewport-beforestaterestore"></a>\r
2112             <b>beforestaterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;)            <div class="mdesc">\r
2113                         <div class="short">Fires before the state of the component is restored. Return false to stop the restore.</div>\r
2114             <div class="long">\r
2115                 Fires before the state of the component is restored. Return false to stop the restore.    <div class="mdetail-params">\r
2116         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2117         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li>        </ul>\r
2118     </div>\r
2119                 </div>\r
2120                         </div>\r
2121         </td>\r
2122         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestaterestore" href="output/Ext.Component.html#event-beforestaterestore">Component</a></td>\r
2123     </tr>\r
2124         <tr class="event-row inherited alt expandable">\r
2125         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2126         <td class="sig">\r
2127         <a id="Ext.Viewport-beforestatesave"></a>\r
2128             <b>beforestatesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;)            <div class="mdesc">\r
2129                         <div class="short">Fires before the state of the component is saved to the configured state provider. Return false to stop the save.</div>\r
2130             <div class="long">\r
2131                 Fires before the state of the component is saved to the configured state provider. Return false to stop the save.    <div class="mdetail-params">\r
2132         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2133         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li>        </ul>\r
2134     </div>\r
2135                 </div>\r
2136                         </div>\r
2137         </td>\r
2138         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestatesave" href="output/Ext.Component.html#event-beforestatesave">Component</a></td>\r
2139     </tr>\r
2140         <tr class="event-row inherited expandable">\r
2141         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2142         <td class="sig">\r
2143         <a id="Ext.Viewport-destroy"></a>\r
2144             <b>destroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2145                         <div class="short">Fires after the component is destroyed.</div>\r
2146             <div class="long">\r
2147                 Fires after the component is destroyed.    <div class="mdetail-params">\r
2148         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2149         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2150     </div>\r
2151                 </div>\r
2152                         </div>\r
2153         </td>\r
2154         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-destroy" href="output/Ext.Component.html#event-destroy">Component</a></td>\r
2155     </tr>\r
2156         <tr class="event-row inherited alt expandable">\r
2157         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2158         <td class="sig">\r
2159         <a id="Ext.Viewport-disable"></a>\r
2160             <b>disable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2161                         <div class="short">Fires after the component is disabled.</div>\r
2162             <div class="long">\r
2163                 Fires after the component is disabled.    <div class="mdetail-params">\r
2164         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2165         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2166     </div>\r
2167                 </div>\r
2168                         </div>\r
2169         </td>\r
2170         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-disable" href="output/Ext.Component.html#event-disable">Component</a></td>\r
2171     </tr>\r
2172         <tr class="event-row inherited expandable">\r
2173         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2174         <td class="sig">\r
2175         <a id="Ext.Viewport-enable"></a>\r
2176             <b>enable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2177                         <div class="short">Fires after the component is enabled.</div>\r
2178             <div class="long">\r
2179                 Fires after the component is enabled.    <div class="mdetail-params">\r
2180         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2181         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2182     </div>\r
2183                 </div>\r
2184                         </div>\r
2185         </td>\r
2186         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-enable" href="output/Ext.Component.html#event-enable">Component</a></td>\r
2187     </tr>\r
2188         <tr class="event-row inherited alt expandable">\r
2189         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2190         <td class="sig">\r
2191         <a id="Ext.Viewport-hide"></a>\r
2192             <b>hide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2193                         <div class="short">Fires after the component is hidden.</div>\r
2194             <div class="long">\r
2195                 Fires after the component is hidden.    <div class="mdetail-params">\r
2196         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2197         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2198     </div>\r
2199                 </div>\r
2200                         </div>\r
2201         </td>\r
2202         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-hide" href="output/Ext.Component.html#event-hide">Component</a></td>\r
2203     </tr>\r
2204         <tr class="event-row inherited expandable">\r
2205         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2206         <td class="sig">\r
2207         <a id="Ext.Viewport-move"></a>\r
2208             <b>move</b> : (&nbsp;<code>Ext.Component this</code>, <code>Number x</code>, <code>Number y</code>&nbsp;)            <div class="mdesc">\r
2209                         <div class="short">Fires after the component is moved.</div>\r
2210             <div class="long">\r
2211                 Fires after the component is moved.    <div class="mdetail-params">\r
2212         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2213         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>x</code> : Number<div class="sub-desc">The new x position</div></li><li><code>y</code> : Number<div class="sub-desc">The new y position</div></li>        </ul>\r
2214     </div>\r
2215                 </div>\r
2216                         </div>\r
2217         </td>\r
2218         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#event-move" href="output/Ext.BoxComponent.html#event-move">BoxComponent</a></td>\r
2219     </tr>\r
2220         <tr class="event-row inherited alt expandable">\r
2221         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2222         <td class="sig">\r
2223         <a id="Ext.Viewport-remove"></a>\r
2224             <b>remove</b> : (&nbsp;<code>Ext.Container this</code>, <code>Ext.Component component</code>&nbsp;)            <div class="mdesc">\r
2225                         <div class="short">Fires after any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is removed from the container.</div>\r
2226             <div class="long">\r
2227                 Fires after any <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> is removed from the container.    <div class="mdetail-params">\r
2228         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2229         <ul><li><code>this</code> : Ext.Container<div class="sub-desc"></div></li><li><code>component</code> : Ext.Component<div class="sub-desc">The component that was removed</div></li>        </ul>\r
2230     </div>\r
2231                 </div>\r
2232                         </div>\r
2233         </td>\r
2234         <td class="msource"><a ext:cls="Ext.Container" ext:member="#event-remove" href="output/Ext.Container.html#event-remove">Container</a></td>\r
2235     </tr>\r
2236         <tr class="event-row inherited expandable">\r
2237         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2238         <td class="sig">\r
2239         <a id="Ext.Viewport-render"></a>\r
2240             <b>render</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2241                         <div class="short">Fires after the component is rendered.</div>\r
2242             <div class="long">\r
2243                 Fires after the component is rendered.    <div class="mdetail-params">\r
2244         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2245         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2246     </div>\r
2247                 </div>\r
2248                         </div>\r
2249         </td>\r
2250         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-render" href="output/Ext.Component.html#event-render">Component</a></td>\r
2251     </tr>\r
2252         <tr class="event-row inherited alt expandable">\r
2253         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2254         <td class="sig">\r
2255         <a id="Ext.Viewport-resize"></a>\r
2256             <b>resize</b> : (&nbsp;<code>Ext.Component this</code>, <code>Number adjWidth</code>, <code>Number adjHeight</code>, <code>Number rawWidth</code>, <code>Number rawHeight</code>&nbsp;)            <div class="mdesc">\r
2257                         <div class="short">Fires after the component is resized.</div>\r
2258             <div class="long">\r
2259                 Fires after the component is resized.    <div class="mdetail-params">\r
2260         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2261         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>adjWidth</code> : Number<div class="sub-desc">The box-adjusted width that was set</div></li><li><code>adjHeight</code> : Number<div class="sub-desc">The box-adjusted height that was set</div></li><li><code>rawWidth</code> : Number<div class="sub-desc">The width that was originally specified</div></li><li><code>rawHeight</code> : Number<div class="sub-desc">The height that was originally specified</div></li>        </ul>\r
2262     </div>\r
2263                 </div>\r
2264                         </div>\r
2265         </td>\r
2266         <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#event-resize" href="output/Ext.BoxComponent.html#event-resize">BoxComponent</a></td>\r
2267     </tr>\r
2268         <tr class="event-row inherited expandable">\r
2269         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2270         <td class="sig">\r
2271         <a id="Ext.Viewport-show"></a>\r
2272             <b>show</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;)            <div class="mdesc">\r
2273                         <div class="short">Fires after the component is shown.</div>\r
2274             <div class="long">\r
2275                 Fires after the component is shown.    <div class="mdetail-params">\r
2276         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2277         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li>        </ul>\r
2278     </div>\r
2279                 </div>\r
2280                         </div>\r
2281         </td>\r
2282         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-show" href="output/Ext.Component.html#event-show">Component</a></td>\r
2283     </tr>\r
2284         <tr class="event-row inherited alt expandable">\r
2285         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2286         <td class="sig">\r
2287         <a id="Ext.Viewport-staterestore"></a>\r
2288             <b>staterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;)            <div class="mdesc">\r
2289                         <div class="short">Fires after the state of the component is restored.</div>\r
2290             <div class="long">\r
2291                 Fires after the state of the component is restored.    <div class="mdetail-params">\r
2292         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2293         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li>        </ul>\r
2294     </div>\r
2295                 </div>\r
2296                         </div>\r
2297         </td>\r
2298         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-staterestore" href="output/Ext.Component.html#event-staterestore">Component</a></td>\r
2299     </tr>\r
2300         <tr class="event-row inherited expandable">\r
2301         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
2302         <td class="sig">\r
2303         <a id="Ext.Viewport-statesave"></a>\r
2304             <b>statesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;)            <div class="mdesc">\r
2305                         <div class="short">Fires after the state of the component is saved to the configured state provider.</div>\r
2306             <div class="long">\r
2307                 Fires after the state of the component is saved to the configured state provider.    <div class="mdetail-params">\r
2308         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
2309         <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li>        </ul>\r
2310     </div>\r
2311                 </div>\r
2312                         </div>\r
2313         </td>\r
2314         <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-statesave" href="output/Ext.Component.html#event-statesave">Component</a></td>\r
2315     </tr>\r
2316             </table>
2317         
2318         </div>