vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

When populating a Tree or a TreeGrid, I want to be able to construct the data without accessing TreeData for simplicity #9374

Open hesara opened 7 years ago

hesara commented 7 years ago

Provide API on Tree/TreeGrid level for easily constructing in-memory content.

Based on feedback from @mstahv .

Legioth commented 7 years ago

Constructing data is already doable through setItems(Collection<T> rootItems, ValueProvider<T, Collection<T>> childItemProvider).

Was this ticket based on the discussion about being able to also modify the data directly through e.g. TreeGrid instead of doing getTreeData()?

hesara commented 7 years ago

Yes, I believe the idea was to be able to construct or manipulate data through an API on the component itself. This approach has some issues as the API cannot apply to all instances with an arbitrary DataProvider, so I guess the setItems() mentioned by Leif (already implemented) is the best we can do right now.

stale[bot] commented 6 years ago

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!