Class Ext.menu.ColorItem
        
        
        
        	Properties
			  -  
Methods
			  -  
Events
        	        	  -  
Config Options
        	        
        
        Public Properties
                
                
        Public Methods
                
            
                
                
            
                
        |   | 
        ColorItem(Object config) | 
        ColorItem | 
    
    
        | Creates a new ColorItem | 
    
        
        |   | 
        addEvents(Object object) : void | 
        Observable | 
    
    
        | Copies any events from the passed object onto this object if they do not already exist.  The passed object
must also ... | 
    
        
        |   | 
        addListener(String eventName, Function handler, [Object options]) : void | 
        Observable | 
    
    
        | Appends an event handler to this component | 
    
        
        |   | 
        disable() : void | 
        Component | 
    
    
        | Disable this component | 
    
        
        |   | 
        enable() : void | 
        Component | 
    
    
        | Enable this component | 
    
        
        |   | 
        fireEvent(String eventName, Object... args) : Boolean | 
        Observable | 
    
    
        | Fires the specified event with the passed parameters (minus the event name). | 
    
        
        |   | 
        focus(Boolean selectText) : void | 
        Component | 
    
    
        | Try to focus this component | 
    
        
        |   | 
        getEl() : Ext.Element | 
        Component | 
    
    
        | Returns the underlying Ext.Element | 
    
        
        |   | 
        hasListener(String eventName) : Boolean | 
        Observable | 
    
    
        | Checks to see if this object is currently listening for a specified event | 
    
        
        |   | 
        hide() : void | 
        Component | 
    
    
        | Hide this component | 
    
        
        |   | 
        on(String eventName, Function handler, [Object options]) : void | 
        Observable | 
    
    
        | Appends an event handler to this element (shorthand for addListener) | 
    
        
        |   | 
        purgeListeners() : void | 
        Observable | 
    
    
        | Removes all listeners for this object | 
    
        
        |   | 
        removeListener(String eventName, Function handler, [Object scope]) : void | 
        Observable | 
    
    
        | Removes a listener | 
    
        
        |   | 
        render(String/HTMLElement/Element container) : void | 
        Component | 
    
    
        | If this is a lazy rendering component, render it to it's container element | 
    
        
        |   | 
        setDisabled(Boolean disabled) : void | 
        Component | 
    
    
        | Convenience function for setting disabled/enabled by boolean | 
    
        
        |   | 
        setVisible(Boolean visible) : void | 
        Component | 
    
    
        | Convenience function to hide or show this component by boolean | 
    
        
        |   | 
        show() : void | 
        Component | 
    
    
        | Show this component | 
    
        
        |   | 
        un(String eventName, Function handler, [Object scope]) : void | 
        Observable | 
    
    
        | Removes a listener (shorthand for removeListener) | 
    
            
                
        Public Events
                
                        
        Config Options
        
            
                
                
            
                
        |   | 
        activeClass : String | 
        BaseItem | 
    
    
        | The CSS class to use when the item becomes activated (defaults to "x-menu-item-active") | 
    
        
        |   | 
        canActivate : Boolean | 
        BaseItem | 
    
    
        | True if this item can be visually activated (defaults to false) | 
    
        
        |   | 
        handler : Function | 
        BaseItem | 
    
    
        | A function that will handle the click event of this menu item (defaults to undefined) | 
    
        
        |   | 
        hideDelay : Number | 
        BaseItem | 
    
    
        | Length of time in milliseconds to wait before hiding after a click (defaults to 100) | 
    
        
        |   | 
        hideOnClick : Boolean | 
        BaseItem | 
    
    
        | True to hide the containing menu after this item is clicked (defaults to true) | 
    
            
                            Property Details
            
                            
                
                disabled
                public Object disabled
                
                    true if this component is disabled. Read-only.                
                
                 
                            
                
                disabledClass
                public Object disabledClass
                
                    CSS class added to the component when it is disabled.                
                
                 
                            
                
                hidden
                public Object hidden
                
                    true if this component is hidden. Read-only.                
                
                 
                            
                
                palette
                public Ext.ColorPalette palette
                
                    The Ext.ColorPalette object                
                This property is defined by ColorItem.
                 
                            
                
                rendered
                public Object rendered
                
                    true if this component has been rendered. Read-only.                
                
                 
                         
        
                    
            Constructor Details
            
                
                ColorItem
                public function ColorItem(Object config)
                
                Creates a new ColorItem                
                    Parameters:
                    config : ObjectConfiguration options
                     
                 
                 
                 
             
        
                    Method Details
            
                            
                
                addEvents
                public function addEvents(Object object)
                
                    Copies any events from the passed object onto this object if they do not already exist.  The passed object
