Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Select all children's checkboxes in a TreeTable

Víctor Gómez
7 years ago May 22, 2015 8:15am
Marko Grönroos
7 years ago May 22, 2015 10:11am

You can use getChildren() to get the collection of children's item IDs, over which you can iterate. I don't think you can access the generated checkboxes through the TreeTable's API. I'll assume that the checkboxes are not generated from the container properties. You could store references to them in a HashMap<Object,CheckBox> by using the item ID as the key; add the CheckBox references there in the column generator and remove them in a DetachListener added to each CheckBox.

Víctor Gómez
7 years ago May 27, 2015 2:36pm