|
» Component » Label » Button » CheckBox » ComboBox » TextField » PasswordField » TextArea » TabbedPane » Panel » Desktop » Dialog » SpinBox » ProgressBar » Slider » SplitPane » List » Table » Tree » Separator » MenuBar
|
|
|
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" /> |
Parameters
Name | Type | Default | Description | 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.
|
action | method | null |
Invokes the method when the slider has changed its value.
|
name, enabled, visible, tooltip, width, height, colspan, rowspan,
weightx, weighty, halign, and valign parameters are similar to component
|
Keyboard-actions
Operation | Action | 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 |
|