must also inherit from Observable for this method to have any effect.
                
                 
                
                 
                            
                
                addListener
                public function addListener(String eventName, Function handler, [Object options])
                
                    Appends an event handler to this component
                
                 
                
                 
                            
                
                disable
                public function disable()
                
                
                 
                            
                
                enable
                public function enable()
                
                
                 
                            
                
                fireEvent
                public function fireEvent(String eventName, Object... args)
                
                    Fires the specified event with the passed parameters (minus the event name).
                
                 
                
                 
                            
                
                focus
                public function focus(Boolean selectText)
                
                    Try to focus this component
                
                 
                
                 
                            
                
                getEl
                public function getEl()
                
                
                 
                            
                
                hasListener
                public function hasListener(String eventName)
                
                    Checks to see if this object is currently listening for a specified event
                
                 
                
                 
                            
                
                hide
                public function hide()
                
                
                 
                            
                
                on
                public function on(String eventName, Function handler, [Object options])
                
                    Appends an event handler to this element (shorthand for addListener)
                
                 
                
                 
                            
                
                purgeListeners
                public function purgeListeners()
                
                    Removes all listeners for this object
                
                 
                
                 
                            
                
                removeListener
                public function removeListener(String eventName, Function handler, [Object scope])
                
                
                 
                            
                
                render
                public function render(String/HTMLElement/Element container)
                
                    If this is a lazy rendering component, render it to it's container element
                
                 
                
                 
                            
                
                setDisabled
                public function setDisabled(Boolean disabled)
                
                    Convenience function for setting disabled/enabled by boolean
                
                 
                
                 
                            
                
                setVisible
                public function setVisible(Boolean visible)
                
                    Convenience function to hide or show this component by boolean
                
                 
                
                 
                            
                
                show
                public function show()
                
                
                 
                            
                
                un
                public function un(String eventName, Function handler, [Object scope])
                
                    Removes a listener (shorthand for removeListener)
                
                 
                
                 
                         
        
                    Event Details
            
                            
                
                activate
                public event activate
                
                Fires when this item is activated
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                beforedestroy
                public event beforedestroy
                
                Fires before the component is destroyed
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                beforehide
                public event beforehide
                
                Fires before the component is hidden
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                beforerender
                public event beforerender
                
                Fires before the component is rendered
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                beforeshow
                public event beforeshow
                
                Fires before the component is shown
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                click
                public event click
                
                Fires when this item is clicked
                
                    Subscribers will be called with the following parameters:
                    this : Ext.menu.BaseIteme : Ext.EventObject                     
                 
                 
                
                 
                            
                
                deactivate
                public event deactivate
                
                Fires when this item is deactivated
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                destroy
                public event destroy
                
                Fires after the component is destroyed
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                disable
                public event disable
                
                Fires after the component is disabled
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                enable
                public event enable
                
                Fires after the component is enabled
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                hide
                public event hide
                
                Fires after the component is hidden
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                render
                public event render
                
                Fires after the component is rendered
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                            
                
                show
                public event show
                
                Fires after the component is shown
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                
                 
                         
                            Config Details
            
                            
                
                activeClass
                activeClass : String
                
                    The CSS class to use when the item becomes activated (defaults to "x-menu-item-active")                
                This config option is defined by 
BaseItem.
 
                 
                            
                
                canActivate
                canActivate : Boolean
                
                    True if this item can be visually activated (defaults to false)                
                This config option is defined by 
BaseItem.
 
                 
                            
                
                handler
                handler : Function
                
                    A function that will handle the click event of this menu item (defaults to undefined)                
                This config option is defined by 
BaseItem.
 
                 
                            
                
                hideDelay
                hideDelay : Number
                
                    Length of time in milliseconds to wait before hiding after a click (defaults to 100)                
                This config option is defined by 
BaseItem.
 
                 
                            
                
                hideOnClick
                hideOnClick : Boolean
                
                    True to hide the containing menu after this item is clicked (defaults to true)                
                This config option is defined by 
BaseItem.