April 2018
Intermediate to advanced
202 pages
4h 48m
English
The update CRUD operation is implemented through the Grid.Editor class. Enabling the editor is as easy as calling the following:
grid.getEditor().setEnabled(true);
However, the Editor needs a way to know what kind of input component to use for each column, and also where to get the values for these input components, and how to set the values back in the bean once the user edits them. This is done with the help of two methods: Grid.Editor.getBinder , and Grid.Column.setEditorBinding. You should be familiar with the Binder class in the Vaadin Framework; it is a utility class that allows you to connect setters and getters with input components, as well as validators, converters, and other configurations for ...
Read now
Unlock full access