diff options
author | Anastasia Smirnova <anasmi@utu.fi> | 2019-04-10 16:17:18 +0300 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2019-04-10 16:17:18 +0300 |
commit | 258450a82b61b1582905978433b8ed23575924b8 (patch) | |
tree | a410f391ff9889e475a88b94bad4c7e24c73d49f /shared/src | |
parent | 7392bf241f115a9a338e047187be1b1d1ddfaed6 (diff) | |
download | vaadin-framework-258450a82b61b1582905978433b8ed23575924b8.tar.gz vaadin-framework-258450a82b61b1582905978433b8ed23575924b8.zip |
Clicking on slider makes handler move (#11519)
* Clicking on slider makes handler move
Fixes #1496
* Introducing control over clicking behaviour
- User will have to enable process of the click event on handle calling `slider.setEnableClickHandler(true);`
- Clean-up the handler logic in VSlider.java
- Renaming the property to `updateValueOnClick`
- Added JavaDocs
- Fixing tests
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java b/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java index 1749e6afe2..6787dc4d53 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java @@ -38,6 +38,9 @@ public class SliderState extends AbstractFieldState { @NoLayout public int resolution = 0; + @NoLayout + public boolean updateValueOnClick = false; + public SliderOrientation orientation = SliderOrientation.HORIZONTAL; } |