April 2018
Intermediate to advanced
202 pages
4h 48m
English
Thanks to its open source nature, there are hundreds of third-party components and utilities published available at: https://vaadin.com/directory. One of them does almost all the work we have done in this chapter. The following class shows how to implement a CRUD user interface using the Crud UI add-on available at https://vaadin.com/directory/component/crud-ui-add-on, which is maintained by the author of this book:
public class CrudAddOn extends Composite { private GridCrud<User> crud = new GridCrud<>(User.class, new HorizontalSplitCrudLayout()); public CrudAddOn() { initLayout(); initBehavior(); } private void initLayout() { crud.getGrid().setColumns("firstName", "lastName", "email", "mainRole"); crud.getCrudFormFactory().setVisibleProperties ...
Read now
Unlock full access