use of com.vaadin.flow.data.value.ValueChangeMode in project flow-components by vaadin.
the class ValueChangeModeButtonProvider method getValueChangeModeRadios.
public Component getValueChangeModeRadios() {
Div container = new Div();
RadioButtonGroup<ValueChangeMode> group = new RadioButtonGroup<>();
group.setItems(ValueChangeMode.values());
group.setValue(elementWithChangeMode.getValueChangeMode());
group.addValueChangeListener(event -> elementWithChangeMode.setValueChangeMode(event.getValue()));
container.add(group, getTimeoutInput());
return container;
}
Aggregations