Click event before value change. (Checkbox)

Using CheckBox and need to pop up a dialog BEFORE the check is set or unset. What listener should I use? Is there a previous value stored somewhere?

V/w Wayne


There is a variety of listeners on the CheckBox component.

If you use addValueChangeListener you'll get a ComponentValueChangeEvent On this event, you can get the old value.

API: https://vaadin.com/api/platform/23.0.0.alpha1/com/vaadin/flow/component/checkbox/Checkbox.html