Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » GroupByDataLayer and TreeData
GroupByDataLayer and TreeData [message #1774925] Sat, 21 October 2017 08:11 Go to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 157
Registered: July 2009
Senior Member
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 17:48 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
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 07:06 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 157
Registered: July 2009
Senior Member
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 08:02 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
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: Tue Sep 25 01:49:37 GMT 2018

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

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

Back to the top