Class Ext.menu.CheckItem
        
        
            Adds a menu item that contains a checkbox by default, but can also be part of a radio group.        
        
        	属性
			  -  
方法
			  -  
事件
        	        	  -  
设置选项
        	        
        
        公共属性
                
                
        公共方法
                
            
                
                
            
                
        |  | CheckItem( Object config) | CheckItem | 
    
        | Creates a new CheckItem | 
        
        |  | addEvents( Object object) : void | Observable | 
    
        | 将对象中没有的事件从给出的对象中复制过来。 | 
        
        |  | addListener( String eventName,Function handler, [Object scope], [Object options]) : void | Observable | 
    
        | 为该组件加入事件处理器函数 | 
        
        |  | disable() : void | Component | 
    
        | Disable this component | 
        
        |  | enable() : void | Component | 
    
        | Enable this component | 
        
        |  | fireEvent( String eventName,Object... args) : Boolean | Observable | 
    
        | 触发指定的事件, 并将参数传入(至少要有事件名称)。 | 
        
        |  | focus( Boolean selectText) : void | Component | 
    
        | Try to focus this component | 
        
        |  | getEl() : Ext.Element | Component | 
    
        | Returns the underlying Ext.Element | 
        
        |  | getId() : String | Component | 
    
        | Returns the id of this component | 
        
        |  | hasListener( String eventName) : Boolean | Observable | 
    
        | 检查该对象是否拥有指定事件的侦听器 | 
        
        |  | hide() : void | Component | 
    
        | Hide this component | 
        
        |  | isVisible() : void | Component | 
    
        | Returns true if this component is visible | 
        
        |  | on( String eventName,Function handler, [Object options]) : void | Observable | 
    
        | 为该组件加入事件处理器函数, addListener 的简写方式 | 
        
        |  | purgeListeners() : void | Observable | 
    
        | 从对象身上移除所有的侦听器 | 
        
        |  | removeListener( String eventName,Function handler, [Object scope]) : void | Observable | 
    
        | 移除侦听器 | 
        
        |  | render([ String/HTMLElement/Element container]) : void | Component | 
    
        | If this is a lazy rendering component, render it to its container element | 
        
        |  | setChecked( Boolean checked, [Boolean suppressEvent]) : void | CheckItem | 
    
        | Set the checked state of this item | 
        
        |  | setDisabled( Boolean disabled) : void | Component | 
    
        | Convenience function for setting disabled/enabled by boolean | 
        
        |  | setText( String text) : void | Item | 
    
        | Sets the text to display in this menu item | 
        
        |  | 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 | 
    
        | 移除侦听器, removeListener 的简写方式 | 
            
                
        公共事件
                
            
                
                
            
                
        |  | activate : ( Ext.menu.BaseItem this) | BaseItem | 
    
        | Fires when this item is activated | 
        
        |  | beforecheckchange : ( Ext.menu.CheckItem this,Boolean checked) | CheckItem | 
    
        | Fires before the checked value is set, providing an opportunity to cancel if needed | 
        
        |  | beforedestroy : ( Ext.Component this) | Component | 
    
        | Fires before the component is destroyed | 
        
        |  | beforehide : ( Ext.Component this) | Component | 
    
        | Fires before the component is hidden | 
        
        |  | beforerender : ( Ext.Component this) | Component | 
    
        | Fires before the component is rendered | 
        
        |  | beforeshow : ( Ext.Component this) | Component | 
    
        | Fires before the component is shown | 
        
        |  | checkchange : ( Ext.menu.CheckItem this,Boolean checked) | CheckItem | 
    
        | Fires after the checked value has been set | 
        
        |  | click : ( Ext.menu.BaseItem this,Ext.EventObject e) | BaseItem | 
    
        | Fires when this item is clicked | 
        
        |  | deactivate : ( Ext.menu.BaseItem this) | BaseItem | 
    
        | Fires when this item is deactivated | 
        
        |  | destroy : ( Ext.Component this) | Component | 
    
        | Fires after the component is destroyed | 
        
        |  | disable : ( Ext.Component this) | Component | 
    
        | Fires after the component is disabled | 
        
        |  | enable : ( Ext.Component this) | Component | 
    
        | Fires after the component is enabled | 
        
        |  | hide : ( Ext.Component this) | Component | 
    
        | Fires after the component is hidden | 
        
        |  | render : ( Ext.Component this) | Component | 
    
        | Fires after the component is rendered | 
        
        |  | show : ( Ext.Component this) | Component | 
    
        | Fires after the component is shown | 
            
                        
        设置选项
        
            
                
                
            
                
        |  | 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) | 
        
        |  | checked : Boolean | CheckItem | 
    
        | True to initialize this checkbox as checked (defaults to false). Note that if this checkbox is part of a radio group ... | 
        
        |  | group : String | CheckItem | 
    
        | All check items with the same group name will automatically be grouped into a single-select radio button group (defau... | 
        
        |  | groupClass : String | CheckItem | 
    
        | The default CSS class to use for radio group check items (defaults to "x-menu-group-item") | 
        
        |  | 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) | 
        
        |  | icon : String | Item | 
    
        | The path to an icon to display in this menu item (defaults to Ext.BLANK_IMAGE_URL) | 
        
        |  | itemCls : String | CheckItem | 
    
        | The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item") | 
            
                            属性详情
            
                            
                
                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.                
                
                 
                            
                
                rendered
                public Object rendered
                
                    true if this component has been rendered. Read-only.                
                
                 
                         
        
                    
            构造函数
            
                
                CheckItem
                public function CheckItem(Object config)
                
                Creates a new CheckItem                
                    参数:
                    - config: Object- Configuration options 
 
                 
             
        
                    方法详情
            
                            
                
                addEvents
                public function addEvents(Object object)
                将对象中没有的事件从给出的对象中复制过来。给出的对象必须也继承于 Observable 对象此方法才会有效果。
                
                 
                            
                
                addListener
                public function addListener(String eventName, Function handler, [Object scope], [Object options])
                
                
                 
                            
                
                disable
                public function disable()
                
                
                 
                            
                
                enable
                public function enable()
                
                
                 
                            
                
                fireEvent
                public function fireEvent(String eventName, Object... args)
                触发指定的事件并给出参数(至少要有事件名称)。
                
                    参数:
                    - eventName: String
