4 'remoto!stdlib:js/widgets/widget.js',
36 d.value = (d.value ===
"true" || d.value ===
true);
40 this._arrowAt =
"left-2 bottom+3";
56 if (this._widgetJq)
return this._widgetJq;
58 this._widgetJq = $(
"<input class='widgetInputField' id='"+this._id+
"' type='checkbox' value='"+(this._value?
"true":
"false")+
"' "+(this._value?
"checked":
"")+
" />");
60 if (this._options[
"enabled"]!==
true || !this._enabled)
63 if (this._options.text)
64 { var d = $(
"<div style='white-space: nowrap;'>").append(this._widgetJq);
65 var t = $(
"<span>").addClass(
"widgetLabel").text(this._options.text).appendTo(d);
66 t.css( { display:
"inline-block",
70 "white-space":
"normal",
76 return this._widgetJq;
88 if (this._widgetJq && this._change)
89 { this._widgetJq.bind(
"change", this.
sync.bind(
this));
90 this._widgetJq.bind(
"click",
function(e) { e.stopPropagation(); } );
104 var v = this._widgetJq.val();
106 this.
value = (v ===
"true") ?
false :
true;
124 return this._value ===
true;
133 booleanWidget.prototype.__defineSetter__(
"value",
function(v)
135 if (v ===
true || v ===
"true") v =
true;
139 this._widgetJq[0].checked =
true;
141 this._widgetJq[0].checked =
false;
143 return widget.prototype.__lookupSetter__(
"value").call(
this,v);
setter value
a setter DOCME
setter widget
a setter DOCME