zul.sel.Optgroup=zk.$extends(zul.Widget,{_open:!0,$define:{disabled:function(b){var a=this.$n();a&&(a.disabled=b?"disabled":"")},open:function(b,a){this.desktop&&this.parent.requestRerender_(a)}},getLabel:function(){return this.firstChild?this.firstChild.domLabel_():null},updateLabel_:function(){var b=this.$n();b&&(b.label=this.getLabel())},setVisible:function(b,a){this._visible!=b&&(this._visible=b,this.desktop&&this.parent.requestRerender_(a))},domAttrs_:function(b){var a=this.$supers("domAttrs_",
arguments),c=this.getLabel(),d=this.isDisabled();c&&(a+=' label="'+c+'"');d&&(a+=' disabled="disabled"');return a}});
