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

Enable use of TreeGrid using HierarchicalDataProvider #64

Closed jflamy closed 4 years ago

jflamy commented 4 years ago

Generic is bound to Void, which prevents use of TreeDataProvider as in the following -- which works fine with the proposed one-character fix.

        crudGrid.setCrudListener(new LazyCrudListener<TeamTreeItem>() {
            @Override
            public DataProvider<TeamTreeItem, ?> getDataProvider() {
                return new TreeDataProvider<TeamTreeItem>(new TeamTreeData());
            }
        });
jflamy commented 4 years ago

Only the March 15 commit is relevant (one line change) the other commits are me catching up with your code base. I have not yet mastered the art of creating clean requests I'm afraid.

alejandro-du commented 4 years ago

Awesome! I'll include the fix in the next release. Thanks a lot!