com.vaadin.shared.ui.slider.SliderOrientation Java Examples
The following examples show how to use
com.vaadin.shared.ui.slider.SliderOrientation.
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: WebWrapperUtils.java From cuba with Apache License 2.0 | 5 votes |
public static HasOrientation.Orientation fromVaadinSliderOrientation(SliderOrientation orientation) { checkNotNullArgument(orientation); switch (orientation) { case VERTICAL: return HasOrientation.Orientation.VERTICAL; case HORIZONTAL: return HasOrientation.Orientation.HORIZONTAL; default: throw new IllegalArgumentException("Can't be converted to HasOrientation.Orientation: " + orientation); } }
Example #2
Source File: WebWrapperUtils.java From cuba with Apache License 2.0 | 5 votes |
public static SliderOrientation toVaadinSliderOrientation(HasOrientation.Orientation orientation) { checkNotNullArgument(orientation); switch (orientation) { case VERTICAL: return SliderOrientation.VERTICAL; case HORIZONTAL: return SliderOrientation.HORIZONTAL; default: throw new IllegalArgumentException("Can't be converted to SliderOrientation: " + orientation); } }
Example #3
Source File: TaskSliderField.java From mycollab with GNU Affero General Public License v3.0 | 5 votes |
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 #4
Source File: CubaSlider.java From cuba with Apache License 2.0 | 4 votes |
public SliderOrientation getOrientation() { return slider.getOrientation(); }
Example #5
Source File: CubaSlider.java From cuba with Apache License 2.0 | 4 votes |
public void setOrientation(SliderOrientation orientation) { slider.setOrientation(orientation); }