1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.XComponent</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.XComponent-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.XComponent-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.XComponent-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.XComponent-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.XComponent
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_XComponent.js.html">Roo/XComponent.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">XComponent</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 A delayed Element creator...<br/>Or a way to group chunks of interface together.<br/>technically this is a wrapper around a tree of Roo elements (which defines a 'module'),<br/> used in conjunction with XComponent.build() it will create an instance of each element,<br/> then call addxtype() to build the User interface.<br/><br/>Mypart.xyx = new Roo.XComponent({<br/><br/> parent : 'Mypart.xyz', // empty == document.element.!!<br/> order : '001',<br/> name : 'xxxx'<br/> region : 'xxxx'<br/> disabled : function() {} <br/> <br/> tree : function() { // return an tree of xtype declared components<br/> var MODULE = this;<br/> return <br/> {<br/> xtype : 'NestedLayoutPanel',<br/> // technicall<br/> }<br/> ]<br/>})<br/><br/><br/>It can be used to build a big heiracy, with parent etc.<br/>or you can just use this to render a single compoent to a dom element<br/>MYPART.render(Roo.Element | String(id) | dom_element )<br/><br/><br/>Usage patterns.<br/><br/>Classic Roo<br/><br/>Roo is designed primarily as a single page application, so the UI build for a standard interface will<br/>expect a single 'TOP' level module normally indicated by the 'parent' of the XComponent definition being defined as false.<br/><br/>Each sub module is expected to have a parent pointing to the class name of it's parent module.<br/><br/>When the top level is false, a 'Roo.BorderLayout' is created and the element is flagged as 'topModule'<br/>- if mulitple topModules exist, the last one is defined as the top module.<br/><br/>Embeded Roo<br/><br/>When the top level or multiple modules are to embedded into a existing HTML page,<br/>the parent element can container '<b>id</b>' of the element where the module will be drawn.<br/><br/>Bootstrap Roo<br/><br/>Unlike classic Roo, the bootstrap tends not to be used as a single page.<br/>it relies more on a include mechanism, where sub modules are included into an outer page.<br/>This is normally managed by the builder tools using Roo.apply( options, Included.Sub.Module )<br/><br/>Bootstrap Roo Included elements<br/><br/>Our builder application needs the ability to preview these sub compoennts. They will normally have parent=false set,<br/>hence confusing the component builder as it thinks there are multiple top level elements.
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.XComponent';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.XComponent.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.XComponent-configs"></a>
113 <table cellspacing="0" class="member-table">
114 <caption>Config Options (Usually are also Properties)</caption>
118 <th class="sig-header" colspan="2">Options</th>
120 <th class="msource-header">Defined By</th>
127 <tr class="config-row expandable config-row-alt0 notInherited">
128 <td class="micon"><a class="exi" href="#expand"> </a></td>
131 <a id="Roo.XComponent-cfg-disabled" name=".disabled"></a>
132 <div class="fixedFont">
133 <b class="itemname">disabled</b> : <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a>|boolean
139 <div class="short">If this module is disabled by some rule, return true from the funtion</div>
144 If this module is disabled by some rule, return true from the funtion
160 <tr class="config-row expandable config-row-alt1 notInherited">
161 <td class="micon"><a class="exi" href="#expand"> </a></td>
164 <a id="Roo.XComponent-cfg-items" name=".items"></a>
165 <div class="fixedFont">
166 <b class="itemname">items</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
172 <div class="short">A single item array - the first element is the root of the tree.</div>
177 A single item array - the first element is the root of the tree..<br/>It's done this way to stay compatible with the Xtype system...
193 <tr class="config-row expandable config-row-alt0">
194 <td class="micon"><a class="exi" href="#expand"> </a></td>
197 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
198 <div class="fixedFont">
199 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
205 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
210 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
220 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
226 <tr class="config-row expandable config-row-alt1 notInherited">
227 <td class="micon"><a class="exi" href="#expand"> </a></td>
230 <a id="Roo.XComponent-cfg-name" name=".name"></a>
231 <div class="fixedFont">
232 <b class="itemname">name</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
238 <div class="short">String to display while loading.</div>
243 String to display while loading.
259 <tr class="config-row expandable config-row-alt0 notInherited">
260 <td class="micon"><a class="exi" href="#expand"> </a></td>
263 <a id="Roo.XComponent-cfg-order" name=".order"></a>
264 <div class="fixedFont">
265 <b class="itemname">order</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
271 <div class="short">Used to set the order in which elements are created (usefull for multiple tabs)</div>
276 Used to set the order in which elements are created (usefull for multiple tabs)
292 <tr class="config-row expandable config-row-alt1 notInherited">
293 <td class="micon"><a class="exi" href="#expand"> </a></td>
296 <a id="Roo.XComponent-cfg-parent" name=".parent"></a>
297 <div class="fixedFont">
298 <b class="itemname">parent</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
304 <div class="short">Name of parent element which it get xtype added to.</div>
309 Name of parent element which it get xtype added to..
325 <tr class="config-row expandable config-row-alt0 notInherited">
326 <td class="micon"><a class="exi" href="#expand"> </a></td>
329 <a id="Roo.XComponent-cfg-region" name=".region"></a>
330 <div class="fixedFont">
331 <b class="itemname">region</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
337 <div class="short">Region to render component to (defaults to center)</div>
342 Region to render component to (defaults to center)
368 <!-- ============================== public properties ==================== -->
372 <a id="Roo.XComponent-props"></a>
380 <table cellspacing="0" class="member-table">
381 <caption>Public Properties </caption>
383 <th class="sig-header" colspan="2">Property</th>
384 <th class="sig-header">Description</th>
385 <th class="msource-header">Defined By</th>
395 <tr class="property-row config-row-alt0 notInherited">
397 <a class="exi" href="#expand"> </a>
400 <a id="Roo.XComponent-prop-buildCompleted" name=".buildCompleted"></a>
401 <div class="fixedFont">
402 <span class="attributes">Roo.XComponent.</span><b class="itemname">buildCompleted</b> :
403 <span type="etype"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>
411 True when the builder has completed building the interface.
419 True when the builder has completed building the interface.
434 <tr class="property-row config-row-alt1 notInherited">
436 <a class="exi" href="#expand"> </a>
439 <a id="Roo.XComponent-prop-build_from_html" name=".build_from_html"></a>
440 <div class="fixedFont">
441 <span class="attributes">Roo.XComponent.</span><b class="itemname">build_from_html</b> :
442 <span type="etype">true (default false)</span>
450 Build elements from html - used by bootstrap HTML stuff <br/> - this is cleared after build is completed
458 Build elements from html - used by bootstrap HTML stuff <br/> - this is cleared after build is completed
473 <tr class="property-row config-row-alt0 notInherited">
475 <a class="exi" href="#expand"> </a>
478 <a id="Roo.XComponent-prop-elmodules" name=".elmodules"></a>
479 <div class="fixedFont">
480 <span class="attributes">Roo.XComponent.</span><b class="itemname">elmodules</b> :
481 <span type="etype">of Roo.XComponent</span>
489 array of modules to be created by which use <b>ID</b>
497 array of modules to be created by which use <b>ID</b>
512 <tr class="property-row config-row-alt1 notInherited">
514 <a class="exi" href="#expand"> </a>
517 <a id="Roo.XComponent-prop-event" name=".event"></a>
518 <div class="fixedFont">
519 <span class="attributes">Roo.XComponent.</span><b class="itemname">event</b> :
520 <span type="etype"></span>
551 <tr class="property-row config-row-alt0 notInherited">
553 <a class="exi" href="#expand"> </a>
556 <a id="Roo.XComponent-prop-hideProgress" name=".hideProgress"></a>
557 <div class="fixedFont">
558 <span class="attributes">Roo.XComponent.</span><b class="itemname">hideProgress</b> :
559 <span type="etype"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>
567 true to disable the building progress bar.
575 true to disable the building progress bar.. usefull on single page renders.
590 <tr class="property-row config-row-alt1 notInherited">
592 <a class="exi" href="#expand"> </a>
595 <a id="Roo.XComponent-prop-modules" name=".modules"></a>
596 <div class="fixedFont">
597 <span class="attributes">Roo.XComponent.</span><b class="itemname">modules</b> :
598 <span type="etype">of Roo.XComponent</span>
606 array of modules to be created by registration system.
614 array of modules to be created by registration system.
629 <tr class="property-row config-row-alt0 notInherited">
631 <a class="exi" href="#expand"> </a>
634 <a id="Roo.XComponent-prop-on" name=".on"></a>
635 <div class="fixedFont">
636 <span class="attributes">Roo.XComponent.</span><b class="itemname">on</b> :
637 <span type="etype"></span>
645 wrapper for event.on - aliased later.
653 wrapper for event.on - aliased later.. <br/>Typically use to register a event handler for register:<br/><br/>eg. Roo.XComponent.on('register', function(comp) { comp.disable = true } );
668 <tr class="property-row config-row-alt1 notInherited">
670 <a class="exi" href="#expand"> </a>
673 <a id="Roo.XComponent-prop-topModule" name=".topModule"></a>
674 <div class="fixedFont">
675 <span class="attributes">Roo.XComponent.</span><b class="itemname">topModule</b> :
676 <span type="etype"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>
684 the upper most module - uses document.element as it's constructor.
692 the upper most module - uses document.element as it's constructor.
708 <!-- TODO: implement this alt row. also notice non-linked "Defined by" when property is a part of this class.
709 <tr class="property-row alt">
716 <!-- ============================== methods summary / details ======================== -->
719 <a id="Roo.XComponent-methods"></a>
720 <!-- constructor?? -->
727 <!-- then dynamics first -->
734 <table cellspacing="0" class="member-table">
735 <caption>Public Methods</caption>
737 <th class="sig-header" colspan="2">Method</th>
738 <th class="msource-header">Defined By</th>
748 <tr class="method-row config-row-alt0 expandable notInherited">
749 <td class="micon"><a class="exi" href="#expand"> </a></td>
753 <a id="Roo-method-XComponent" name=".XComponent"></a>
754 <div class="fixedFont">
755 <span class="attributes">new <B>Roo.</B></span><b class="itemname">XComponent</b>
765 <div class="short">Create a new Roo.XComponent</div>
772 Create a new Roo.XComponent
775 <dl class="detailList">
776 <dt class="heading">Parameters:</dt>
782 <dd>{Object} configuration of component</dd>
806 <tr class="method-row config-row-alt1 expandable notInherited">
807 <td class="micon"><a class="exi" href="#expand"> </a></td>
811 <a id="Roo.XComponent-method-build" name=".build"></a>
812 <div class="fixedFont">
813 <span class="attributes">Roo.XComponent.</span><b class="itemname">build</b>
815 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>parent</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>optional</i></B>)
822 <div class="short">Build the registered modules.</div>
828 Build the registered modules.
835 <dl class="detailList">
836 <dt class="heading">Parameters:</dt>
839 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>parent</b>
845 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>optional</b>
848 <dd>method to call after module has been added.</dd>
874 <tr class="method-row config-row-alt0 expandable notInherited">
875 <td class="micon"><a class="exi" href="#expand"> </a></td>
879 <a id="Roo.XComponent-method-buildOrder" name=".buildOrder"></a>
880 <div class="fixedFont">
881 <span class="attributes">Roo.XComponent.</span><b class="itemname">buildOrder</b>
889 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
898 <div class="short">make a list of modules to build.</div>
904 make a list of modules to build.
915 <dl class="detailList">
916 <dt class="heading">Returns:</dt>
918 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> list of modules.</dd>
940 <tr class="method-row config-row-alt1 expandable notInherited">
941 <td class="micon"><a class="exi" href="#expand"> </a></td>
945 <a id="Roo.XComponent-method-preBuild" name=".preBuild"></a>
946 <div class="fixedFont">
947 <span class="attributes">Roo.XComponent.</span><b class="itemname">preBuild</b>
956 <div class="short">move modules into their correct place in the tree.</div>
962 move modules into their correct place in the tree..
991 <tr class="method-row config-row-alt0 expandable notInherited">
992 <td class="micon"><a class="exi" href="#expand"> </a></td>
996 <a id="Roo.XComponent-method-register" name=".register"></a>
997 <div class="fixedFont">
998 <span class="attributes">Roo.XComponent.</span><b class="itemname">register</b>
1007 <div class="short">Register components to be built later.</div>
1013 Register components to be built later.<br/><br/>This solves the following issues<br/>- Building is not done on page load, but after an authentication process has occured.<br/>- Interface elements are registered on page load<br/>- Parent Interface elements may not be loaded before child, so this handles that..<br/><br/><br/>example:<br/><br/>MyApp.register({<br/> order : '000001',<br/> module : 'Pman.Tab.projectMgr',<br/> region : 'center',<br/> parent : 'Pman.layout',<br/> disabled : false, // or use a function..<br/> })<br/>* <b>param</b> {Object} details about module
1034 <td class="msource">
1042 <tr class="method-row config-row-alt1 expandable notInherited">
1043 <td class="micon"><a class="exi" href="#expand"> </a></td>
1047 <a id="Roo.XComponent-method-toObject" name=".toObject"></a>
1048 <div class="fixedFont">
1049 <span class="attributes">Roo.XComponent.</span><b class="itemname">toObject</b>
1058 <div class="short">convert a string to an object.</div>
1064 convert a string to an object..<br/>eg. 'AAA.BBB' -> finds AAA.BBB
1085 <td class="msource">
1093 <tr class="method-row config-row-alt0 expandable">
1094 <td class="micon"><a class="exi" href="#expand"> </a></td>
1098 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
1099 <div class="fixedFont">
1100 <span class="attributes"></span><b class="itemname">addEvents</b>
1102 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
1109 <div class="short">Used to define events on this Observable</div>
1115 Used to define events on this Observable
1122 <dl class="detailList">
1123 <dt class="heading">Parameters:</dt>
1126 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
1129 <dd>The object with the events defined</dd>
1147 <td class="msource">
1149 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1155 <tr class="method-row config-row-alt1 expandable">
1156 <td class="micon"><a class="exi" href="#expand"> </a></td>
1160 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
1161 <div class="fixedFont">
1162 <span class="attributes"></span><b class="itemname">addListener</b>
1164 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1171 <div class="short">Appends an event handler to this component</div>
1177 Appends an event handler to this component
1184 <dl class="detailList">
1185 <dt class="heading">Parameters:</dt>
1188 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1191 <dd>The type of event to listen for</dd>
1194 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1197 <dd>The method the event invokes</dd>
1200 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1203 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1206 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1209 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
1227 <td class="msource">
1229 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1235 <tr class="method-row config-row-alt0 expandable">
1236 <td class="micon"><a class="exi" href="#expand"> </a></td>
1240 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1241 <div class="fixedFont">
1242 <span class="attributes"></span><b class="itemname">fireEvent</b>
1244 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
1250 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1259 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1265 Fires the specified event with the passed parameters (minus the event name).
1272 <dl class="detailList">
1273 <dt class="heading">Parameters:</dt>
1276 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1282 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
1285 <dd>Variable number of parameters are passed to handlers</dd>
1293 <dl class="detailList">
1294 <dt class="heading">Returns:</dt>
1296 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1310 <td class="msource">
1312 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1318 <tr class="method-row config-row-alt1 expandable">
1319 <td class="micon"><a class="exi" href="#expand"> </a></td>
1323 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1324 <div class="fixedFont">
1325 <span class="attributes"></span><b class="itemname">hasListener</b>
1327 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1333 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1342 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1348 Checks to see if this object has any listeners for a specified event
1355 <dl class="detailList">
1356 <dt class="heading">Parameters:</dt>
1359 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1362 <dd>The name of the event to check for</dd>
1370 <dl class="detailList">
1371 <dt class="heading">Returns:</dt>
1373 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1387 <td class="msource">
1389 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1395 <tr class="method-row config-row-alt0 expandable">
1396 <td class="micon"><a class="exi" href="#expand"> </a></td>
1400 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1401 <div class="fixedFont">
1402 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1411 <div class="short">Removes all listeners for this object</div>
1417 Removes all listeners for this object
1438 <td class="msource">
1440 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1446 <tr class="method-row config-row-alt1 expandable">
1447 <td class="micon"><a class="exi" href="#expand"> </a></td>
1451 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1452 <div class="fixedFont">
1453 <span class="attributes"></span><b class="itemname">removeListener</b>
1455 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1462 <div class="short">Removes a listener</div>
1475 <dl class="detailList">
1476 <dt class="heading">Parameters:</dt>
1479 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1482 <dd>The type of event to listen for</dd>
1485 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1488 <dd>The handler to remove</dd>
1491 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1494 <dd>(optional) The scope (this object) for the handler</dd>
1512 <td class="msource">
1514 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1520 <tr class="method-row config-row-alt0 expandable notInherited">
1521 <td class="micon"><a class="exi" href="#expand"> </a></td>
1525 <a id="Roo.XComponent-method-render" name=".render"></a>
1526 <div class="fixedFont">
1527 <span class="attributes"></span><b class="itemname">render</b>
1529 (<a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>|<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DomElement <B><i>optional</i></B>)
1536 <div class="short">render<br/>render element to dom or tree</div>
1542 render<br/>render element to dom or tree
1549 <dl class="detailList">
1550 <dt class="heading">Parameters:</dt>
1553 <span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>|<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DomElement</span> <b>optional</b>
1556 <dd>render to if parent is not set.</dd>
1574 <td class="msource">
1582 <tr class="method-row config-row-alt1 expandable">
1583 <td class="micon"><a class="exi" href="#expand"> </a></td>
1587 <a id="Roo.util.Observable-method-un" name=".un"></a>
1588 <div class="fixedFont">
1589 <span class="attributes"></span><b class="itemname">un</b>
1591 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1598 <div class="short">Removes a listener (shorthand for removeListener)</div>
1604 Removes a listener (shorthand for removeListener)
1611 <dl class="detailList">
1612 <dt class="heading">Parameters:</dt>
1615 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1618 <dd>The type of event to listen for</dd>
1621 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1624 <dd>The handler to remove</dd>
1627 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1630 <dd>(optional) The scope (this object) for the handler</dd>
1648 <td class="msource">
1650 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1659 <!-- ============================== events summary / details ======================== -->
1662 <a id="Roo.XComponent-events"></a>
1671 <table cellspacing="0" class="member-table">
1672 <caption>Events</caption>
1675 <th class="sig-header" colspan="2">Event</th>
1676 <th class="msource-header">Defined By</th>
1685 <tr class="method-row expandable config-row-alt0 notInherited">
1686 <td class="micon"><a class="exi" href="#expand"> </a></td>
1689 <a id="Roo.XComponent-event-*built"></a>
1691 <div class="fixedFont">
1692 <b class="itemname">built</b> (<a href="./Roo.XComponent.html#constructor" roo:cls="Roo.XComponent.html#constructor">Roo.XComponent</a> <B><i>c</i></B>)
1698 <div class="short">Fires when this the componnt is built
1704 Fires when this the componnt is built
1710 <dl class="detailList">
1711 <dt class="heading">Parameters:</dt>
1714 <span class="fixedFont"><a href="./Roo.XComponent.html#constructor" roo:cls="Roo.XComponent.html#constructor">Roo.XComponent</a></span> <b>c</b>
1717 <dd>the component</dd>
1735 <td class="msource">
1747 <!-- ============================== footer ================================= -->
1748 <div class="fineprint" style="clear:both">
1750 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Nov 13 2015 13:15:52 GMT+0800 (HKT)
1752 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>