commit extjs-2.2.1
[extjs.git] / docs / output / Ext.menu.ColorMenu.html
1         <div class="body-wrap">
2         <div class="top-tools">
3             <a class="inner-link" href="#Ext.menu.ColorMenu-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4             <a class="inner-link" href="#Ext.menu.ColorMenu-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5             <a class="inner-link" href="#Ext.menu.ColorMenu-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                             <a class="inner-link" href="#Ext.menu.ColorMenu-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7                         <a class="bookmark" href="../docs/?class=Ext.menu.ColorMenu"><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.menu.Menu" ext:member="" href="output/Ext.menu.Menu.html">Menu</a>
12     <img src="resources/elbow-end.gif"/>ColorMenu</pre></div>
13                 <h1>Class Ext.menu.ColorMenu</h1>
14         <table cellspacing="0">
15             <tr><td class="label">Package:</td><td class="hd-info">Ext.menu</td></tr>
16             <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/ColorMenu.js" target="_blank">ColorMenu.js</a></td></tr>
17             <tr><td class="label">Class:</td><td class="hd-info">ColorMenu</td></tr>
18                                     <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.menu.Menu" ext:member="" href="output/Ext.menu.Menu.html">Menu</a></td></tr>
19                     </table>
20         <div class="description">
21             *
22 A menu containing a <a ext:cls="Ext.menu.ColorItem" href="output/Ext.menu.ColorItem.html">Ext.menu.ColorItem</a> component (which provides a basic color picker).        </div>
23         
24         <div class="hr"></div>
25                 <a id="Ext.menu.ColorMenu-configs"></a>
26         <h2>Config Options</h2>
27         <table cellspacing="0" class="member-table">
28             <tr>
29                 <th class="sig-header" colspan="2">Config Options</th>
30                 <th class="msource-header">Defined By</th>
31             </tr>
32                 <tr class="config-row inherited">\r
33         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
34         <td class="sig">\r
35         <a id="Ext.menu.ColorMenu-allowOtherMenus"></a>\r
36             <b>allowOtherMenus</b> : Boolean            <div class="mdesc">\r
37                             True to allow multiple menus to be displayed at the same time (defaults to false)                        </div>\r
38         </td>\r
39         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#allowOtherMenus" href="output/Ext.menu.Menu.html#allowOtherMenus">Menu</a></td>\r
40     </tr>\r
41         <tr class="config-row inherited alt expandable">\r
42         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
43         <td class="sig">\r
44         <a id="Ext.menu.ColorMenu-defaultAlign"></a>\r
45             <b>defaultAlign</b> : String            <div class="mdesc">\r
46                         <div class="short">The default Ext.Element.alignTo anchor position value for this menu relative to its element of origin (defaults to "t...</div>\r
47             <div class="long">\r
48                 The default <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> anchor position value for this menu relative to its element of origin (defaults to "tl-bl?")            </div>\r
49                         </div>\r
50         </td>\r
51         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#defaultAlign" href="output/Ext.menu.Menu.html#defaultAlign">Menu</a></td>\r
52     </tr>\r
53         <tr class="config-row inherited expandable">\r
54         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
55         <td class="sig">\r
56         <a id="Ext.menu.ColorMenu-defaults"></a>\r
57             <b>defaults</b> : Object            <div class="mdesc">\r
58                         <div class="short">A config object that will be applied to all items added to this container either via the items config or via the add ...</div>\r
59             <div class="long">\r
60                 A config object that will be applied to all items added to this container either via the <a ext:cls="Ext.menu.Menu" ext:member="items" href="output/Ext.menu.Menu.html#items">items</a> config or via the <a ext:cls="Ext.menu.Menu" ext:member="add" href="output/Ext.menu.Menu.html#add">add</a> method. The defaults config can contain any number of name/value property pairs to be added to each item, and should be valid for the types of items being added to the menu.            </div>\r
61                         </div>\r
62         </td>\r
63         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#defaults" href="output/Ext.menu.Menu.html#defaults">Menu</a></td>\r
64     </tr>\r
65         <tr class="config-row inherited alt expandable">\r
66         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
67         <td class="sig">\r
68         <a id="Ext.menu.ColorMenu-ignoreParentClicks"></a>\r
69             <b>ignoreParentClicks</b> : Boolean            <div class="mdesc">\r
70                         <div class="short">True to ignore clicks on any item in this menu that is a parent item (displays a submenu) so that the submenu is not ...</div>\r
71             <div class="long">\r
72                 True to ignore clicks on any item in this menu that is a parent item (displays a submenu) so that the submenu is not dismissed when clicking the parent item (defaults to false).            </div>\r
73                         </div>\r
74         </td>\r
75         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#ignoreParentClicks" href="output/Ext.menu.Menu.html#ignoreParentClicks">Menu</a></td>\r
76     </tr>\r
77         <tr class="config-row inherited">\r
78         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
79         <td class="sig">\r
80         <a id="Ext.menu.ColorMenu-items"></a>\r
81             <b>items</b> : Mixed            <div class="mdesc">\r
82                             An array of items to be added to this menu. See <a ext:cls="Ext.menu.Menu" ext:member="add" href="output/Ext.menu.Menu.html#add">add</a> for a list of valid item types.                        </div>\r
83         </td>\r
84         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#items" href="output/Ext.menu.Menu.html#items">Menu</a></td>\r
85     </tr>\r
86         <tr class="config-row inherited alt expandable">\r
87         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
88         <td class="sig">\r
89         <a id="Ext.menu.ColorMenu-listeners"></a>\r
90             <b>listeners</b> : Object            <div class="mdesc">\r
91                         <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>\r
92             <div class="long">\r
93                 (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>\r
94                         </div>\r
95         </td>\r
96         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>\r
97     </tr>\r
98         <tr class="config-row inherited">\r
99         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
100         <td class="sig">\r
101         <a id="Ext.menu.ColorMenu-minWidth"></a>\r
102             <b>minWidth</b> : Number            <div class="mdesc">\r
103                             The minimum width of the menu in pixels (defaults to 120)                        </div>\r
104         </td>\r
105         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#minWidth" href="output/Ext.menu.Menu.html#minWidth">Menu</a></td>\r
106     </tr>\r
107         <tr class="config-row inherited alt expandable">\r
108         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
109         <td class="sig">\r
110         <a id="Ext.menu.ColorMenu-shadow"></a>\r
111             <b>shadow</b> : Boolean/String            <div class="mdesc">\r
112                         <div class="short">True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "si...</div>\r
113             <div class="long">\r
114                 True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "sides")            </div>\r
115                         </div>\r
116         </td>\r
117         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#shadow" href="output/Ext.menu.Menu.html#shadow">Menu</a></td>\r
118     </tr>\r
119         <tr class="config-row inherited">\r
120         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
121         <td class="sig">\r
122         <a id="Ext.menu.ColorMenu-subMenuAlign"></a>\r
123             <b>subMenuAlign</b> : String            <div class="mdesc">\r
124                             The <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> anchor position value to use for submenus of this menu (defaults to "tl-tr?")                        </div>\r
125         </td>\r
126         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#subMenuAlign" href="output/Ext.menu.Menu.html#subMenuAlign">Menu</a></td>\r
127     </tr>\r
128             </table>
129                 <a id="Ext.menu.ColorMenu-props"></a>
130         <h2>Public Properties</h2>
131                 <table cellspacing="0" class="member-table">
132             <tr>
133                 <th class="sig-header" colspan="2">Property</th>
134                 <th class="msource-header">Defined By</th>
135             </tr>
136                 <tr class="property-row inherited">\r
137         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
138         <td class="sig">\r
139         <a id="Ext.menu.ColorMenu-items"></a>\r
140             <b>items</b> : Ext.util.MixedCollection            <div class="mdesc">\r
141                             A MixedCollection of this Menu's items                        </div>\r
142         </td>\r
143         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#items" href="output/Ext.menu.Menu.html#items">Menu</a></td>\r
144     </tr>\r
145         <tr class="property-row alt">\r
146         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
147         <td class="sig">\r
148         <a id="Ext.menu.ColorMenu-palette"></a>\r
149             <b>palette</b> : ColorPalette            <div class="mdesc">\r
150                             The <a ext:cls="Ext.ColorPalette" href="output/Ext.ColorPalette.html">Ext.ColorPalette</a> instance for this ColorMenu                        </div>\r
151         </td>\r
152         <td class="msource">ColorMenu</td>\r
153     </tr>\r
154             </table>
155                 <a id="Ext.menu.ColorMenu-methods"></a>
156         <h2>Public Methods</h2>
157                 <table cellspacing="0" class="member-table">
158             <tr>
159                 <th class="sig-header" colspan="2">Method</th>
160                 <th class="msource-header">Defined By</th>
161             </tr>
162                 <tr class="method-row expandable">\r
163         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
164         <td class="sig">\r
165         <a id="Ext.menu.ColorMenu-ColorMenu"></a>\r
166             <b>ColorMenu</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">\r
167                         <div class="short">Creates a new ColorMenu</div>\r
168             <div class="long">\r
169                 Creates a new ColorMenu    <div class="mdetail-params">\r
170         <strong>Parameters:</strong>\r
171         <ul><li><code>config</code> : Object<div class="sub-desc">Configuration options</div></li>        </ul>\r
172         <strong>Returns:</strong>\r
173         <ul>\r
174             <li><code></code></li>\r
175         </ul>\r
176     </div>\r
177                 </div>\r
178                         </div>\r
179         </td>\r
180         <td class="msource">ColorMenu</td>\r
181     </tr>\r
182         <tr class="method-row inherited alt expandable">\r
183         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
184         <td class="sig">\r
185         <a id="Ext.menu.ColorMenu-add"></a>\r
186             <b>add</b>(&nbsp;<code>Mixed args</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
187                         <div class="short">Adds one or more items of any type supported by the Menu class, or that can be converted into menu items.
188 Any of the ...</div>\r
189             <div class="long">\r
190                 Adds one or more items of any type supported by the Menu class, or that can be converted into menu items.
191 Any of the following are valid:
192 <ul>
193 <li>Any menu item object based on <a ext:cls="Ext.menu.BaseItem" href="output/Ext.menu.BaseItem.html">Ext.menu.BaseItem</a></li>
194 <li>An HTMLElement object which will be converted to a menu item</li>
195 <li>A menu item config object that will be created as a new menu item</li>
196 <li>A string, which can either be '-' or 'separator' to add a menu separator, otherwise
197 it will be converted into a <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> and added</li>
198 </ul>
199 Usage:
200 <pre><code><i>// Create the menu</i>
201 <b>var</b> menu = <b>new</b> Ext.menu.Menu();
202
203 <i>// Create a menu item to add by reference</i>
204 <b>var</b> menuItem = <b>new</b> Ext.menu.Item({ text: <em>'New Item!'</em> });
205
206 <i>// Add a bunch of items at once using different methods.</i>
207 <i>// Only the last item added will be returned.</i>
208 <b>var</b> item = menu.add(
209     menuItem,                <i>// add existing item by ref</i>
210     <em>'Dynamic Item'</em>,          <i>// <b>new</b> TextItem</i>
211     <em>'-'</em>,                     <i>// <b>new</b> separator</i>
212     { text: <em>'Config Item'</em> }  <i>// <b>new</b> item by config</i>
213 );</code></pre>    <div class="mdetail-params">\r
214         <strong>Parameters:</strong>\r
215         <ul><li><code>args</code> : Mixed<div class="sub-desc">One or more menu items, menu item configs or other objects that can be converted to menu items</div></li>        </ul>\r
216         <strong>Returns:</strong>\r
217         <ul>\r
218             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added, or the last one if multiple items were added</div></li>\r
219         </ul>\r
220     </div>\r
221                 </div>\r
222                         </div>\r
223         </td>\r
224         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#add" href="output/Ext.menu.Menu.html#add">Menu</a></td>\r
225     </tr>\r
226         <tr class="method-row inherited expandable">\r
227         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
228         <td class="sig">\r
229         <a id="Ext.menu.ColorMenu-addElement"></a>\r
230             <b>addElement</b>(&nbsp;<code>Mixed el</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
231                         <div class="short">Adds an <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object to the menu</div>\r
232             <div class="long">\r
233                 Adds an <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object to the menu    <div class="mdetail-params">\r
234         <strong>Parameters:</strong>\r
235         <ul><li><code>el</code> : Mixed<div class="sub-desc">The element or DOM node to add, or its id</div></li>        </ul>\r
236         <strong>Returns:</strong>\r
237         <ul>\r
238             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
239         </ul>\r
240     </div>\r
241                 </div>\r
242                         </div>\r
243         </td>\r
244         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#addElement" href="output/Ext.menu.Menu.html#addElement">Menu</a></td>\r
245     </tr>\r
246         <tr class="method-row inherited alt expandable">\r
247         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
248         <td class="sig">\r
249         <a id="Ext.menu.ColorMenu-addEvents"></a>\r
250             <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">\r
251                         <div class="short">Used to define events on this Observable</div>\r
252             <div class="long">\r
253                 Used to define events on this Observable    <div class="mdetail-params">\r
254         <strong>Parameters:</strong>\r
255         <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>\r
256         <strong>Returns:</strong>\r
257         <ul>\r
258             <li><code>void</code></li>\r
259         </ul>\r
260     </div>\r
261                 </div>\r
262                         </div>\r
263         </td>\r
264         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>\r
265     </tr>\r
266         <tr class="method-row inherited expandable">\r
267         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
268         <td class="sig">\r
269         <a id="Ext.menu.ColorMenu-addItem"></a>\r
270             <b>addItem</b>(&nbsp;<code>Ext.menu.Item item</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
271                         <div class="short">Adds an existing object based on <a ext:cls="Ext.menu.BaseItem" href="output/Ext.menu.BaseItem.html">Ext.menu.BaseItem</a> to the menu</div>\r
272             <div class="long">\r
273                 Adds an existing object based on <a ext:cls="Ext.menu.BaseItem" href="output/Ext.menu.BaseItem.html">Ext.menu.BaseItem</a> to the menu    <div class="mdetail-params">\r
274         <strong>Parameters:</strong>\r
275         <ul><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to add</div></li>        </ul>\r
276         <strong>Returns:</strong>\r
277         <ul>\r
278             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
279         </ul>\r
280     </div>\r
281                 </div>\r
282                         </div>\r
283         </td>\r
284         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#addItem" href="output/Ext.menu.Menu.html#addItem">Menu</a></td>\r
285     </tr>\r
286         <tr class="method-row inherited alt expandable">\r
287         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
288         <td class="sig">\r
289         <a id="Ext.menu.ColorMenu-addListener"></a>\r
290             <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">\r
291                         <div class="short">Appends an event handler to this component</div>\r
292             <div class="long">\r
293                 Appends an event handler to this component    <div class="mdetail-params">\r
294         <strong>Parameters:</strong>\r
295         <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
296 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
297 properties. This may contain any of the following properties:<ul>
298 <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>
299 <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>
300 <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>
301 <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
302 by the specified number of milliseconds. If the event fires again within that time, the original
303 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
304 </ul><br>
305 <p>
306 <b>Combining Options</b><br>
307 Using the options argument, it is possible to combine different types of listeners:<br>
308 <br>
309 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
310 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
311     single: true,
312     delay: 100,
313     forumId: 4
314 });</code></pre>
315 <p>
316 <b>Attaching multiple handlers in 1 call</b><br>
317 The method also allows for a single argument to be passed which is a config object containing properties
318 which specify multiple handlers.
319 <p>
320 <pre><code>foo.on({
321     <em>'click'</em> : {
322         fn: <b>this</b>.onClick,
323         scope: <b>this</b>,
324         delay: 100
325     },
326     <em>'mouseover'</em> : {
327         fn: <b>this</b>.onMouseOver,
328         scope: <b>this</b>
329     },
330     <em>'mouseout'</em> : {
331         fn: <b>this</b>.onMouseOut,
332         scope: <b>this</b>
333     }
334 });</code></pre>
335 <p>
336 Or a shorthand syntax:<br>
337 <pre><code>foo.on({
338     <em>'click'</em> : <b>this</b>.onClick,
339     <em>'mouseover'</em> : <b>this</b>.onMouseOver,
340     <em>'mouseout'</em> : <b>this</b>.onMouseOut,
341      scope: <b>this</b>
342 });</code></pre></div></li>        </ul>\r
343         <strong>Returns:</strong>\r
344         <ul>\r
345             <li><code>void</code></li>\r
346         </ul>\r
347     </div>\r
348                 </div>\r
349                         </div>\r
350         </td>\r
351         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>\r
352     </tr>\r
353         <tr class="method-row inherited expandable">\r
354         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
355         <td class="sig">\r
356         <a id="Ext.menu.ColorMenu-addMenuItem"></a>\r
357             <b>addMenuItem</b>(&nbsp;<code>Object config</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
358                         <div class="short">Creates a new <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> based an the supplied config object and adds it to the menu</div>\r
359             <div class="long">\r
360                 Creates a new <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> based an the supplied config object and adds it to the menu    <div class="mdetail-params">\r
361         <strong>Parameters:</strong>\r
362         <ul><li><code>config</code> : Object<div class="sub-desc">A MenuItem config object</div></li>        </ul>\r
363         <strong>Returns:</strong>\r
364         <ul>\r
365             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
366         </ul>\r
367     </div>\r
368                 </div>\r
369                         </div>\r
370         </td>\r
371         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#addMenuItem" href="output/Ext.menu.Menu.html#addMenuItem">Menu</a></td>\r
372     </tr>\r
373         <tr class="method-row inherited alt expandable">\r
374         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
375         <td class="sig">\r
376         <a id="Ext.menu.ColorMenu-addSeparator"></a>\r
377             <b>addSeparator</b>() : Ext.menu.Item            <div class="mdesc">\r
378                         <div class="short">Adds a separator bar to the menu</div>\r
379             <div class="long">\r
380                 Adds a separator bar to the menu    <div class="mdetail-params">\r
381         <strong>Parameters:</strong>\r
382         <ul><li>None.</li>        </ul>\r
383         <strong>Returns:</strong>\r
384         <ul>\r
385             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
386         </ul>\r
387     </div>\r
388                 </div>\r
389                         </div>\r
390         </td>\r
391         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#addSeparator" href="output/Ext.menu.Menu.html#addSeparator">Menu</a></td>\r
392     </tr>\r
393         <tr class="method-row inherited expandable">\r
394         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
395         <td class="sig">\r
396         <a id="Ext.menu.ColorMenu-addText"></a>\r
397             <b>addText</b>(&nbsp;<code>String text</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
398                         <div class="short">Creates a new <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> with the supplied text and adds it to the menu</div>\r
399             <div class="long">\r
400                 Creates a new <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> with the supplied text and adds it to the menu    <div class="mdetail-params">\r
401         <strong>Parameters:</strong>\r
402         <ul><li><code>text</code> : String<div class="sub-desc">The text to display in the menu item</div></li>        </ul>\r
403         <strong>Returns:</strong>\r
404         <ul>\r
405             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
406         </ul>\r
407     </div>\r
408                 </div>\r
409                         </div>\r
410         </td>\r
411         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#addText" href="output/Ext.menu.Menu.html#addText">Menu</a></td>\r
412     </tr>\r
413         <tr class="method-row inherited alt expandable">\r
414         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
415         <td class="sig">\r
416         <a id="Ext.menu.ColorMenu-destroy"></a>\r
417             <b>destroy</b>() : void            <div class="mdesc">\r
418                         <div class="short">Destroys the menu by  unregistering it from Ext.menu.MenuMgr, purging event listeners,
419 removing all of the menus item...</div>\r
420             <div class="long">\r
421                 Destroys the menu by  unregistering it from <a ext:cls="Ext.menu.MenuMgr" href="output/Ext.menu.MenuMgr.html">Ext.menu.MenuMgr</a>, purging event listeners,
422 removing all of the menus items, then destroying the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>    <div class="mdetail-params">\r
423         <strong>Parameters:</strong>\r
424         <ul><li>None.</li>        </ul>\r
425         <strong>Returns:</strong>\r
426         <ul>\r
427             <li><code>void</code></li>\r
428         </ul>\r
429     </div>\r
430                 </div>\r
431                         </div>\r
432         </td>\r
433         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#destroy" href="output/Ext.menu.Menu.html#destroy">Menu</a></td>\r
434     </tr>\r
435         <tr class="method-row inherited expandable">\r
436         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
437         <td class="sig">\r
438         <a id="Ext.menu.ColorMenu-fireEvent"></a>\r
439             <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">\r
440                         <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>\r
441             <div class="long">\r
442                 Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">\r
443         <strong>Parameters:</strong>\r
444         <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>\r
445         <strong>Returns:</strong>\r
446         <ul>\r
447             <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>\r
448         </ul>\r
449     </div>\r
450                 </div>\r
451                         </div>\r
452         </td>\r
453         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>\r
454     </tr>\r
455         <tr class="method-row inherited alt expandable">\r
456         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
457         <td class="sig">\r
458         <a id="Ext.menu.ColorMenu-getEl"></a>\r
459             <b>getEl</b>() : Ext.Element            <div class="mdesc">\r
460                         <div class="short">Returns this menu's underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object</div>\r
461             <div class="long">\r
462                 Returns this menu's underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object    <div class="mdetail-params">\r
463         <strong>Parameters:</strong>\r
464         <ul><li>None.</li>        </ul>\r
465         <strong>Returns:</strong>\r
466         <ul>\r
467             <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>\r
468         </ul>\r
469     </div>\r
470                 </div>\r
471                         </div>\r
472         </td>\r
473         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#getEl" href="output/Ext.menu.Menu.html#getEl">Menu</a></td>\r
474     </tr>\r
475         <tr class="method-row inherited expandable">\r
476         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
477         <td class="sig">\r
478         <a id="Ext.menu.ColorMenu-hasListener"></a>\r
479             <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">\r
480                         <div class="short">Checks to see if this object has any listeners for a specified event</div>\r
481             <div class="long">\r
482                 Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">\r
483         <strong>Parameters:</strong>\r
484         <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>\r
485         <strong>Returns:</strong>\r
486         <ul>\r
487             <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>\r
488         </ul>\r
489     </div>\r
490                 </div>\r
491                         </div>\r
492         </td>\r
493         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>\r
494     </tr>\r
495         <tr class="method-row inherited alt expandable">\r
496         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
497         <td class="sig">\r
498         <a id="Ext.menu.ColorMenu-hide"></a>\r
499             <b>hide</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>&nbsp;) : void            <div class="mdesc">\r
500                         <div class="short">Hides this menu and optionally all parent menus</div>\r
501             <div class="long">\r
502                 Hides this menu and optionally all parent menus    <div class="mdetail-params">\r
503         <strong>Parameters:</strong>\r
504         <ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) True to hide all parent menus recursively, if any (defaults to false)</div></li>        </ul>\r
505         <strong>Returns:</strong>\r
506         <ul>\r
507             <li><code>void</code></li>\r
508         </ul>\r
509     </div>\r
510                 </div>\r
511                         </div>\r
512         </td>\r
513         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#hide" href="output/Ext.menu.Menu.html#hide">Menu</a></td>\r
514     </tr>\r
515         <tr class="method-row inherited expandable">\r
516         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
517         <td class="sig">\r
518         <a id="Ext.menu.ColorMenu-insert"></a>\r
519             <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.menu.Item item</code>&nbsp;) : Ext.menu.Item            <div class="mdesc">\r
520                         <div class="short">Inserts an existing object based on <a ext:cls="Ext.menu.BaseItem" href="output/Ext.menu.BaseItem.html">Ext.menu.BaseItem</a> to the menu at a specified index</div>\r
521             <div class="long">\r
522                 Inserts an existing object based on <a ext:cls="Ext.menu.BaseItem" href="output/Ext.menu.BaseItem.html">Ext.menu.BaseItem</a> to the menu at a specified index    <div class="mdetail-params">\r
523         <strong>Parameters:</strong>\r
524         <ul><li><code>index</code> : Number<div class="sub-desc">The index in the menu's list of current items where the new item should be inserted</div></li><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to add</div></li>        </ul>\r
525         <strong>Returns:</strong>\r
526         <ul>\r
527             <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>\r
528         </ul>\r
529     </div>\r
530                 </div>\r
531                         </div>\r
532         </td>\r
533         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#insert" href="output/Ext.menu.Menu.html#insert">Menu</a></td>\r
534     </tr>\r
535         <tr class="method-row inherited alt expandable">\r
536         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
537         <td class="sig">\r
538         <a id="Ext.menu.ColorMenu-isVisible"></a>\r
539             <b>isVisible</b>() : void            <div class="mdesc">\r
540                         <div class="short">Read-only.  Returns true if the menu is currently displayed, else false.</div>\r
541             <div class="long">\r
542                 Read-only.  Returns true if the menu is currently displayed, else false.    <div class="mdetail-params">\r
543         <strong>Parameters:</strong>\r
544         <ul><li>None.</li>        </ul>\r
545         <strong>Returns:</strong>\r
546         <ul>\r
547             <li><code>void</code></li>\r
548         </ul>\r
549     </div>\r
550                 </div>\r
551                         </div>\r
552         </td>\r
553         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#isVisible" href="output/Ext.menu.Menu.html#isVisible">Menu</a></td>\r
554     </tr>\r
555         <tr class="method-row inherited expandable">\r
556         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
557         <td class="sig">\r
558         <a id="Ext.menu.ColorMenu-on"></a>\r
559             <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">\r
560                         <div class="short">Appends an event handler to this element (shorthand for addListener)</div>\r
561             <div class="long">\r
562                 Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">\r
563         <strong>Parameters:</strong>\r
564         <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
565 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>\r
566         <strong>Returns:</strong>\r
567         <ul>\r
568             <li><code>void</code></li>\r
569         </ul>\r
570     </div>\r
571                 </div>\r
572                         </div>\r
573         </td>\r
574         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>\r
575     </tr>\r
576         <tr class="method-row inherited alt expandable">\r
577         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
578         <td class="sig">\r
579         <a id="Ext.menu.ColorMenu-purgeListeners"></a>\r
580             <b>purgeListeners</b>() : void            <div class="mdesc">\r
581                         <div class="short">Removes all listeners for this object</div>\r
582             <div class="long">\r
583                 Removes all listeners for this object    <div class="mdetail-params">\r
584         <strong>Parameters:</strong>\r
585         <ul><li>None.</li>        </ul>\r
586         <strong>Returns:</strong>\r
587         <ul>\r
588             <li><code>void</code></li>\r
589         </ul>\r
590     </div>\r
591                 </div>\r
592                         </div>\r
593         </td>\r
594         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>\r
595     </tr>\r
596         <tr class="method-row inherited expandable">\r
597         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
598         <td class="sig">\r
599         <a id="Ext.menu.ColorMenu-relayEvents"></a>\r
600             <b>relayEvents</b>(&nbsp;<code>Object o</code>, <code>Array events</code>&nbsp;) : void            <div class="mdesc">\r
601                         <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>\r
602             <div class="long">\r
603                 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.    <div class="mdetail-params">\r
604         <strong>Parameters:</strong>\r
605         <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li>        </ul>\r
606         <strong>Returns:</strong>\r
607         <ul>\r
608             <li><code>void</code></li>\r
609         </ul>\r
610     </div>\r
611                 </div>\r
612                         </div>\r
613         </td>\r
614         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>\r
615     </tr>\r
616         <tr class="method-row inherited alt expandable">\r
617         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
618         <td class="sig">\r
619         <a id="Ext.menu.ColorMenu-remove"></a>\r
620             <b>remove</b>(&nbsp;<code>Ext.menu.Item item</code>&nbsp;) : void            <div class="mdesc">\r
621                         <div class="short">Removes an <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> from the menu and destroys the object</div>\r
622             <div class="long">\r
623                 Removes an <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> from the menu and destroys the object    <div class="mdetail-params">\r
624         <strong>Parameters:</strong>\r
625         <ul><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to remove</div></li>        </ul>\r
626         <strong>Returns:</strong>\r
627         <ul>\r
628             <li><code>void</code></li>\r
629         </ul>\r
630     </div>\r
631                 </div>\r
632                         </div>\r
633         </td>\r
634         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#remove" href="output/Ext.menu.Menu.html#remove">Menu</a></td>\r
635     </tr>\r
636         <tr class="method-row inherited expandable">\r
637         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
638         <td class="sig">\r
639         <a id="Ext.menu.ColorMenu-removeAll"></a>\r
640             <b>removeAll</b>() : void            <div class="mdesc">\r
641                         <div class="short">Removes and destroys all items in the menu</div>\r
642             <div class="long">\r
643                 Removes and destroys all items in the menu    <div class="mdetail-params">\r
644         <strong>Parameters:</strong>\r
645         <ul><li>None.</li>        </ul>\r
646         <strong>Returns:</strong>\r
647         <ul>\r
648             <li><code>void</code></li>\r
649         </ul>\r
650     </div>\r
651                 </div>\r
652                         </div>\r
653         </td>\r
654         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#removeAll" href="output/Ext.menu.Menu.html#removeAll">Menu</a></td>\r
655     </tr>\r
656         <tr class="method-row inherited alt expandable">\r
657         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
658         <td class="sig">\r
659         <a id="Ext.menu.ColorMenu-removeListener"></a>\r
660             <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
661                         <div class="short">Removes a listener</div>\r
662             <div class="long">\r
663                 Removes a listener    <div class="mdetail-params">\r
664         <strong>Parameters:</strong>\r
665         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>\r
666         <strong>Returns:</strong>\r
667         <ul>\r
668             <li><code>void</code></li>\r
669         </ul>\r
670     </div>\r
671                 </div>\r
672                         </div>\r
673         </td>\r
674         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>\r
675     </tr>\r
676         <tr class="method-row inherited expandable">\r
677         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
678         <td class="sig">\r
679         <a id="Ext.menu.ColorMenu-resumeEvents"></a>\r
680             <b>resumeEvents</b>() : void            <div class="mdesc">\r
681                         <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>\r
682             <div class="long">\r
683                 Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">\r
684         <strong>Parameters:</strong>\r
685         <ul><li>None.</li>        </ul>\r
686         <strong>Returns:</strong>\r
687         <ul>\r
688             <li><code>void</code></li>\r
689         </ul>\r
690     </div>\r
691                 </div>\r
692                         </div>\r
693         </td>\r
694         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>\r
695     </tr>\r
696         <tr class="method-row inherited alt expandable">\r
697         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
698         <td class="sig">\r
699         <a id="Ext.menu.ColorMenu-show"></a>\r
700             <b>show</b>(&nbsp;<code>Mixed element</code>, <span class="optional" title="Optional">[<code>String position</code>]</span>, <span class="optional" title="Optional">[<code>Ext.menu.Menu parentMenu</code>]</span>&nbsp;) : void            <div class="mdesc">\r
701                         <div class="short">Displays this menu relative to another element</div>\r
702             <div class="long">\r
703                 Displays this menu relative to another element    <div class="mdetail-params">\r
704         <strong>Parameters:</strong>\r
705         <ul><li><code>element</code> : Mixed<div class="sub-desc">The element to align to</div></li><li><code>position</code> : String<div class="sub-desc">(optional) The <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> anchor position to use in aligning to
706 the element (defaults to this.defaultAlign)</div></li><li><code>parentMenu</code> : Ext.menu.Menu<div class="sub-desc">(optional) This menu's parent menu, if applicable (defaults to undefined)</div></li>        </ul>\r
707         <strong>Returns:</strong>\r
708         <ul>\r
709             <li><code>void</code></li>\r
710         </ul>\r
711     </div>\r
712                 </div>\r
713                         </div>\r
714         </td>\r
715         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#show" href="output/Ext.menu.Menu.html#show">Menu</a></td>\r
716     </tr>\r
717         <tr class="method-row inherited expandable">\r
718         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
719         <td class="sig">\r
720         <a id="Ext.menu.ColorMenu-showAt"></a>\r
721             <b>showAt</b>(&nbsp;<code>Array xyPosition</code>, <span class="optional" title="Optional">[<code>Ext.menu.Menu parentMenu</code>]</span>&nbsp;) : void            <div class="mdesc">\r
722                         <div class="short">Displays this menu at a specific xy position</div>\r
723             <div class="long">\r
724                 Displays this menu at a specific xy position    <div class="mdetail-params">\r
725         <strong>Parameters:</strong>\r
726         <ul><li><code>xyPosition</code> : Array<div class="sub-desc">Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)</div></li><li><code>parentMenu</code> : Ext.menu.Menu<div class="sub-desc">(optional) This menu's parent menu, if applicable (defaults to undefined)</div></li>        </ul>\r
727         <strong>Returns:</strong>\r
728         <ul>\r
729             <li><code>void</code></li>\r
730         </ul>\r
731     </div>\r
732                 </div>\r
733                         </div>\r
734         </td>\r
735         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#showAt" href="output/Ext.menu.Menu.html#showAt">Menu</a></td>\r
736     </tr>\r
737         <tr class="method-row inherited alt expandable">\r
738         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
739         <td class="sig">\r
740         <a id="Ext.menu.ColorMenu-suspendEvents"></a>\r
741             <b>suspendEvents</b>() : void            <div class="mdesc">\r
742                         <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>\r
743             <div class="long">\r
744                 Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">\r
745         <strong>Parameters:</strong>\r
746         <ul><li>None.</li>        </ul>\r
747         <strong>Returns:</strong>\r
748         <ul>\r
749             <li><code>void</code></li>\r
750         </ul>\r
751     </div>\r
752                 </div>\r
753                         </div>\r
754         </td>\r
755         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>\r
756     </tr>\r
757         <tr class="method-row inherited expandable">\r
758         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
759         <td class="sig">\r
760         <a id="Ext.menu.ColorMenu-un"></a>\r
761             <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
762                         <div class="short">Removes a listener (shorthand for removeListener)</div>\r
763             <div class="long">\r
764                 Removes a listener (shorthand for removeListener)    <div class="mdetail-params">\r
765         <strong>Parameters:</strong>\r
766         <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>\r
767         <strong>Returns:</strong>\r
768         <ul>\r
769             <li><code>void</code></li>\r
770         </ul>\r
771     </div>\r
772                 </div>\r
773                         </div>\r
774         </td>\r
775         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>\r
776     </tr>\r
777             </table>
778                 <a id="Ext.menu.ColorMenu-events"></a>
779         <h2>Public Events</h2>
780                 <table cellspacing="0" class="member-table">
781             <tr>
782                 <th class="sig-header" colspan="2">Event</th>
783                 <th class="msource-header">Defined By</th>
784             </tr>
785                 <tr class="event-row inherited expandable">\r
786         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
787         <td class="sig">\r
788         <a id="Ext.menu.ColorMenu-beforehide"></a>\r
789             <b>beforehide</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;)            <div class="mdesc">\r
790                         <div class="short">Fires before this menu is hidden</div>\r
791             <div class="long">\r
792                 Fires before this menu is hidden    <div class="mdetail-params">\r
793         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
794         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li>        </ul>\r
795     </div>\r
796                 </div>\r
797                         </div>\r
798         </td>\r
799         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-beforehide" href="output/Ext.menu.Menu.html#event-beforehide">Menu</a></td>\r
800     </tr>\r
801         <tr class="event-row inherited alt expandable">\r
802         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
803         <td class="sig">\r
804         <a id="Ext.menu.ColorMenu-beforeshow"></a>\r
805             <b>beforeshow</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;)            <div class="mdesc">\r
806                         <div class="short">Fires before this menu is displayed</div>\r
807             <div class="long">\r
808                 Fires before this menu is displayed    <div class="mdetail-params">\r
809         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
810         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li>        </ul>\r
811     </div>\r
812                 </div>\r
813                         </div>\r
814         </td>\r
815         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-beforeshow" href="output/Ext.menu.Menu.html#event-beforeshow">Menu</a></td>\r
816     </tr>\r
817         <tr class="event-row inherited expandable">\r
818         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
819         <td class="sig">\r
820         <a id="Ext.menu.ColorMenu-click"></a>\r
821             <b>click</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.menu.Item menuItem</code>, <code>Ext.EventObject e</code>&nbsp;)            <div class="mdesc">\r
822                         <div class="short">Fires when this menu is clicked (or when the enter key is pressed while it is active)</div>\r
823             <div class="long">\r
824                 Fires when this menu is clicked (or when the enter key is pressed while it is active)    <div class="mdetail-params">\r
825         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
826         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li>        </ul>\r
827     </div>\r
828                 </div>\r
829                         </div>\r
830         </td>\r
831         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-click" href="output/Ext.menu.Menu.html#event-click">Menu</a></td>\r
832     </tr>\r
833         <tr class="event-row inherited alt expandable">\r
834         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
835         <td class="sig">\r
836         <a id="Ext.menu.ColorMenu-hide"></a>\r
837             <b>hide</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;)            <div class="mdesc">\r
838                         <div class="short">Fires after this menu is hidden</div>\r
839             <div class="long">\r
840                 Fires after this menu is hidden    <div class="mdetail-params">\r
841         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
842         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li>        </ul>\r
843     </div>\r
844                 </div>\r
845                         </div>\r
846         </td>\r
847         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-hide" href="output/Ext.menu.Menu.html#event-hide">Menu</a></td>\r
848     </tr>\r
849         <tr class="event-row inherited expandable">\r
850         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
851         <td class="sig">\r
852         <a id="Ext.menu.ColorMenu-itemclick"></a>\r
853             <b>itemclick</b> : (&nbsp;<code>Ext.menu.BaseItem baseItem</code>, <code>Ext.EventObject e</code>&nbsp;)            <div class="mdesc">\r
854                         <div class="short">Fires when a menu item contained in this menu is clicked</div>\r
855             <div class="long">\r
856                 Fires when a menu item contained in this menu is clicked    <div class="mdetail-params">\r
857         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
858         <ul><li><code>baseItem</code> : Ext.menu.BaseItem<div class="sub-desc">The BaseItem that was clicked</div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li>        </ul>\r
859     </div>\r
860                 </div>\r
861                         </div>\r
862         </td>\r
863         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-itemclick" href="output/Ext.menu.Menu.html#event-itemclick">Menu</a></td>\r
864     </tr>\r
865         <tr class="event-row inherited alt expandable">\r
866         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
867         <td class="sig">\r
868         <a id="Ext.menu.ColorMenu-mouseout"></a>\r
869             <b>mouseout</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.EventObject e</code>, <code>Ext.menu.Item menuItem</code>&nbsp;)            <div class="mdesc">\r
870                         <div class="short">Fires when the mouse exits this menu</div>\r
871             <div class="long">\r
872                 Fires when the mouse exits this menu    <div class="mdetail-params">\r
873         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
874         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li>        </ul>\r
875     </div>\r
876                 </div>\r
877                         </div>\r
878         </td>\r
879         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-mouseout" href="output/Ext.menu.Menu.html#event-mouseout">Menu</a></td>\r
880     </tr>\r
881         <tr class="event-row inherited expandable">\r
882         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
883         <td class="sig">\r
884         <a id="Ext.menu.ColorMenu-mouseover"></a>\r
885             <b>mouseover</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.EventObject e</code>, <code>Ext.menu.Item menuItem</code>&nbsp;)            <div class="mdesc">\r
886                         <div class="short">Fires when the mouse is hovering over this menu</div>\r
887             <div class="long">\r
888                 Fires when the mouse is hovering over this menu    <div class="mdetail-params">\r
889         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
890         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li>        </ul>\r
891     </div>\r
892                 </div>\r
893                         </div>\r
894         </td>\r
895         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-mouseover" href="output/Ext.menu.Menu.html#event-mouseover">Menu</a></td>\r
896     </tr>\r
897         <tr class="event-row alt expandable">\r
898         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
899         <td class="sig">\r
900         <a id="Ext.menu.ColorMenu-select"></a>\r
901             <b>select</b> : (&nbsp;<code>ColorPalette palette</code>, <code>String color</code>&nbsp;)            <div class="mdesc">\r
902                         <div class="short"></div>\r
903             <div class="long">\r
904                     <div class="mdetail-params">\r
905         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
906         <ul><li><code>palette</code> : ColorPalette<div class="sub-desc"></div></li><li><code>color</code> : String<div class="sub-desc"></div></li>        </ul>\r
907     </div>\r
908                 </div>\r
909                         </div>\r
910         </td>\r
911         <td class="msource">ColorMenu</td>\r
912     </tr>\r
913         <tr class="event-row inherited expandable">\r
914         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
915         <td class="sig">\r
916         <a id="Ext.menu.ColorMenu-show"></a>\r
917             <b>show</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;)            <div class="mdesc">\r
918                         <div class="short">Fires after this menu is displayed</div>\r
919             <div class="long">\r
920                 Fires after this menu is displayed    <div class="mdetail-params">\r
921         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
922         <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li>        </ul>\r
923     </div>\r
924                 </div>\r
925                         </div>\r
926         </td>\r
927         <td class="msource"><a ext:cls="Ext.menu.Menu" ext:member="#event-show" href="output/Ext.menu.Menu.html#event-show">Menu</a></td>\r
928     </tr>\r
929             </table>
930         
931         </div>