- args: Object...- 传入处理函数的参数 
返回: 
                 
                            
                
                focus
                public function focus(Boolean selectText)
                
                    Try to focus this component
                
                 
                            
                
                getEl
                public function getEl()
                
                
                 
                            
                
                getId
                public function getId()
                
                    Returns the id of this component
                
                 
                            
                
                hasListener
                public function hasListener(String eventName)
                检查该对象是否拥有指定事件的侦听器
                
                    参数:
                    - eventName: String- 查询事件之名称 
返回: 
                 
                            
                
                hide
                public function hide()
                
                
                 
                            
                
                isVisible
                public function isVisible()
                
                    Returns true if this component is visible
                
                 
                            
                
                on
                public function on(String eventName, Function handler, [Object options])
                为该组件加入事件处理器函数, addListener 的简写方式
                
                    参数:
                    - eventName: String- 侦听事件的类型 
- handler: Function- 事件调用的方法 
- options: Object- (可选) 
返回: 
                 
                            
                
                purgeListeners
                public function purgeListeners()
                
                
                 
                            
                
                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 its container element
                
                 
                            
                
                setChecked
                public function setChecked(Boolean checked, [Boolean suppressEvent])
                
                    Set the checked state of this item
                
                This method is defined by CheckItem.
                 
                            
                
                setDisabled
                public function setDisabled(Boolean disabled)
                
                    Convenience function for setting disabled/enabled by boolean
                
                 
                            
                
                setText
                public function setText(String text)
                
                    Sets the text to display in this menu item
                
                    参数:
                    - text: String- The text to display 
返回: 
                This method is defined by 
Item.
 
                            
                
                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])
                
                    移除侦听器, removeListener 的简写方式
                
                 
                         
        
                    事件详情
            
                            
                
                activate
                public event activate
                
                Fires when this item is activated
                
                    Subscribers will be called with the following parameters:
                    
                 
                 
                            
                
                beforecheckchange
                public event beforecheckchange
                
                Fires before the checked value is set, providing an opportunity to cancel if needed
                
                    Subscribers will be called with the following parameters:
                    
                 
                This event is defined by CheckItem.
                 
                            
                
                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:
                    
                 
                 
                            
                
                checkchange
                public event checkchange
                
                Fires after the checked value has been set
                
                    Subscribers will be called with the following parameters:
                    
                 
                This event is defined by CheckItem.
                 
                            
                
                click
                public event click
                
                Fires when this item is clicked
                
                    Subscribers will be called with the following parameters:
                    - this: Ext.menu.BaseItem
- e: 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:
                    
                 
                 
                         
                            设置详情
            
                            
                
                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.
 
                            
                
                checked
                checked : Boolean
                
                    True to initialize this checkbox as checked (defaults to false). Note that if this checkbox is part of a radio group (group = true) only the last item in the group that is initialized with checked = true will be rendered as checked.                
                This config option is defined by CheckItem.
                 
                            
                
                group
                group : String
                
                    All check items with the same group name will automatically be grouped into a single-select radio button group (defaults to '')                
                This config option is defined by CheckItem.
                 
                            
                
                groupClass
                groupClass : String
                
                    The default CSS class to use for radio group check items (defaults to "x-menu-group-item")                
                This config option is defined by CheckItem.
                 
                            
                
                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.
 
                            
                
                icon
                icon : String
                
                    The path to an icon to display in this menu item (defaults to Ext.BLANK_IMAGE_URL)                
                This config option is defined by 
Item.
 
                            
                
                itemCls
                itemCls : String
                
                    The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item")                
                This config option is defined by CheckItem.