Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Retreive the resulting POJO list after filtering the nattable
Retreive the resulting POJO list after filtering the nattable [message #1235844] Sat, 25 January 2014 12:51 Go to next message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 30
Registered: December 2013
Member
Hello,

I am wondering how can i get the resulting POJO list afetr filtering the nattable ?

For doing that now, i must select all the row list but it isn't the bust solution for very large data set.

best regards.
Re: Retreive the resulting POJO list after filtering the nattable [message #1235921 is a reply to message #1235844] Sat, 25 January 2014 17:45 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1434
Registered: July 2012
Senior Member
Sorry but I don't understand what you mean. If you are using Glazed lists extension you only need to access the FilterList after filtering. You can think of the FilterList as a filtered view of the underlying list.
Re: Retreive the resulting POJO list after filtering the nattable [message #1235987 is a reply to message #1235921] Sat, 25 January 2014 22:29 Go to previous messageGo to next message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 30
Registered: December 2013
Member
Thank you for the orientation. You have understood my question. After reading the FilterList java doc, i've found a way to retrieve the data set that much the filter row values by iterate over the filterlist object.

filterList.iterator()

Re: Retreive the resulting POJO list after filtering the nattable [message #1236108 is a reply to message #1235987] Sun, 26 January 2014 08:05 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1434
Registered: July 2012
Senior Member
OK. Smile

In that case you are able to operate on the FilterList instance as with any other list. You can use the iterator, forEach or an index based for loop. This is because Glazed lists implement the List interface.
icon12.gif  Re: Retreive the resulting POJO list after filtering the nattable [message #1236131 is a reply to message #1236108] Sun, 26 January 2014 09:48 Go to previous message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 30
Registered: December 2013
Member
Thank you Wink , with your response, i'll use directally the filter list instance without instantiate a new instance of an ArayList
Previous Topic:resize row header width
Next Topic:Mouse Event handling problem
Goto Forum:
  


Current Time: Mon Dec 22 19:55:58 GMT 2014

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

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