Vaadin Slider predefined intervals


I am using Vaadin slider, and I need to set it up with predefined intervals. i.e. 0, 50, 100, 200 so instead of sliding it should be jumping to those specific values.

Like the example in
valo theme slider section with ticks

I have tried with the Valo theme one with ticks sytle, but was unable to achieve this using my valuse.

slider = new Slider("With ticks"); slider.setValue(10.0); slider.setHeight("200px"); slider.setMax(100); slider.addStyleName("ticks"); slider.setOrientation(SliderOrientation.VERTICAL); row.addComponent(slider); How can I achieve this.