|
|
|
|
|
|
|
|
Re: Having problems to add sorting functionality [message #1448742 is a reply to message #1448728] |
Mon, 20 October 2014 11:28 |
Kai Mechel Messages: 6 Registered: July 2009 |
Junior Member |
|
|
I think I have to provide a small runnable example to show my problem, because it's not possible to reproduce it as requested in the previous posting, by using one of the examples that contain a 'DisplayPersistenceDialogCommandHandler'.
I tried to reproduce my problem with one of the sample apps in the NatTable Web Start Application. But since the examples don't seem to save the user configured state in the myState.properties file, that's not possible.
In my application, we use GlazedLists and save the NatTable's Properties to a file (which then contains the user entries with 'PREFIX.key=value' in addition to the '.key=value' default entries) , which we load when the applications starts again the next time. The loading of our previousley saved files, seems to break the sorting after we load them (loadState).
I'll get back as soon as I have a small standalone example class, which reproduces our problem.
[Updated on: Mon, 20 October 2014 11:29] Report message to a moderator
|
|
|
|
Re: Having problems to add sorting functionality [message #1449465 is a reply to message #1448765] |
Tue, 21 October 2014 11:58 |
Kai Mechel Messages: 6 Registered: July 2009 |
Junior Member |
|
|
That's it... a call to loadState() after configure() is working!
I was already adding the DisplayPersistenceDialogCommandHandler after configure(), because I read a comment somewhere in the examples...
... but I thought I have to load the state before the call to configure(), so that configure() can use theses infos. It did not come to my mind to move this call after configure. I was trying many other things, that seemed suspicous to me.
Thank you! Problem solved
[Updated on: Wed, 22 October 2014 05:55] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04848 seconds