How to filter out the Tree Nodes (grandchildren level) from tree viewer using View filter in SWT.I want to filter out the grand children node from the treeviewer.
如何使用SWT中的View过滤器从树查看器中过滤掉树节点(孙子级别)。我想从树形视图中过滤出来的子节点。
2 个解决方案
#1
0
You just can filter your items in Container.
您只需过滤Container中的项目即可。
ArrayList<Nodes> nodeList;
Then add container to treeView;
然后将容器添加到treeView;
#2
0
The Logic would be filter children in ContentProvider for the tree view
Logic将在ContentProvider中过滤子视图中的子视图
#1
0
You just can filter your items in Container.
您只需过滤Container中的项目即可。
ArrayList<Nodes> nodeList;
Then add container to treeView;
然后将容器添加到treeView;
#2
0
The Logic would be filter children in ContentProvider for the tree view
Logic将在ContentProvider中过滤子视图中的子视图