com.vaadin.ui.Slider Java Examples

The following examples show how to use com.vaadin.ui.Slider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
private static Slider createRGBSlider(final String caption, final String styleName) {
    final Slider slider = new Slider(caption, 0, 255);
    slider.setImmediate(true);
    slider.setWidth("150px");
    slider.addStyleName(styleName);
    return slider;
}
 
Example #2
Source File: TaskSliderField.java    From mycollab with GNU Affero General Public License v3.0 5 votes vote down vote up
public TaskSliderField() {
    progressLbl = new Label();
    progressLbl.setWidthUndefined();
    slider = new Slider();
    slider.setOrientation(SliderOrientation.HORIZONTAL);
    slider.setWidth(WebThemes.FORM_CONTROL_WIDTH);
    slider.addValueChangeListener(valueChangeEvent -> {
        displayValue(valueChangeEvent.getValue());
    });
    body = new MHorizontalLayout(slider, progressLbl);
}
 
Example #3
Source File: CubaSlider.java    From cuba with Apache License 2.0 4 votes vote down vote up
protected Slider createComponent() {
    return new Slider();
}
 
Example #4
Source File: CubaSlider.java    From cuba with Apache License 2.0 4 votes vote down vote up
@Override
protected Slider initContent() {
    return slider;
}
 
Example #5
Source File: CubaSlider.java    From cuba with Apache License 2.0 4 votes vote down vote up
public Slider getInternalComponent() {
    return slider;
}
 
Example #6
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public Slider getRedSlider() {
    return redSlider;
}
 
Example #7
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public void setRedSlider(final Slider redSlider) {
    this.redSlider = redSlider;
}
 
Example #8
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public Slider getGreenSlider() {
    return greenSlider;
}
 
Example #9
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public void setGreenSlider(final Slider greenSlider) {
    this.greenSlider = greenSlider;
}
 
Example #10
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public Slider getBlueSlider() {
    return blueSlider;
}
 
Example #11
Source File: ColorPickerLayout.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
public void setBlueSlider(final Slider blueSlider) {
    this.blueSlider = blueSlider;
}