Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » help to get all visible rows after tableviewer's viewerfilter changed?
help to get all visible rows after tableviewer's viewerfilter changed? [message #854823] Tue, 24 April 2012 09:06 Go to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Hi,
I want to get all rows to calculate the sum after the viewerfilter is changed, but how to do it?

Thank you

David
Re: help to get all visible rows after tableviewer's viewerfilter changed? [message #856004 is a reply to message #854823] Wed, 25 April 2012 09:29 Go to previous messageGo to next message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi,
I had the same problem. Solved it by subclassing TableViewer and overriding getFilteredChildren().


protected Object[] getFilteredChildren(Object parent) {
	            		Object[] filteredChildren = super.getFilteredChildren(parent);
	            		updateCounter(filteredChildren);
	            		return filteredChildren;
}


Most probably it's not the most sophisticated solution but it works.

Regards,
Thorsten
Re: help to get all visible rows after tableviewer's viewerfilter changed? [message #856093 is a reply to message #856004] Wed, 25 April 2012 11:10 Go to previous message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks Thorsten for your reply, it just does work。
Previous Topic:how to persist the tableviewer column size after adjusting?
Next Topic:I use a RAP application with an embedded server.
Goto Forum:
  


Current Time: Tue Apr 23 07:51:36 GMT 2024

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

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

Back to the top