Expand/Collapse Tree
5 posts
• Page 1 of 1
Expand/Collapse Tree
Hello,
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
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
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: Expand/Collapse Tree
Hi,
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.
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.
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: Expand/Collapse Tree
Hi,
I would like to come back to this unsolved question. Does the Tree object have Expand and Collapse methods that can be used from within the code?
It seems that expandig/collapsing a tree in VisionX/JVx is only implemented for clicking physically with the mouse on a node, but I need expanding/collapsing from within the code. As far as I can see the Vaadin and Swing objects do have the methods. How can I use them?
Regards,,
Luc
I would like to come back to this unsolved question. Does the Tree object have Expand and Collapse methods that can be used from within the code?
It seems that expandig/collapsing a tree in VisionX/JVx is only implemented for clicking physically with the mouse on a node, but I need expanding/collapsing from within the code. As far as I can see the Vaadin and Swing objects do have the methods. How can I use them?
Regards,,
Luc
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: Expand/Collapse Tree
The UI concept is documented very well: Resource and UI Resource.
This should explain how you can use the technology dependent object. But be careful to keep the technology independence!
This should explain how you can use the technology dependent object. But be careful to keep the technology independence!
- rjahn
- Posts: 41
- Joined: Sun Sep 13, 2009 1:54 pm
5 posts
• Page 1 of 1