this.maxvalue) this.value = this.maxvalue;
// and since we didn't send events in the pre-init case, do those now too
if (this['onvalue']) this.onvalue.sendEvent();
if (this['onminvalue']) this.onminvalue.sendEvent();
if (this['onmaxvalue']) this.onmaxvalue.sendEvent();
// since we didn't handle view consistency in the pre-init case, do it now
this._adjustThumb();
]]> this.value) this.setAttribute("value", v);
this.minvalue = v;
if (this['onminvalue']) this.onminvalue.sendEvent();
this._adjustThumb();
}
]]> v) v = this.minvalue;
// doing this before setting the attribute means we assume consistency
// on function entry and try to send events only when in a consistent state.
if (this.value > v) this.setAttribute("value", v);
this.maxvalue = v;
if (this['onmaxvalue']) this.onmaxvalue.sendEvent();
this._adjustThumb();
}
]]> this.maxvalue) v = this.maxvalue;
this.value = v;
if (this['onvalue']) this.onvalue.sendEvent(v);
this._adjustThumb();
}
]]>A non-visual base class for implementing sliders.
Baseslider is a non-visual representation of a slider.
pwidth - w ) {
var constrainX = pwidth - w;
boundedx = constrainX;
} else {
var px = this.parent.x;
if (px > x) {
boundedx = px;
}
}
super.setAttribute('x', boundedx);
//update slider value
var slider = this.parent.parent;
if (slider.isinited) {
//set after slider is inited, see LPP-5710
var thumbVal = this._valueFromThumb();
if (thumbVal != slider.value) {
slider.setAttribute("value", thumbVal);
}
}
]]>