Skip to main content



      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 05:06 Go to next message
Eclipse UserFriend
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 05:29 Go to previous messageGo to next message
Eclipse UserFriend
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 07:10 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 10:43:59 EDT 2025

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

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

Back to the top