alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
86 stars 54 forks source link

Support TreeGrid #63

Closed jflamy-dev closed 4 years ago

jflamy-dev commented 4 years ago

Currently it is impossible to do

        crud.setCrudListener(new LazyCrudListener<TeamTreeItem>() {
            @Override
            public DataProvider<TeamTreeItem, Void> getDataProvider() {
                return new TreeDataProvider<TeamTreeItem>(tbd);
            }

because of the Void generic. Alternately, supporting the TreeGrid setItems method with the parent/child relationship would work.

alejandro-du commented 4 years ago

Thanks for reporting (and fixing, I guess?) https://github.com/alejandro-du/crudui/pull/64. Version 4.2.0 will fix the problem.