Name
baseslider — A non-visual base class for implementing sliders.
Description
Baseslider is a non-visual representation of a slider.
The base class for implementing sliders representing a range of
values.
Known Subclasses
Known Direct Subclasses: slider
Details
Properties (10)
-
bordersize
-
<attribute name="bordersize" type="number" value="1" />
public var bordersize : Number;
The border width. This can be set with a style.
-
keystep
-
<attribute name="keystep" type="number" value="2" />
public var keystep : Number;
How far to move when key navigating.
-
maxvalue
-
<attribute name="maxvalue" type="number" value="100" />
public var maxvalue : Number;
-
minvalue
-
<attribute name="minvalue" type="number" value="0" />
public var minvalue : Number;
-
showfill
-
<attribute name="showfill" value="true" />
Turns on / off the slider''s filled area.
-
showrange
-
<attribute name="showrange" type="boolean" value="true" />
public var showrange : Boolean;
Turns on / off the bounding range text.
-
showvalue
-
<attribute name="showvalue" type="boolean" value="true" />
public var showvalue : Boolean;
Turns on / off the floating value text when the user
drags.
-
thumbheight
-
<attribute name="thumbheight" type="number" value="18" />
public var thumbheight : Number;
-
thumbwidth
-
<attribute name="thumbwidth" type="number" value="10" />
public var thumbwidth : Number;
-
trackheight
-
<attribute name="trackheight" type="number" value="8" />
public var trackheight : Number;
Methods (7)
-
getMaxValue()
-
<method name="getMaxValue" />
public function getMaxValue() : Number;
Get the maximum value of the slider.
-
getMinValue()
-
<method name="getMinValue" />
public function getMinValue() : Number;
Get the minimum value of the slider.
-
getPercentage()
-
<method name="getPercentage" />
public function getPercentage() : Number;
Get the percentage of the range selected by the value.
-
setMaxValue()
-
<method name="setMaxValue" args="v" />
public function setMaxValue(v : Number);
-
setMinValue()
-
<method name="setMinValue" args="v" />
public function setMinValue(v : Number);
-
setPercentage()
-
<method name="setPercentage" args="p" />
public function setPercentage(p : Number);
Set the value by percentage of range from min to max.
-
setValue()
-
<method name="setValue" args="v" />
public function setValue(v : Number);
Sets the value for the slider that must be within min and
max.
Events (2)
-
onmaxvalue
-
<attribute name="onmaxvalue" />
-
onminvalue
-
<attribute name="onminvalue" />
LZX Synopsis
<class name="
baseslider" extends="
basevaluecomponent
">
<attribute name="
bordersize
" type="
number" value="
1" />
<attribute name="
keystep
" type="
number" value="
2" />
<attribute name="
maxvalue
" type="
number" value="
100" />
<attribute name="
minvalue
" type="
number" value="
0" />
<attribute name="
showfill
" value="
true" />
<attribute name="
showrange
" type="
boolean" value="
true" />
<attribute name="
showvalue
" type="
boolean" value="
true" />
<attribute name="
thumbheight
" type="
number" value="
18" />
<attribute name="
thumbwidth
" type="
number" value="
10" />
<attribute name="
trackheight
" type="
number" value="
8" />
</class>