Name

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

Synopsis

LZX: baseslider
JavaScript: lz.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

Details

Properties (11)

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.
value
<attribute name="value" value="0" />
private var value;

Methods (10)

_adjustThumb()
<method name="_adjustThumb" />
private function _adjustThumb();
adjusts the thumb location
getFocusRect()
<method name="getFocusRect" />
private function getFocusRect();
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.
init()
<method name="init" />
private function init();
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 (3)

onmaxvalue
<attribute name="onmaxvalue" />
public event onmaxvalue;
onminvalue
<attribute name="onminvalue" />
public event onminvalue;
onvalue
<attribute name="onvalue" />
private event onvalue;

LZX Synopsis

<class name="lz.baseslider" extends=" lz.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" />
  <attribute name=" value " value="0" />
  <method name=" _adjustThumb " />
  <method name=" getFocusRect " />
  <method name=" getMaxValue " />
  <method name=" getMinValue " />
  <method name=" getPercentage " />
  <method name=" init " />
  <event name=" onmaxvalue " />
  <event name=" onminvalue " />
  <event name=" onvalue " />
  <method name=" setMaxValue " args="v" />
  <method name=" setMinValue " args="v" />
  <method name=" setPercentage " args="p" />
  <method name=" setValue " args="v" />
</class>

JavaScript Synopsis

public lz.baseslider extends  lz.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;
  private var value ;
  prototype private function _adjustThumb ();
  prototype private function getFocusRect ();
  prototype public function getMaxValue () : Number;
  prototype public function getMinValue () : Number;
  prototype public function getPercentage () : Number;
  prototype private function init ();
  prototype public event onmaxvalue ;
  prototype public event onminvalue ;
  prototype private event onvalue ;
  prototype public function setMaxValue (v : Number);
  prototype public function setMinValue (v : Number);
  prototype public function setPercentage (p : Number);
  prototype public function setValue (v : Number);
}