Documentation

Reference
qx:slider (qx.ui.form.Slider)

The Slider widget provides a vertical or horizontal slider.

The Slider is the classic widget for controlling a bounded value. It lets the user move a slider handle along a horizontal or vertical groove and translates the handle’s position into an integer value within the defined range.

The Slider has very few of its own functions; most of the functionality is in qx.ui.form.BaseSlider. The most useful functions are slideTo() to set the slider directly to some value; setSingleStep(), setPageStep() to set the steps; and setMinimum() and setMaximum() to define the range of the slider.

A slider accepts focus on Tab and provides both a mouse wheel and a keyboard interface. The keyboard interface is the following:

  • Left/Right move a horizontal slider by one single step.
  • Up/Down move a vertical slider by one single step.
  • PageUp moves up one page.
  • PageDown moves down one page.
  • Home moves to the start (mininum).
  • End moves to the end (maximum).

Here are the main properties of the class:

  1. value: The bounded integer that BaseSlider maintains.
  2. minimum: The lowest possible value.
  3. maximum: The highest possible value.
  4. singleStep: The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key.
  5. pageStep: The larger of two natural steps that an abstract slider provides and typically corresponds to the user pressing PageUp or PageDown.

LGPL, EPL © 2008 QxTransformer | Siarhei Barysiuk & Christian Boulanger.
Site design and illustrations by Siarhei Barysiuk. | Icons by Dry Icons.

qooxdoo