Name

basesliderthumb

Synopsis

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

Description

Basesliderthumb expects to be within a baseslidertrack (or its subclass). In other words, its "classroot" should be a slidertrack.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basebutton » button » basesliderthumb

Known Subclasses

Details

Properties (1)

showvalue
<attribute name="showvalue" value="${parent.parent.showvalue}" />
public var showvalue;
Toggles the floating value text when dragging thumb.

Methods (3)

setX()
<method name="setX" args="x" />
private function setX(x);
constrain to parents bounds, and adjust slider value when dragged
_thumbFromValue()
<method name="_thumbFromValue" />
private function _thumbFromValue();
compute thumb position from slider value
_valueFromThumb()
<method name="_valueFromThumb" />
private function _valueFromThumb();
compute slider value from thumb position

LZX Synopsis

<class name="lz.basesliderthumb" extends=" lz.button ">
  <attribute name=" showvalue " value="${parent.parent.showvalue}" />
  <method name=" setX " args="x" />
  <method name=" _thumbFromValue " />
  <method name=" _valueFromThumb " />
</class>

JavaScript Synopsis

public lz.basesliderthumb extends  lz.button  {
  public var showvalue ;
  prototype private function setX (x);
  prototype private function _thumbFromValue ();
  prototype private function _valueFromThumb ();
}