Directory

← Back

RangeSliderBar

RangeSliderBar for Vaadin

Author

Rating

Popularity

<100

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");

Compatibility

(Loading compatibility data...)

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 Vaadin RangeSliderBar - Vaadin Add-on Directory
RangeSliderBar is similar to the SliderBar Add-on. but with two sliders to allow setting minimum and maximum values.
Online