basecheckbox.lzx
<library>
<include href="base/baseformitem.lzx"/>
<class name="basecheckbox" extends="baseformitem">
<attribute name="value" value="false
" setter="setValue(value, false)"/>
<method name="doSpaceUp">
if (this._enabled) this.setValue(!this.value, false);
</method>
<handler name="onclick" method="doClick"/>
<method name="doClick" args="ignore">
if (this._enabled) this.setValue(!this.value, false);
</method>
<method name="_showEnabled">
if (this['_applystyle']) this._applystyle(this.style);
</method>
<method name="setValue" args="value,isinitvalue=null">
if (this['value'] == value) return;
if (value == "false") {
value = false;
} else if (value == "true") {
value = true;
} else {
value = !!value;
}
super.setValue(value,isinitvalue);
</method>
</class>
</library>
Cross References
Includes
Classes