i’m coding some kind of objects browser, organized with folders. When user seslects some folder in the list i have to expand an appropriate node in a tree.
I’ve implemented tree expand, element selection in tree, BUT expand might happen at a part of tree that is out of visible area (CellTree is on a ScrollPane).
So, i do have an instace of TreeNode – how can i programmatically scroll to make it visible?
i’m coding some kind of objects browser, organized with folders. When user seslects some
Share
It’s not possible with the current API, but what you can try, and I haven’t tested this, but should be easy:
<input type="hidden" id="yourObjectId"/>SelectionModelwhen setting up your NodeInfo etc.yourSelectionModel.setSelected(object,true);. That should expand the tree and display your selected object.Pretty sure this should work just fine.