Slider
A slider lets the user graphically select a value by sliding a knob
within a bounded interval, e.g. between 25 and 75. <slider minimum="25" maximum="75" value="50" orientation="vertical" />
Properties
orientation | choice | horizontal | Possible values are: horizontal, and vertical.
The default value, if not set, is horizontal. |
minimum | integer | 0 | The slider's minimum value. By default, this is 0. |
maximum | integer | 100 | The slider's maximum value. By default, this is 100. |
value | integer | 0 | The value is always between the slider's minimum and maximum values, inclusive.
By default, the value equals the minimum. |
unit | integer | 5 | The distance of the value change when using arrow buttons. |
block | integer | 25 | The distance of the value change when using page buttons. |
name, enabled, visible, tooltip, property, width, height, colspan, rowspan,
weightx, weighty, halign, and valign parameters are similar to
component |
Listeners
action | Invokes the method when the slider has changed its value. |
Keyboard-actions
Left arrow, up arrow | Decreases the value (steps in left/top direction) by unit value |
Right arrow, down arrow | Increases the value (steps in right/bottom direction) by unit value |
Page Up | Decreases the value (jumps in left/top direction) by block value |
Page Down | Increases the value (jumps in right/bottom direction) by block value |
Home | Moves to minimum (left/top) value |
End | Moves to maximum (right/bottom) value |
Tab, Shift-Tab | Navigate forward, backward |
|