This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Expand/Collapse Tree

Frequently asked questions about VisionX.

Expand/Collapse Tree

Postby lucdep » Mon Dec 03, 2018 8:14 pm


Is there a method to expand/collapse a tree structure or part of a tree structure (eg down the selected node)?

Thanks for your help.

Luc Depuydt
Posts: 14
Joined: Wed Oct 10, 2018 12:01 pm

Re: Expand/Collapse Tree

Postby Support@SIB » Tue Dec 04, 2018 1:16 pm

Do you have a self-joined tree?

You could use, e.g:

Syntax: [ Download ] [ Hide ]
Object oSearch = rowSearch.getValue("PROGRAM");

                                new Equals("PROGRAM", oSearch).or(
                                    new Equals("PROGRAMNUMBER", oSearch)))
User avatar
Posts: 257
Joined: Mon Sep 28, 2009 1:56 pm

Re: Expand/Collapse Tree

Postby lucdep » Tue Dec 04, 2018 4:59 pm


Yes, I have a self joined table and filling the tree goes fine.
My problem is when I populate the tree component, the data tree is completely collapsed to the root. I would like to have a button with which the user can expand or open the tree completely to the last child, instead of having to click all the nodes one by one now. I know Windows tree object have such a method that can be invoked, but it is not clear if Swing/Vaadin components support this as well.
Posts: 14
Joined: Wed Oct 10, 2018 12:01 pm

Return to VisionX