Custom order of nodes in NatTable tree [message #1088640] |
Sat, 17 August 2013 11:40 |
|
Hey,
I am using NatTable tree. I want to implement custom ordering of nodes. We have requirement to allow the user to move any node up and down.
It seems to me, we need to implement TreeList.Format<Node>#getComparator(int depth). But I couldn't find proper documentation to provide its custom implementation.
Can you please provide me some information about custom ordering in NatTable tree using glazedlists TreeList?
I would appreciate your support.
Regards,
Omer Gillani
|
|
|
|
|
|
|
|
|
Re: Custom order of nodes in NatTable tree [message #1095197 is a reply to message #1095086] |
Mon, 26 August 2013 19:29 |
Ali Malik Messages: 27 Registered: August 2013 |
Junior Member |
|
|
Hi Dirk,
I know the basics, but I have always known the Comparator to return -1, 0 or 1.
I was debugging an example, SortableGridExample, and found out that the return values were somewhere 2, -53 etc.
So I asked this question to know if these numbers are used in some manner to manage the sorting.
But from your reply I guess these numbers aren't important, the number being negative, zero or positive is important only.
I am quite close to the solution now, will keep you posted.
Thanks,
Ali Ahmad Malik
|
|
|
Powered by
FUDForum. Page generated in 0.02768 seconds