Standard input bean to enter a numerical value via a slider or a text field. The value is confined to a fixed interval as given by the extreme slider positions. The slider can be linear or logarithmic and it can be inverted. The text field is decorated by a description and a unit text, it is coupled to the slider position. The TextSlider sends a message whenever a new value is entered, either after pressing <Enter> in the text field or at the end of a slider drag. Optionally it sends messages continuously during a drag.
Properties:
String description | description text of the value |
String unit | unit text of the value |
int precision | number of decimals shown in the text field |
int columns | width of text field showing the value |
boolean fireContinuously | if true, values are sent during a slider drag, otherwise only at the end |
boolean logarithmic | if true, slider scale is logarithmic, else linear |
boolean inverted | if true, slider values are descending from left to right |
BoundedRealModel model | minimum, initial and maximum value |
Events:
PropertyChange | change of value |