Name

baseslider — A non-visual base class for implementing sliders.

Synopsis

LZX: baseslider
JavaScript: baseslider
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/baseslider.lzx

Description

Baseslider is a non-visual representation of a slider.

The base class for implementing sliders representing a range of values.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baseslider

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;
The maximum value.
minvalue
<attribute name="minvalue" type="number" value="0" />
public var minvalue : Number;
The minimum value.
showfill
<attribute name="showfill" value="true" />
public var showfill;
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;
The height of the thumb.
thumbwidth
<attribute name="thumbwidth" type="number" value="10" />
public var thumbwidth : Number;
The width of the thumb.
trackheight
<attribute name="trackheight" type="number" value="8" />
public var trackheight : Number;
The height of the track.

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);
Set the maximum value.
setMinValue()
<method name="setMinValue" args="v" />
public function setMinValue(v : Number);
Set the minimum value.
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" />
public event onmaxvalue;
onminvalue
<attribute name="onminvalue" />
public event 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" />
  <method name=" getMaxValue " />
  <method name=" getMinValue " />
  <method name=" getPercentage " />
  <event name=" onmaxvalue " />
  <event name=" onminvalue " />
  <method name=" setMaxValue " args="v" />
  <method name=" setMinValue " args="v" />
  <method name=" setPercentage " args="p" />
  <method name=" setValue " args="v" />
</class>

JavaScript Synopsis

public baseslider extends  basevaluecomponent  {
  public var bordersize  : Number;
  public var keystep  : Number;
  public var maxvalue  : Number;
  public var minvalue  : Number;
  public var showfill ;
  public var showrange  : Boolean;
  public var showvalue  : Boolean;
  public var thumbheight  : Number;
  public var thumbwidth  : Number;
  public var trackheight  : Number;
  prototype public function getMaxValue () : Number;
  prototype public function getMinValue () : Number;
  prototype public function getPercentage () : Number;
  prototype public event onmaxvalue ;
  prototype public event onminvalue ;
  prototype public function setMaxValue (v : Number);
  prototype public function setMinValue (v : Number);
  prototype public function setPercentage (p : Number);
  prototype public function setValue (v : Number);
}