},
- onClick : function()
+ onClick : function(e)
{
- this.setChecked(true);
+ if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
+ this.setChecked(true);
+ }
},
setChecked : function(state, suppressEvent)
{
- this.parent().setValue(this.value);
+ this.parent().setValue(this.value, suppressEvent);
- if(suppressEvent !== true){
- this.fireEvent('check', this, state);
- }
+ },
+
+ setBoxLabel : function(v)
+ {
+ this.boxLabel = v;
+ if(this.rendered){
+ this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+ }
}
});