Skip to main content



      Home
Home » Eclipse Projects » NatTable » GroupByDataLayer and TreeData
GroupByDataLayer and TreeData [message #1774925] Sat, 21 October 2017 04:11 Go to next message
Eclipse UserFriend
Hi,

treeData field is not accessible in GroupByDataLayer. Some metod of treeData defined with treeRowModel. (for instance GroupByDataLayer#getTreeRowModel()#getChildren(int parentIndex)) But we need List<T> getChildren(T object, boolean fullDepth) of treeData

Can be defined get method for treeData in GroupByDataLayer in TreeRowModel.
Re: GroupByDataLayer and TreeData [message #1774959 is a reply to message #1774925] Sun, 22 October 2017 13:48 Go to previous messageGo to next message
Eclipse UserFriend
First question: why do you need that information directly?
Second question: why don't you use GroupByDataLayer#getElementsInGroup(GroupByObject) or GroupByDataLayer#getItemsInGroup(GroupByObject) if you need that information?
Re: GroupByDataLayer and TreeData [message #1775047 is a reply to message #1774959] Tue, 24 October 2017 03:06 Go to previous messageGo to next message
Eclipse UserFriend
Before we are using tree format nattable. parent of node can be changed dynamically. When parent of node changed, the all child of node refreshed again to realize new parent. so that we are using getChildren(T object). I don't know, Is it good solution.

How can I update nattable when changed parent of node?
Re: GroupByDataLayer and TreeData [message #1775050 is a reply to message #1775047] Tue, 24 October 2017 04:02 Go to previous message
Eclipse UserFriend
That does not work with the GroupBy feature. The GroupBy feature creates the tree dynamically based on the groupBy criteria. Changing the parent wouldn't make any sense in this scenario, as you would break the grouping manually by some custom condition. In this case you should write your own tree implementation and not use the GroupBy functionality.
Previous Topic:groupBy nattable
Next Topic:Gap between grid lines and cells in HDPI environments with CSS & swt.autoScale
Goto Forum:
  


Current Time: Thu Jul 17 07:30:05 EDT 2025

Powered by FUDForum. Page generated in 0.06617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top