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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
focus one item in a tree
Hi.
Sorry for my english.
I need help for handle a tree:
how i do for have to focus one item in a tree without starting the associated behaviour (valueChange)?
The tree.setValue(...) and tree.select(...) methods call the valueChange(ValueChangeEvent event) method. There is a method that does not?
No not really. A value change causes always a ValueChangeEvent. There are some workarounds that you can do to go around this. you could call removeListener() before select() and addListener after it. Another option is to add a boolean field in your class and do update = false; setValue(object); update=true;, and in the value change listener's code you would put all the code into a if(update) { ... } -clause.
Ok. Thank you for options. I think the second option to implement or change the listener with a ItemClickListener