d7a3b0c00b0d993d6c62cebb96cce8737ce34310.svn-base 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.BoxComponent-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.BoxComponent-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.BoxComponent-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.BoxComponent-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.BoxComponent"><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"/>BoxComponent</pre></div>
  13. <h1>Class Ext.BoxComponent</h1>
  14. <table cellspacing="0">
  15. <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
  16. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/BoxComponent.js" target="_blank">BoxComponent.js</a></td></tr>
  17. <tr><td class="label">Class:</td><td class="hd-info">BoxComponent</td></tr>
  18. <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.Container" href="output/Ext.Container.html">Container</a>, <a ext:cls="Ext.DataView" href="output/Ext.DataView.html">DataView</a>, <a ext:cls="Ext.ProgressBar" href="output/Ext.ProgressBar.html">ProgressBar</a>, <a ext:cls="Ext.Toolbar" href="output/Ext.Toolbar.html">Toolbar</a>, <a ext:cls="Ext.form.Field" href="output/Ext.form.Field.html">Field</a></td></tr>
  19. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.Component" ext:member="" href="output/Ext.Component.html">Component</a></td></tr>
  20. </table>
  21. <div class="description">
  22. Base class for any visual <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> that uses a box container. BoxComponent provides automatic box
  23. model adjustments for sizing and positioning and will work correctly withnin the Component rendering model. All
  24. container classes should subclass BoxComponent so that they will work consistently when nested within other Ext
  25. layout containers. </div>
  26. <div class="hr"></div>
  27. <a id="Ext.BoxComponent-configs"></a>
  28. <h2>Config Options</h2>
  29. <table cellspacing="0" class="member-table">
  30. <tr>
  31. <th class="sig-header" colspan="2">Config Options</th>
  32. <th class="msource-header">Defined By</th>
  33. </tr>
  34. <tr class="config-row inherited">
  35. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  36. <td class="sig">
  37. <a id="Ext.BoxComponent-allowDomMove"></a>
  38. <b>allowDomMove</b> : Boolean <div class="mdesc">
  39. Whether the component can move the Dom node when rendering (defaults to true). </div>
  40. </td>
  41. <td class="msource"><a ext:cls="Ext.Component" ext:member="#allowDomMove" href="output/Ext.Component.html#allowDomMove">Component</a></td>
  42. </tr>
  43. <tr class="config-row inherited alt expandable">
  44. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  45. <td class="sig">
  46. <a id="Ext.BoxComponent-applyTo"></a>
  47. <b>applyTo</b> : Mixed <div class="mdesc">
  48. <div class="short">The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document ...</div>
  49. <div class="long">
  50. The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for <a ext:cls="Ext.Component" ext:member="renderTo" href="output/Ext.Component.html#renderTo">renderTo</a> will be ignored and the target element's parent node will automatically be used as the component's container. </div>
  51. </div>
  52. </td>
  53. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyTo" href="output/Ext.Component.html#applyTo">Component</a></td>
  54. </tr>
  55. <tr class="config-row">
  56. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  57. <td class="sig">
  58. <a id="Ext.BoxComponent-autoHeight"></a>
  59. <b>autoHeight</b> : Boolean <div class="mdesc">
  60. True to use height:'auto', false to use fixed height (defaults to false). </div>
  61. </td>
  62. <td class="msource">BoxComponent</td>
  63. </tr>
  64. <tr class="config-row inherited alt expandable">
  65. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  66. <td class="sig">
  67. <a id="Ext.BoxComponent-autoShow"></a>
  68. <b>autoShow</b> : Boolean <div class="mdesc">
  69. <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>
  70. <div class="long">
  71. 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>
  72. </div>
  73. </td>
  74. <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td>
  75. </tr>
  76. <tr class="config-row">
  77. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  78. <td class="sig">
  79. <a id="Ext.BoxComponent-autoWidth"></a>
  80. <b>autoWidth</b> : Boolean <div class="mdesc">
  81. True to use width:'auto', false to use fixed width (defaults to false). </div>
  82. </td>
  83. <td class="msource">BoxComponent</td>
  84. </tr>
  85. <tr class="config-row inherited alt expandable">
  86. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  87. <td class="sig">
  88. <a id="Ext.BoxComponent-cls"></a>
  89. <b>cls</b> : String <div class="mdesc">
  90. <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>
  91. <div class="long">
  92. 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>
  93. </div>
  94. </td>
  95. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</a></td>
  96. </tr>
  97. <tr class="config-row inherited expandable">
  98. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  99. <td class="sig">
  100. <a id="Ext.BoxComponent-ctCls"></a>
  101. <b>ctCls</b> : String <div class="mdesc">
  102. <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>
  103. <div class="long">
  104. 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>
  105. </div>
  106. </td>
  107. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">Component</a></td>
  108. </tr>
  109. <tr class="config-row inherited alt">
  110. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  111. <td class="sig">
  112. <a id="Ext.BoxComponent-disabledClass"></a>
  113. <b>disabledClass</b> : String <div class="mdesc">
  114. CSS class added to the component when it is disabled (defaults to "x-item-disabled"). </div>
  115. </td>
  116. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td>
  117. </tr>
  118. <tr class="config-row">
  119. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  120. <td class="sig">
  121. <a id="Ext.BoxComponent-height"></a>
  122. <b>height</b> : Number <div class="mdesc">
  123. The height of this component in pixels (defaults to auto). </div>
  124. </td>
  125. <td class="msource">BoxComponent</td>
  126. </tr>
  127. <tr class="config-row inherited alt expandable">
  128. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  129. <td class="sig">
  130. <a id="Ext.BoxComponent-hideMode"></a>
  131. <b>hideMode</b> : String <div class="mdesc">
  132. <div class="short">How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset posi...</div>
  133. <div class="long">
  134. How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". </div>
  135. </div>
  136. </td>
  137. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideMode" href="output/Ext.Component.html#hideMode">Component</a></td>
  138. </tr>
  139. <tr class="config-row inherited expandable">
  140. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  141. <td class="sig">
  142. <a id="Ext.BoxComponent-hideParent"></a>
  143. <b>hideParent</b> : Boolean <div class="mdesc">
  144. <div class="short">True to hide and show the component's container when hide/show is called on the component, false to hide and show the...</div>
  145. <div class="long">
  146. True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container. </div>
  147. </div>
  148. </td>
  149. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideParent" href="output/Ext.Component.html#hideParent">Component</a></td>
  150. </tr>
  151. <tr class="config-row inherited alt">
  152. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  153. <td class="sig">
  154. <a id="Ext.BoxComponent-id"></a>
  155. <b>id</b> : String <div class="mdesc">
  156. The unique id of this component (defaults to an auto-assigned id). </div>
  157. </td>
  158. <td class="msource"><a ext:cls="Ext.Component" ext:member="#id" href="output/Ext.Component.html#id">Component</a></td>
  159. </tr>
  160. <tr class="config-row inherited expandable">
  161. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  162. <td class="sig">
  163. <a id="Ext.BoxComponent-listeners"></a>
  164. <b>listeners</b> : Object <div class="mdesc">
  165. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  166. <div class="long">
  167. 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>
  168. </div>
  169. </td>
  170. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  171. </tr>
  172. <tr class="config-row inherited alt expandable">
  173. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  174. <td class="sig">
  175. <a id="Ext.BoxComponent-plugins"></a>
  176. <b>plugins</b> : Object/Array <div class="mdesc">
  177. <div class="short">An object or array of objects that will provide custom functionality for this component. The only requirement for a v...</div>
  178. <div class="long">
  179. 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>
  180. </div>
  181. </td>
  182. <td class="msource"><a ext:cls="Ext.Component" ext:member="#plugins" href="output/Ext.Component.html#plugins">Component</a></td>
  183. </tr>
  184. <tr class="config-row inherited expandable">
  185. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  186. <td class="sig">
  187. <a id="Ext.BoxComponent-renderTo"></a>
  188. <b>renderTo</b> : Mixed <div class="mdesc">
  189. <div class="short">The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using...</div>
  190. <div class="long">
  191. The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required. </div>
  192. </div>
  193. </td>
  194. <td class="msource"><a ext:cls="Ext.Component" ext:member="#renderTo" href="output/Ext.Component.html#renderTo">Component</a></td>
  195. </tr>
  196. <tr class="config-row inherited alt expandable">
  197. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  198. <td class="sig">
  199. <a id="Ext.BoxComponent-stateEvents"></a>
  200. <b>stateEvents</b> : Array <div class="mdesc">
  201. <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>
  202. <div class="long">
  203. 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']). </div>
  204. </div>
  205. </td>
  206. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateEvents" href="output/Ext.Component.html#stateEvents">Component</a></td>
  207. </tr>
  208. <tr class="config-row inherited">
  209. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  210. <td class="sig">
  211. <a id="Ext.BoxComponent-stateId"></a>
  212. <b>stateId</b> : String <div class="mdesc">
  213. The unique id for this component to use for state management purposes (defaults to the component id). </div>
  214. </td>
  215. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>
  216. </tr>
  217. <tr class="config-row inherited alt expandable">
  218. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  219. <td class="sig">
  220. <a id="Ext.BoxComponent-style"></a>
  221. <b>style</b> : String <div class="mdesc">
  222. <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>
  223. <div class="long">
  224. 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>
  225. </div>
  226. </td>
  227. <td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>
  228. </tr>
  229. <tr class="config-row">
  230. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  231. <td class="sig">
  232. <a id="Ext.BoxComponent-width"></a>
  233. <b>width</b> : Number <div class="mdesc">
  234. The width of this component in pixels (defaults to auto). </div>
  235. </td>
  236. <td class="msource">BoxComponent</td>
  237. </tr>
  238. <tr class="config-row inherited alt expandable">
  239. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  240. <td class="sig">
  241. <a id="Ext.BoxComponent-xtype"></a>
  242. <b>xtype</b> : String <div class="mdesc">
  243. <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>
  244. <div class="long">
  245. 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>
  246. </div>
  247. </td>
  248. <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>
  249. </tr>
  250. </table>
  251. <a id="Ext.BoxComponent-props"></a>
  252. <h2>Public Properties</h2>
  253. <table cellspacing="0" class="member-table">
  254. <tr>
  255. <th class="sig-header" colspan="2">Property</th>
  256. <th class="msource-header">Defined By</th>
  257. </tr>
  258. <tr class="property-row inherited">
  259. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  260. <td class="sig">
  261. <a id="Ext.BoxComponent-disabled"></a>
  262. <b>disabled</b> : Boolean <div class="mdesc">
  263. True if this component is disabled. Read-only. </div>
  264. </td>
  265. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
  266. </tr>
  267. <tr class="property-row inherited alt">
  268. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  269. <td class="sig">
  270. <a id="Ext.BoxComponent-hidden"></a>
  271. <b>hidden</b> : Boolean <div class="mdesc">
  272. True if this component is hidden. Read-only. </div>
  273. </td>
  274. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
  275. </tr>
  276. <tr class="property-row inherited">
  277. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  278. <td class="sig">
  279. <a id="Ext.BoxComponent-initialConfig"></a>
  280. <b>initialConfig</b> : Object <div class="mdesc">
  281. This Component's initial configuration specification. Read-only. </div>
  282. </td>
  283. <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>
  284. </tr>
  285. <tr class="property-row inherited alt expandable">
  286. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  287. <td class="sig">
  288. <a id="Ext.BoxComponent-ownerCt"></a>
  289. <b>ownerCt</b> : Ext.Container <div class="mdesc">
  290. <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically when
  291. the component is added to a...</div>
  292. <div class="long">
  293. 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
  294. the component is added to a container). Read-only. </div>
  295. </div>
  296. </td>
  297. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td>
  298. </tr>
  299. <tr class="property-row inherited">
  300. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  301. <td class="sig">
  302. <a id="Ext.BoxComponent-rendered"></a>
  303. <b>rendered</b> : Boolean <div class="mdesc">
  304. True if this component has been rendered. Read-only. </div>
  305. </td>
  306. <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td>
  307. </tr>
  308. </table>
  309. <a id="Ext.BoxComponent-methods"></a>
  310. <h2>Public Methods</h2>
  311. <table cellspacing="0" class="member-table">
  312. <tr>
  313. <th class="sig-header" colspan="2">Method</th>
  314. <th class="msource-header">Defined By</th>
  315. </tr>
  316. <tr class="method-row expandable">
  317. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  318. <td class="sig">
  319. <a id="Ext.BoxComponent-BoxComponent"></a>
  320. <b>BoxComponent</b>(&nbsp;<code>Ext.Element/String/Object config</code>&nbsp;) <div class="mdesc">
  321. <div class="short"></div>
  322. <div class="long">
  323. <div class="mdetail-params">
  324. <strong>Parameters:</strong>
  325. <ul><li><code>config</code> : Ext.Element/String/Object<div class="sub-desc">The configuration options.</div></li> </ul>
  326. <strong>Returns:</strong>
  327. <ul>
  328. <li><code></code></li>
  329. </ul>
  330. </div>
  331. </div>
  332. </div>
  333. </td>
  334. <td class="msource">BoxComponent</td>
  335. </tr>
  336. <tr class="method-row inherited alt expandable">
  337. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  338. <td class="sig">
  339. <a id="Ext.BoxComponent-addClass"></a>
  340. <b>addClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  341. <div class="short">Adds a CSS class to the component's underlying element.</div>
  342. <div class="long">
  343. Adds a CSS class to the component's underlying element. <div class="mdetail-params">
  344. <strong>Parameters:</strong>
  345. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li> </ul>
  346. <strong>Returns:</strong>
  347. <ul>
  348. <li><code>void</code></li>
  349. </ul>
  350. </div>
  351. </div>
  352. </div>
  353. </td>
  354. <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td>
  355. </tr>
  356. <tr class="method-row inherited expandable">
  357. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  358. <td class="sig">
  359. <a id="Ext.BoxComponent-addEvents"></a>
  360. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  361. <div class="short">Used to define events on this Observable</div>
  362. <div class="long">
  363. Used to define events on this Observable <div class="mdetail-params">
  364. <strong>Parameters:</strong>
  365. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  366. <strong>Returns:</strong>
  367. <ul>
  368. <li><code>void</code></li>
  369. </ul>
  370. </div>
  371. </div>
  372. </div>
  373. </td>
  374. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  375. </tr>
  376. <tr class="method-row inherited alt expandable">
  377. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  378. <td class="sig">
  379. <a id="Ext.BoxComponent-addListener"></a>
  380. <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">
  381. <div class="short">Appends an event handler to this component</div>
  382. <div class="long">
  383. Appends an event handler to this component <div class="mdetail-params">
  384. <strong>Parameters:</strong>
  385. <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
  386. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  387. properties. This may contain any of the following properties:<ul>
  388. <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>
  389. <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>
  390. <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>
  391. <li>buffer {Number} 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
  392. by the specified number of milliseconds. If the event fires again within that time, the original
  393. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  394. </ul><br>
  395. <p>
  396. <b>Combining Options</b><br>
  397. Using the options argument, it is possible to combine different types of listeners:<br>
  398. <br>
  399. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  400. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  401. single: true,
  402. delay: 100,
  403. forumId: 4
  404. });</code></pre>
  405. <p>
  406. <b>Attaching multiple handlers in 1 call</b><br>
  407. The method also allows for a single argument to be passed which is a config object containing properties
  408. which specify multiple handlers.
  409. <p>
  410. <pre><code>foo.on({
  411. <em>'click'</em> : {
  412. fn: <b>this</b>.onClick,
  413. scope: <b>this</b>,
  414. delay: 100
  415. },
  416. <em>'mouseover'</em> : {
  417. fn: <b>this</b>.onMouseOver,
  418. scope: <b>this</b>
  419. },
  420. <em>'mouseout'</em> : {
  421. fn: <b>this</b>.onMouseOut,
  422. scope: <b>this</b>
  423. }
  424. });</code></pre>
  425. <p>
  426. Or a shorthand syntax:<br>
  427. <pre><code>foo.on({
  428. <em>'click'</em> : <b>this</b>.onClick,
  429. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  430. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  431. scope: <b>this</b>
  432. });</code></pre></div></li> </ul>
  433. <strong>Returns:</strong>
  434. <ul>
  435. <li><code>void</code></li>
  436. </ul>
  437. </div>
  438. </div>
  439. </div>
  440. </td>
  441. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  442. </tr>
  443. <tr class="method-row inherited expandable">
  444. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  445. <td class="sig">
  446. <a id="Ext.BoxComponent-applyToMarkup"></a>
  447. <b>applyToMarkup</b>(&nbsp;<code>String/HTMLElement el</code>&nbsp;) : void <div class="mdesc">
  448. <div class="short">Apply this component to existing markup that is valid. With this function, no call to render() is required.</div>
  449. <div class="long">
  450. Apply this component to existing markup that is valid. With this function, no call to render() is required. <div class="mdetail-params">
  451. <strong>Parameters:</strong>
  452. <ul><li><code>el</code> : String/HTMLElement<div class="sub-desc"></div></li> </ul>
  453. <strong>Returns:</strong>
  454. <ul>
  455. <li><code>void</code></li>
  456. </ul>
  457. </div>
  458. </div>
  459. </div>
  460. </td>
  461. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyToMarkup" href="output/Ext.Component.html#applyToMarkup">Component</a></td>
  462. </tr>
  463. <tr class="method-row inherited alt expandable">
  464. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  465. <td class="sig">
  466. <a id="Ext.BoxComponent-cloneConfig"></a>
  467. <b>cloneConfig</b>(&nbsp;<code>Object overrides</code>&nbsp;) : Ext.Component <div class="mdesc">
  468. <div class="short">Clone the current component using the original config values passed into this instance by default.</div>
  469. <div class="long">
  470. Clone the current component using the original config values passed into this instance by default. <div class="mdetail-params">
  471. <strong>Parameters:</strong>
  472. <ul><li><code>overrides</code> : Object<div class="sub-desc">A new config containing any properties to override in the cloned version.
  473. An id property can be passed on this object, otherwise one will be generated to avoid duplicates.</div></li> </ul>
  474. <strong>Returns:</strong>
  475. <ul>
  476. <li><code>Ext.Component</code><div class="sub-desc">clone The cloned copy of this component</div></li>
  477. </ul>
  478. </div>
  479. </div>
  480. </div>
  481. </td>
  482. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cloneConfig" href="output/Ext.Component.html#cloneConfig">Component</a></td>
  483. </tr>
  484. <tr class="method-row inherited expandable">
  485. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  486. <td class="sig">
  487. <a id="Ext.BoxComponent-destroy"></a>
  488. <b>destroy</b>() : void <div class="mdesc">
  489. <div class="short">Destroys this component by purging any event listeners, removing the component's element from the DOM,
  490. removing the c...</div>
  491. <div class="long">
  492. Destroys this component by purging any event listeners, removing the component's element from the DOM,
  493. removing the component from its <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (if applicable) and unregistering it from
  494. <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. Destruction is generally handled automatically by the framework and this method
  495. should usually not need to be called directly. <div class="mdetail-params">
  496. <strong>Parameters:</strong>
  497. <ul><li>None.</li> </ul>
  498. <strong>Returns:</strong>
  499. <ul>
  500. <li><code>void</code></li>
  501. </ul>
  502. </div>
  503. </div>
  504. </div>
  505. </td>
  506. <td class="msource"><a ext:cls="Ext.Component" ext:member="#destroy" href="output/Ext.Component.html#destroy">Component</a></td>
  507. </tr>
  508. <tr class="method-row inherited alt expandable">
  509. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  510. <td class="sig">
  511. <a id="Ext.BoxComponent-disable"></a>
  512. <b>disable</b>() : Ext.Component <div class="mdesc">
  513. <div class="short">Disable this component.</div>
  514. <div class="long">
  515. Disable this component. <div class="mdetail-params">
  516. <strong>Parameters:</strong>
  517. <ul><li>None.</li> </ul>
  518. <strong>Returns:</strong>
  519. <ul>
  520. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  521. </ul>
  522. </div>
  523. </div>
  524. </div>
  525. </td>
  526. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disable" href="output/Ext.Component.html#disable">Component</a></td>
  527. </tr>
  528. <tr class="method-row inherited expandable">
  529. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  530. <td class="sig">
  531. <a id="Ext.BoxComponent-enable"></a>
  532. <b>enable</b>() : Ext.Component <div class="mdesc">
  533. <div class="short">Enable this component.</div>
  534. <div class="long">
  535. Enable this component. <div class="mdetail-params">
  536. <strong>Parameters:</strong>
  537. <ul><li>None.</li> </ul>
  538. <strong>Returns:</strong>
  539. <ul>
  540. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  541. </ul>
  542. </div>
  543. </div>
  544. </div>
  545. </td>
  546. <td class="msource"><a ext:cls="Ext.Component" ext:member="#enable" href="output/Ext.Component.html#enable">Component</a></td>
  547. </tr>
  548. <tr class="method-row inherited alt expandable">
  549. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  550. <td class="sig">
  551. <a id="Ext.BoxComponent-fireEvent"></a>
  552. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  553. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  554. <div class="long">
  555. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  556. <strong>Parameters:</strong>
  557. <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>
  558. <strong>Returns:</strong>
  559. <ul>
  560. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  561. </ul>
  562. </div>
  563. </div>
  564. </div>
  565. </td>
  566. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  567. </tr>
  568. <tr class="method-row inherited expandable">
  569. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  570. <td class="sig">
  571. <a id="Ext.BoxComponent-focus"></a>
  572. <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">
  573. <div class="short">Try to focus this component.</div>
  574. <div class="long">
  575. Try to focus this component. <div class="mdetail-params">
  576. <strong>Parameters:</strong>
  577. <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>
  578. <strong>Returns:</strong>
  579. <ul>
  580. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  581. </ul>
  582. </div>
  583. </div>
  584. </div>
  585. </td>
  586. <td class="msource"><a ext:cls="Ext.Component" ext:member="#focus" href="output/Ext.Component.html#focus">Component</a></td>
  587. </tr>
  588. <tr class="method-row alt expandable">
  589. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  590. <td class="sig">
  591. <a id="Ext.BoxComponent-getBox"></a>
  592. <b>getBox</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean local</code>]</span>&nbsp;) : Object <div class="mdesc">
  593. <div class="short">Gets the current box measurements of the component's underlying element.</div>
  594. <div class="long">
  595. Gets the current box measurements of the component's underlying element. <div class="mdetail-params">
  596. <strong>Parameters:</strong>
  597. <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>
  598. <strong>Returns:</strong>
  599. <ul>
  600. <li><code>Object</code><div class="sub-desc">box An object in the format {x, y, width, height}</div></li>
  601. </ul>
  602. </div>
  603. </div>
  604. </div>
  605. </td>
  606. <td class="msource">BoxComponent</td>
  607. </tr>
  608. <tr class="method-row inherited expandable">
  609. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  610. <td class="sig">
  611. <a id="Ext.BoxComponent-getEl"></a>
  612. <b>getEl</b>() : Ext.Element <div class="mdesc">
  613. <div class="short">Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.</div>
  614. <div class="long">
  615. Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>. <div class="mdetail-params">
  616. <strong>Parameters:</strong>
  617. <ul><li>None.</li> </ul>
  618. <strong>Returns:</strong>
  619. <ul>
  620. <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>
  621. </ul>
  622. </div>
  623. </div>
  624. </div>
  625. </td>
  626. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getEl" href="output/Ext.Component.html#getEl">Component</a></td>
  627. </tr>
  628. <tr class="method-row inherited alt expandable">
  629. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  630. <td class="sig">
  631. <a id="Ext.BoxComponent-getId"></a>
  632. <b>getId</b>() : String <div class="mdesc">
  633. <div class="short">Returns the id of this component.</div>
  634. <div class="long">
  635. Returns the id of this component. <div class="mdetail-params">
  636. <strong>Parameters:</strong>
  637. <ul><li>None.</li> </ul>
  638. <strong>Returns:</strong>
  639. <ul>
  640. <li><code>String</code></li>
  641. </ul>
  642. </div>
  643. </div>
  644. </div>
  645. </td>
  646. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getId" href="output/Ext.Component.html#getId">Component</a></td>
  647. </tr>
  648. <tr class="method-row inherited expandable">
  649. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  650. <td class="sig">
  651. <a id="Ext.BoxComponent-getItemId"></a>
  652. <b>getItemId</b>() : String <div class="mdesc">
  653. <div class="short">Returns the item id of this component.</div>
  654. <div class="long">
  655. Returns the item id of this component. <div class="mdetail-params">
  656. <strong>Parameters:</strong>
  657. <ul><li>None.</li> </ul>
  658. <strong>Returns:</strong>
  659. <ul>
  660. <li><code>String</code></li>
  661. </ul>
  662. </div>
  663. </div>
  664. </div>
  665. </td>
  666. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getItemId" href="output/Ext.Component.html#getItemId">Component</a></td>
  667. </tr>
  668. <tr class="method-row alt expandable">
  669. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  670. <td class="sig">
  671. <a id="Ext.BoxComponent-getPosition"></a>
  672. <b>getPosition</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean local</code>]</span>&nbsp;) : Array <div class="mdesc">
  673. <div class="short">Gets the current XY position of the component's underlying element.</div>
  674. <div class="long">
  675. Gets the current XY position of the component's underlying element. <div class="mdetail-params">
  676. <strong>Parameters:</strong>
  677. <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>
  678. <strong>Returns:</strong>
  679. <ul>
  680. <li><code>Array</code><div class="sub-desc">The XY position of the element (e.g., [100, 200])</div></li>
  681. </ul>
  682. </div>
  683. </div>
  684. </div>
  685. </td>
  686. <td class="msource">BoxComponent</td>
  687. </tr>
  688. <tr class="method-row expandable">
  689. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  690. <td class="sig">
  691. <a id="Ext.BoxComponent-getSize"></a>
  692. <b>getSize</b>() : Object <div class="mdesc">
  693. <div class="short">Gets the current size of the component's underlying element.</div>
  694. <div class="long">
  695. Gets the current size of the component's underlying element. <div class="mdetail-params">
  696. <strong>Parameters:</strong>
  697. <ul><li>None.</li> </ul>
  698. <strong>Returns:</strong>
  699. <ul>
  700. <li><code>Object</code><div class="sub-desc">An object containing the element's size {width: (element width), height: (element height)}</div></li>
  701. </ul>
  702. </div>
  703. </div>
  704. </div>
  705. </td>
  706. <td class="msource">BoxComponent</td>
  707. </tr>
  708. <tr class="method-row inherited alt expandable">
  709. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  710. <td class="sig">
  711. <a id="Ext.BoxComponent-getXType"></a>
  712. <b>getXType</b>() : String <div class="mdesc">
  713. <div class="short">Gets the xtype for this component as registered with Ext.ComponentMgr. For a list of all
  714. available xtypes, see the Ex...</div>
  715. <div class="long">
  716. 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
  717. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  718. <pre><code>var t = <b>new</b> Ext.form.TextField();
  719. alert(t.getXType()); // alerts <em>'textfield'</em></code></pre> <div class="mdetail-params">
  720. <strong>Parameters:</strong>
  721. <ul><li>None.</li> </ul>
  722. <strong>Returns:</strong>
  723. <ul>
  724. <li><code>String</code><div class="sub-desc">The xtype</div></li>
  725. </ul>
  726. </div>
  727. </div>
  728. </div>
  729. </td>
  730. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXType" href="output/Ext.Component.html#getXType">Component</a></td>
  731. </tr>
  732. <tr class="method-row inherited expandable">
  733. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  734. <td class="sig">
  735. <a id="Ext.BoxComponent-getXTypes"></a>
  736. <b>getXTypes</b>() : String <div class="mdesc">
  737. <div class="short">Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  738. available xtypes, see the Ext...</div>
  739. <div class="long">
  740. Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  741. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  742. <pre><code>
  743. var t = new Ext.form.TextField();
  744. alert(t.getXTypes()); // alerts 'component/box/field/textfield'</pre></code> <div class="mdetail-params">
  745. <strong>Parameters:</strong>
  746. <ul><li>None.</li> </ul>
  747. <strong>Returns:</strong>
  748. <ul>
  749. <li><code>String</code><div class="sub-desc">The xtype hierarchy string</div></li>
  750. </ul>
  751. </div>
  752. </div>
  753. </div>
  754. </td>
  755. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXTypes" href="output/Ext.Component.html#getXTypes">Component</a></td>
  756. </tr>
  757. <tr class="method-row inherited alt expandable">
  758. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  759. <td class="sig">
  760. <a id="Ext.BoxComponent-hasListener"></a>
  761. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  762. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  763. <div class="long">
  764. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  765. <strong>Parameters:</strong>
  766. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  767. <strong>Returns:</strong>
  768. <ul>
  769. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  770. </ul>
  771. </div>
  772. </div>
  773. </div>
  774. </td>
  775. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  776. </tr>
  777. <tr class="method-row inherited expandable">
  778. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  779. <td class="sig">
  780. <a id="Ext.BoxComponent-hide"></a>
  781. <b>hide</b>() : Ext.Component <div class="mdesc">
  782. <div class="short">Hide this component.</div>
  783. <div class="long">
  784. Hide this component. <div class="mdetail-params">
  785. <strong>Parameters:</strong>
  786. <ul><li>None.</li> </ul>
  787. <strong>Returns:</strong>
  788. <ul>
  789. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  790. </ul>
  791. </div>
  792. </div>
  793. </div>
  794. </td>
  795. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hide" href="output/Ext.Component.html#hide">Component</a></td>
  796. </tr>
  797. <tr class="method-row alt expandable">
  798. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  799. <td class="sig">
  800. <a id="Ext.BoxComponent-initComponent"></a>
  801. <b>initComponent</b>() : void <div class="mdesc">
  802. <div class="short"></div>
  803. <div class="long">
  804. <div class="mdetail-params">
  805. <strong>Parameters:</strong>
  806. <ul><li>None.</li> </ul>
  807. <strong>Returns:</strong>
  808. <ul>
  809. <li><code>void</code></li>
  810. </ul>
  811. </div>
  812. </div>
  813. </div>
  814. </td>
  815. <td class="msource">BoxComponent</td>
  816. </tr>
  817. <tr class="method-row inherited expandable">
  818. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  819. <td class="sig">
  820. <a id="Ext.BoxComponent-isVisible"></a>
  821. <b>isVisible</b>() : void <div class="mdesc">
  822. <div class="short">Returns true if this component is visible.</div>
  823. <div class="long">
  824. Returns true if this component is visible. <div class="mdetail-params">
  825. <strong>Parameters:</strong>
  826. <ul><li>None.</li> </ul>
  827. <strong>Returns:</strong>
  828. <ul>
  829. <li><code>void</code></li>
  830. </ul>
  831. </div>
  832. </div>
  833. </div>
  834. </td>
  835. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isVisible" href="output/Ext.Component.html#isVisible">Component</a></td>
  836. </tr>
  837. <tr class="method-row inherited alt expandable">
  838. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  839. <td class="sig">
  840. <a id="Ext.BoxComponent-isXType"></a>
  841. <b>isXType</b>(&nbsp;<code>String xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : void <div class="mdesc">
  842. <div class="short">Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  843. from th...</div>
  844. <div class="long">
  845. Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  846. from the xtype (default) or whether it is directly of the xtype specified (shallow = true). For a list of all
  847. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  848. <pre><code>var t = <b>new</b> Ext.form.TextField();
  849. <b>var</b> isText = t.isXType(<em>'textfield'</em>); <i>// true</i>
  850. <b>var</b> isBoxSubclass = t.isXType(<em>'box'</em>); <i>// true, descended from BoxComponent</i>
  851. <b>var</b> isBoxInstance = t.isXType(<em>'box'</em>, true); // false, not a direct BoxComponent instance</code></pre> <div class="mdetail-params">
  852. <strong>Parameters:</strong>
  853. <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
  854. the default), or true to check whether this component is directly of the specified xtype.</div></li> </ul>
  855. <strong>Returns:</strong>
  856. <ul>
  857. <li><code>void</code></li>
  858. </ul>
  859. </div>
  860. </div>
  861. </div>
  862. </td>
  863. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isXType" href="output/Ext.Component.html#isXType">Component</a></td>
  864. </tr>
  865. <tr class="method-row inherited expandable">
  866. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  867. <td class="sig">
  868. <a id="Ext.BoxComponent-on"></a>
  869. <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">
  870. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  871. <div class="long">
  872. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  873. <strong>Parameters:</strong>
  874. <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
  875. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  876. <strong>Returns:</strong>
  877. <ul>
  878. <li><code>void</code></li>
  879. </ul>
  880. </div>
  881. </div>
  882. </div>
  883. </td>
  884. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  885. </tr>
  886. <tr class="method-row inherited alt expandable">
  887. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  888. <td class="sig">
  889. <a id="Ext.BoxComponent-purgeListeners"></a>
  890. <b>purgeListeners</b>() : void <div class="mdesc">
  891. <div class="short">Removes all listeners for this object</div>
  892. <div class="long">
  893. Removes all listeners for this object <div class="mdetail-params">
  894. <strong>Parameters:</strong>
  895. <ul><li>None.</li> </ul>
  896. <strong>Returns:</strong>
  897. <ul>
  898. <li><code>void</code></li>
  899. </ul>
  900. </div>
  901. </div>
  902. </div>
  903. </td>
  904. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  905. </tr>
  906. <tr class="method-row inherited expandable">
  907. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  908. <td class="sig">
  909. <a id="Ext.BoxComponent-removeClass"></a>
  910. <b>removeClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  911. <div class="short">Removes a CSS class from the component's underlying element.</div>
  912. <div class="long">
  913. Removes a CSS class from the component's underlying element. <div class="mdetail-params">
  914. <strong>Parameters:</strong>
  915. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to remove</div></li> </ul>
  916. <strong>Returns:</strong>
  917. <ul>
  918. <li><code>void</code></li>
  919. </ul>
  920. </div>
  921. </div>
  922. </div>
  923. </td>
  924. <td class="msource"><a ext:cls="Ext.Component" ext:member="#removeClass" href="output/Ext.Component.html#removeClass">Component</a></td>
  925. </tr>
  926. <tr class="method-row inherited alt expandable">
  927. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  928. <td class="sig">
  929. <a id="Ext.BoxComponent-removeListener"></a>
  930. <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">
  931. <div class="short">Removes a listener</div>
  932. <div class="long">
  933. Removes a listener <div class="mdetail-params">
  934. <strong>Parameters:</strong>
  935. <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>
  936. <strong>Returns:</strong>
  937. <ul>
  938. <li><code>void</code></li>
  939. </ul>
  940. </div>
  941. </div>
  942. </div>
  943. </td>
  944. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  945. </tr>
  946. <tr class="method-row inherited expandable">
  947. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  948. <td class="sig">
  949. <a id="Ext.BoxComponent-render"></a>
  950. <b>render</b>(&nbsp;<span class="optional" title="Optional">[<code>Mixed container</code>]</span>, <span class="optional" title="Optional">[<code>String/Number position</code>]</span>&nbsp;) : void <div class="mdesc">
  951. <div class="short">If this is a lazy rendering component, render it to its container element.</div>
  952. <div class="long">
  953. If this is a lazy rendering component, render it to its container element. <div class="mdetail-params">
  954. <strong>Parameters:</strong>
  955. <ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The element this component should be rendered into. If it is being
  956. applied to existing markup, this should be left off.</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>
  957. which this component will be inserted (defaults to appending to the end of the container)</div></li> </ul>
  958. <strong>Returns:</strong>
  959. <ul>
  960. <li><code>void</code></li>
  961. </ul>
  962. </div>
  963. </div>
  964. </div>
  965. </td>
  966. <td class="msource"><a ext:cls="Ext.Component" ext:member="#render" href="output/Ext.Component.html#render">Component</a></td>
  967. </tr>
  968. <tr class="method-row inherited alt expandable">
  969. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  970. <td class="sig">
  971. <a id="Ext.BoxComponent-resumeEvents"></a>
  972. <b>resumeEvents</b>() : void <div class="mdesc">
  973. <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>
  974. <div class="long">
  975. 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">
  976. <strong>Parameters:</strong>
  977. <ul><li>None.</li> </ul>
  978. <strong>Returns:</strong>
  979. <ul>
  980. <li><code>void</code></li>
  981. </ul>
  982. </div>
  983. </div>
  984. </div>
  985. </td>
  986. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  987. </tr>
  988. <tr class="method-row inherited expandable">
  989. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  990. <td class="sig">
  991. <a id="Ext.BoxComponent-setDisabled"></a>
  992. <b>setDisabled</b>(&nbsp;<code>Boolean disabled</code>&nbsp;) : void <div class="mdesc">
  993. <div class="short">Convenience function for setting disabled/enabled by boolean.</div>
  994. <div class="long">
  995. Convenience function for setting disabled/enabled by boolean. <div class="mdetail-params">
  996. <strong>Parameters:</strong>
  997. <ul><li><code>disabled</code> : Boolean<div class="sub-desc"></div></li> </ul>
  998. <strong>Returns:</strong>
  999. <ul>
  1000. <li><code>void</code></li>
  1001. </ul>
  1002. </div>
  1003. </div>
  1004. </div>
  1005. </td>
  1006. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setDisabled" href="output/Ext.Component.html#setDisabled">Component</a></td>
  1007. </tr>
  1008. <tr class="method-row alt expandable">
  1009. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1010. <td class="sig">
  1011. <a id="Ext.BoxComponent-setHeight"></a>
  1012. <b>setHeight</b>(&nbsp;<code>Number height</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1013. <div class="short">Sets the height of the component. This method fires the resize event.</div>
  1014. <div class="long">
  1015. Sets the height of the component. This method fires the resize event. <div class="mdetail-params">
  1016. <strong>Parameters:</strong>
  1017. <ul><li><code>height</code> : Number<div class="sub-desc">The new height to set</div></li> </ul>
  1018. <strong>Returns:</strong>
  1019. <ul>
  1020. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1021. </ul>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. </td>
  1026. <td class="msource">BoxComponent</td>
  1027. </tr>
  1028. <tr class="method-row expandable">
  1029. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1030. <td class="sig">
  1031. <a id="Ext.BoxComponent-setPagePosition"></a>
  1032. <b>setPagePosition</b>(&nbsp;<code>Number x</code>, <code>Number y</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1033. <div class="short">Sets the page XY position of the component. To set the left and top instead, use setPosition.
  1034. This method fires the ...</div>
  1035. <div class="long">
  1036. 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>.
  1037. This method fires the move event. <div class="mdetail-params">
  1038. <strong>Parameters:</strong>
  1039. <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>
  1040. <strong>Returns:</strong>
  1041. <ul>
  1042. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1043. </ul>
  1044. </div>
  1045. </div>
  1046. </div>
  1047. </td>
  1048. <td class="msource">BoxComponent</td>
  1049. </tr>
  1050. <tr class="method-row alt expandable">
  1051. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1052. <td class="sig">
  1053. <a id="Ext.BoxComponent-setPosition"></a>
  1054. <b>setPosition</b>(&nbsp;<code>Number left</code>, <code>Number top</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1055. <div class="short">Sets the left and top of the component. To set the page XY position instead, use setPagePosition.
  1056. This method fires ...</div>
  1057. <div class="long">
  1058. 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>.
  1059. This method fires the move event. <div class="mdetail-params">
  1060. <strong>Parameters:</strong>
  1061. <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>
  1062. <strong>Returns:</strong>
  1063. <ul>
  1064. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1065. </ul>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </td>
  1070. <td class="msource">BoxComponent</td>
  1071. </tr>
  1072. <tr class="method-row expandable">
  1073. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1074. <td class="sig">
  1075. <a id="Ext.BoxComponent-setSize"></a>
  1076. <b>setSize</b>(&nbsp;<code>Number/Object width</code>, <code>Number height</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1077. <div class="short">Sets the width and height of the component. This method fires the resize event. This method can accept
  1078. either width...</div>
  1079. <div class="long">
  1080. Sets the width and height of the component. This method fires the resize event. This method can accept
  1081. either width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}. <div class="mdetail-params">
  1082. <strong>Parameters:</strong>
  1083. <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>
  1084. <strong>Returns:</strong>
  1085. <ul>
  1086. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1087. </ul>
  1088. </div>
  1089. </div>
  1090. </div>
  1091. </td>
  1092. <td class="msource">BoxComponent</td>
  1093. </tr>
  1094. <tr class="method-row inherited alt expandable">
  1095. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1096. <td class="sig">
  1097. <a id="Ext.BoxComponent-setVisible"></a>
  1098. <b>setVisible</b>(&nbsp;<code>Boolean visible</code>&nbsp;) : Ext.Component <div class="mdesc">
  1099. <div class="short">Convenience function to hide or show this component by boolean.</div>
  1100. <div class="long">
  1101. Convenience function to hide or show this component by boolean. <div class="mdetail-params">
  1102. <strong>Parameters:</strong>
  1103. <ul><li><code>visible</code> : Boolean<div class="sub-desc">True to show, false to hide</div></li> </ul>
  1104. <strong>Returns:</strong>
  1105. <ul>
  1106. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1107. </ul>
  1108. </div>
  1109. </div>
  1110. </div>
  1111. </td>
  1112. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setVisible" href="output/Ext.Component.html#setVisible">Component</a></td>
  1113. </tr>
  1114. <tr class="method-row expandable">
  1115. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1116. <td class="sig">
  1117. <a id="Ext.BoxComponent-setWidth"></a>
  1118. <b>setWidth</b>(&nbsp;<code>Number width</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1119. <div class="short">Sets the width of the component. This method fires the resize event.</div>
  1120. <div class="long">
  1121. Sets the width of the component. This method fires the resize event. <div class="mdetail-params">
  1122. <strong>Parameters:</strong>
  1123. <ul><li><code>width</code> : Number<div class="sub-desc">The new width to set</div></li> </ul>
  1124. <strong>Returns:</strong>
  1125. <ul>
  1126. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1127. </ul>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. </td>
  1132. <td class="msource">BoxComponent</td>
  1133. </tr>
  1134. <tr class="method-row inherited alt expandable">
  1135. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1136. <td class="sig">
  1137. <a id="Ext.BoxComponent-show"></a>
  1138. <b>show</b>() : Ext.Component <div class="mdesc">
  1139. <div class="short">Show this component.</div>
  1140. <div class="long">
  1141. Show this component. <div class="mdetail-params">
  1142. <strong>Parameters:</strong>
  1143. <ul><li>None.</li> </ul>
  1144. <strong>Returns:</strong>
  1145. <ul>
  1146. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1147. </ul>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. </td>
  1152. <td class="msource"><a ext:cls="Ext.Component" ext:member="#show" href="output/Ext.Component.html#show">Component</a></td>
  1153. </tr>
  1154. <tr class="method-row inherited expandable">
  1155. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1156. <td class="sig">
  1157. <a id="Ext.BoxComponent-suspendEvents"></a>
  1158. <b>suspendEvents</b>() : void <div class="mdesc">
  1159. <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>
  1160. <div class="long">
  1161. 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">
  1162. <strong>Parameters:</strong>
  1163. <ul><li>None.</li> </ul>
  1164. <strong>Returns:</strong>
  1165. <ul>
  1166. <li><code>void</code></li>
  1167. </ul>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. </td>
  1172. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  1173. </tr>
  1174. <tr class="method-row alt expandable">
  1175. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1176. <td class="sig">
  1177. <a id="Ext.BoxComponent-syncSize"></a>
  1178. <b>syncSize</b>() : Ext.BoxComponent <div class="mdesc">
  1179. <div class="short">Force the component's size to recalculate based on the underlying element's current height and width.</div>
  1180. <div class="long">
  1181. Force the component's size to recalculate based on the underlying element's current height and width. <div class="mdetail-params">
  1182. <strong>Parameters:</strong>
  1183. <ul><li>None.</li> </ul>
  1184. <strong>Returns:</strong>
  1185. <ul>
  1186. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1187. </ul>
  1188. </div>
  1189. </div>
  1190. </div>
  1191. </td>
  1192. <td class="msource">BoxComponent</td>
  1193. </tr>
  1194. <tr class="method-row inherited expandable">
  1195. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1196. <td class="sig">
  1197. <a id="Ext.BoxComponent-un"></a>
  1198. <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">
  1199. <div class="short">Removes a listener (shorthand for removeListener)</div>
  1200. <div class="long">
  1201. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  1202. <strong>Parameters:</strong>
  1203. <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>
  1204. <strong>Returns:</strong>
  1205. <ul>
  1206. <li><code>void</code></li>
  1207. </ul>
  1208. </div>
  1209. </div>
  1210. </div>
  1211. </td>
  1212. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  1213. </tr>
  1214. <tr class="method-row alt expandable">
  1215. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1216. <td class="sig">
  1217. <a id="Ext.BoxComponent-updateBox"></a>
  1218. <b>updateBox</b>(&nbsp;<code>Object box</code>&nbsp;) : Ext.BoxComponent <div class="mdesc">
  1219. <div class="short">Sets the current box measurements of the component's underlying element.</div>
  1220. <div class="long">
  1221. Sets the current box measurements of the component's underlying element. <div class="mdetail-params">
  1222. <strong>Parameters:</strong>
  1223. <ul><li><code>box</code> : Object<div class="sub-desc">An object in the format {x, y, width, height}</div></li> </ul>
  1224. <strong>Returns:</strong>
  1225. <ul>
  1226. <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
  1227. </ul>
  1228. </div>
  1229. </div>
  1230. </div>
  1231. </td>
  1232. <td class="msource">BoxComponent</td>
  1233. </tr>
  1234. </table>
  1235. <a id="Ext.BoxComponent-events"></a>
  1236. <h2>Public Events</h2>
  1237. <table cellspacing="0" class="member-table">
  1238. <tr>
  1239. <th class="sig-header" colspan="2">Event</th>
  1240. <th class="msource-header">Defined By</th>
  1241. </tr>
  1242. <tr class="event-row inherited expandable">
  1243. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1244. <td class="sig">
  1245. <a id="Ext.BoxComponent-beforedestroy"></a>
  1246. <b>beforedestroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1247. <div class="short">Fires before the component is destroyed. Return false to stop the destroy.</div>
  1248. <div class="long">
  1249. Fires before the component is destroyed. Return false to stop the destroy. <div class="mdetail-params">
  1250. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1251. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1252. </div>
  1253. </div>
  1254. </div>
  1255. </td>
  1256. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforedestroy" href="output/Ext.Component.html#event-beforedestroy">Component</a></td>
  1257. </tr>
  1258. <tr class="event-row inherited alt expandable">
  1259. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1260. <td class="sig">
  1261. <a id="Ext.BoxComponent-beforehide"></a>
  1262. <b>beforehide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1263. <div class="short">Fires before the component is hidden. Return false to stop the hide.</div>
  1264. <div class="long">
  1265. Fires before the component is hidden. Return false to stop the hide. <div class="mdetail-params">
  1266. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1267. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. </td>
  1272. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforehide" href="output/Ext.Component.html#event-beforehide">Component</a></td>
  1273. </tr>
  1274. <tr class="event-row inherited expandable">
  1275. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1276. <td class="sig">
  1277. <a id="Ext.BoxComponent-beforerender"></a>
  1278. <b>beforerender</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1279. <div class="short">Fires before the component is rendered. Return false to stop the render.</div>
  1280. <div class="long">
  1281. Fires before the component is rendered. Return false to stop the render. <div class="mdetail-params">
  1282. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1283. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1284. </div>
  1285. </div>
  1286. </div>
  1287. </td>
  1288. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforerender" href="output/Ext.Component.html#event-beforerender">Component</a></td>
  1289. </tr>
  1290. <tr class="event-row inherited alt expandable">
  1291. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1292. <td class="sig">
  1293. <a id="Ext.BoxComponent-beforeshow"></a>
  1294. <b>beforeshow</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1295. <div class="short">Fires before the component is shown. Return false to stop the show.</div>
  1296. <div class="long">
  1297. Fires before the component is shown. Return false to stop the show. <div class="mdetail-params">
  1298. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1299. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. </td>
  1304. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforeshow" href="output/Ext.Component.html#event-beforeshow">Component</a></td>
  1305. </tr>
  1306. <tr class="event-row inherited expandable">
  1307. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1308. <td class="sig">
  1309. <a id="Ext.BoxComponent-beforestaterestore"></a>
  1310. <b>beforestaterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1311. <div class="short">Fires before the state of the component is restored. Return false to stop the restore.</div>
  1312. <div class="long">
  1313. Fires before the state of the component is restored. Return false to stop the restore. <div class="mdetail-params">
  1314. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1315. <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>
  1316. </div>
  1317. </div>
  1318. </div>
  1319. </td>
  1320. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestaterestore" href="output/Ext.Component.html#event-beforestaterestore">Component</a></td>
  1321. </tr>
  1322. <tr class="event-row inherited alt expandable">
  1323. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1324. <td class="sig">
  1325. <a id="Ext.BoxComponent-beforestatesave"></a>
  1326. <b>beforestatesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1327. <div class="short">Fires before the state of the component is saved to the configured state provider. Return false to stop the save.</div>
  1328. <div class="long">
  1329. Fires before the state of the component is saved to the configured state provider. Return false to stop the save. <div class="mdetail-params">
  1330. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1331. <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>
  1332. </div>
  1333. </div>
  1334. </div>
  1335. </td>
  1336. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestatesave" href="output/Ext.Component.html#event-beforestatesave">Component</a></td>
  1337. </tr>
  1338. <tr class="event-row inherited expandable">
  1339. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1340. <td class="sig">
  1341. <a id="Ext.BoxComponent-destroy"></a>
  1342. <b>destroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1343. <div class="short">Fires after the component is destroyed.</div>
  1344. <div class="long">
  1345. Fires after the component is destroyed. <div class="mdetail-params">
  1346. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1347. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. </td>
  1352. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-destroy" href="output/Ext.Component.html#event-destroy">Component</a></td>
  1353. </tr>
  1354. <tr class="event-row inherited alt expandable">
  1355. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1356. <td class="sig">
  1357. <a id="Ext.BoxComponent-disable"></a>
  1358. <b>disable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1359. <div class="short">Fires after the component is disabled.</div>
  1360. <div class="long">
  1361. Fires after the component is disabled. <div class="mdetail-params">
  1362. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1363. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1364. </div>
  1365. </div>
  1366. </div>
  1367. </td>
  1368. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-disable" href="output/Ext.Component.html#event-disable">Component</a></td>
  1369. </tr>
  1370. <tr class="event-row inherited expandable">
  1371. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1372. <td class="sig">
  1373. <a id="Ext.BoxComponent-enable"></a>
  1374. <b>enable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1375. <div class="short">Fires after the component is enabled.</div>
  1376. <div class="long">
  1377. Fires after the component is enabled. <div class="mdetail-params">
  1378. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1379. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. </td>
  1384. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-enable" href="output/Ext.Component.html#event-enable">Component</a></td>
  1385. </tr>
  1386. <tr class="event-row inherited alt expandable">
  1387. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1388. <td class="sig">
  1389. <a id="Ext.BoxComponent-hide"></a>
  1390. <b>hide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1391. <div class="short">Fires after the component is hidden.</div>
  1392. <div class="long">
  1393. Fires after the component is hidden. <div class="mdetail-params">
  1394. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1395. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. </td>
  1400. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-hide" href="output/Ext.Component.html#event-hide">Component</a></td>
  1401. </tr>
  1402. <tr class="event-row expandable">
  1403. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1404. <td class="sig">
  1405. <a id="Ext.BoxComponent-move"></a>
  1406. <b>move</b> : (&nbsp;<code>Ext.Component this</code>, <code>Number x</code>, <code>Number y</code>&nbsp;) <div class="mdesc">
  1407. <div class="short">Fires after the component is moved.</div>
  1408. <div class="long">
  1409. Fires after the component is moved. <div class="mdetail-params">
  1410. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1411. <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>
  1412. </div>
  1413. </div>
  1414. </div>
  1415. </td>
  1416. <td class="msource">BoxComponent</td>
  1417. </tr>
  1418. <tr class="event-row inherited alt expandable">
  1419. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1420. <td class="sig">
  1421. <a id="Ext.BoxComponent-render"></a>
  1422. <b>render</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1423. <div class="short">Fires after the component is rendered.</div>
  1424. <div class="long">
  1425. Fires after the component is rendered. <div class="mdetail-params">
  1426. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1427. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1428. </div>
  1429. </div>
  1430. </div>
  1431. </td>
  1432. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-render" href="output/Ext.Component.html#event-render">Component</a></td>
  1433. </tr>
  1434. <tr class="event-row expandable">
  1435. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1436. <td class="sig">
  1437. <a id="Ext.BoxComponent-resize"></a>
  1438. <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">
  1439. <div class="short">Fires after the component is resized.</div>
  1440. <div class="long">
  1441. Fires after the component is resized. <div class="mdetail-params">
  1442. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1443. <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>
  1444. </div>
  1445. </div>
  1446. </div>
  1447. </td>
  1448. <td class="msource">BoxComponent</td>
  1449. </tr>
  1450. <tr class="event-row inherited alt expandable">
  1451. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1452. <td class="sig">
  1453. <a id="Ext.BoxComponent-show"></a>
  1454. <b>show</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1455. <div class="short">Fires after the component is shown.</div>
  1456. <div class="long">
  1457. Fires after the component is shown. <div class="mdetail-params">
  1458. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1459. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. </td>
  1464. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-show" href="output/Ext.Component.html#event-show">Component</a></td>
  1465. </tr>
  1466. <tr class="event-row inherited expandable">
  1467. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1468. <td class="sig">
  1469. <a id="Ext.BoxComponent-staterestore"></a>
  1470. <b>staterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1471. <div class="short">Fires after the state of the component is restored.</div>
  1472. <div class="long">
  1473. Fires after the state of the component is restored. <div class="mdetail-params">
  1474. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1475. <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>
  1476. </div>
  1477. </div>
  1478. </div>
  1479. </td>
  1480. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-staterestore" href="output/Ext.Component.html#event-staterestore">Component</a></td>
  1481. </tr>
  1482. <tr class="event-row inherited alt expandable">
  1483. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1484. <td class="sig">
  1485. <a id="Ext.BoxComponent-statesave"></a>
  1486. <b>statesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1487. <div class="short">Fires after the state of the component is saved to the configured state provider.</div>
  1488. <div class="long">
  1489. Fires after the state of the component is saved to the configured state provider. <div class="mdetail-params">
  1490. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1491. <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>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. </td>
  1496. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-statesave" href="output/Ext.Component.html#event-statesave">Component</a></td>
  1497. </tr>
  1498. </table>
  1499. </div>