RangeSliderBar
RangeSliderBar for Vaadin
RangeSliderBar is similar to the SliderBar Add-on. but with two sliders to allow setting minimum and maximum values.
Sample code
slider.addListener(new ValueChangeListener() { private static final long serialVersionUID = 1L; @Override public void valueChange(ValueChangeEvent event) { DoublePair val = (DoublePair) event.getProperty().getValue(); Double max = val.max; Double min = val.min; minTf.setValue(min); maxTf.setValue(max); } }); slider.setNumberOfLabels(10); slider.setNumberOfTicks(5); slider.setKnobValues(-10.0d, 10.0d); slider.setRangeMin(-15); slider.setRangeMax(+15); slider.setStepSize(.5); slider.setSuperImmediateMode(false); slider.setAppendString("ms"); slider.setRequired(true); slider.setImmediate(true); slider.setCaption("Reaction time");
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
minor change
- Released
- 2012-01-18
- Maturity
- EXPERIMENTAL
- License
- Other
Compatibility
- Framework
- Vaadin 6.0+
- Browser
- Firefox
- Opera
- Google Chrome
- Internet Explorer
RangeSliderBar - Vaadin Add-on Directory
RangeSliderBar for VaadinRangeSliderBar is similar to the SliderBar Add-on. but with two sliders to allow setting minimum and maximum values.