Directory

← Back

SliderBar-0.0.1

SliderBar for Vaadin

Author

Rating

Popularity

<100

An alternative to the vaadin slider , ported from gwt incubator to work in the vaadin framework ( http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/SliderBar/index.html)

Sample code

		final SliderBar<Long> bar = new SliderBar<Long>(Long.class);
		bar.addRangeValueListener(new SliderValueListener<Long>() {
			@Override
			public void sliderValuesChanged(Long value) {
				Date n = new Date(value);
				tf.setValue(DateFormat.getDateTimeInstance().format(n));
				tf.setData(n.getTime());
			}
		});
		bar.setNumberLabels(3);
		bar.setNumberTicks(10);
		bar.setLabelAsDate(DateLabelFormat.HOUR_MINUTE_SECOND);
		Date now = new Date();
		bar.setMin(now.getTime() - (10 * SliderUtil.MINUTE));
		bar.setMax(now.getTime() + (10 * SliderUtil.MINUTE));
		bar.setStepSize(SliderUtil.SECOND);
		bar.setSuperImmediateMode(true);

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

Now parameterized and support for label date formatting.

Released
2012-02-25
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Browser
Internet Explorer
Internet Explorer
Firefox
Opera
Google Chrome
Internet Explorer

SliderBar-0.0.1 - Vaadin Add-on Directory

SliderBar for Vaadin SliderBar-0.0.1 - Vaadin Add-on Directory
An alternative to the vaadin slider , ported from gwt incubator to work in the vaadin framework ( http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/SliderBar/index.html)
Online