Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Issue with tree model(Tree does not collapse elements as it should)
Issue with tree model [message #1603613] Fri, 06 February 2015 09:23 Go to next message
Petrila Sergiu is currently offline Petrila SergiuFriend
Messages: 7
Registered: December 2014
Junior Member
Hello. I have a NatTable build with a custom tree data that works with a list of tree elements. Assuming that one of the elements are contained in two or more different parents, whenever i collapse one of those parents, the element is hidden only for the first parent( as the common child is reffered by the same index in the list). Any suggestions on how to make this work? Thank you!
Re: Issue with tree model [message #1603998 is a reply to message #1603613] Fri, 06 February 2015 15:09 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
Having the same child instance in several parents won't work.

The only thing that might work would be to implement equals and hashCode of your children to take the parent into account.
Re: Issue with tree model [message #1608474 is a reply to message #1603998] Mon, 09 February 2015 14:42 Go to previous message
Petrila Sergiu is currently offline Petrila SergiuFriend
Messages: 7
Registered: December 2014
Junior Member
That's a bummer. Well, thank you very much for your answer. And if everything else comes to mind, please let me know. Cheers!
Previous Topic:Understanding Nattable internal calls
Next Topic:How add a Cancel function for nattable search
Goto Forum:
  


Current Time: Thu Mar 04 10:43:30 GMT 2021

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

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

Back to the top