Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Custom IConfigLabelAccumulator gets same row positions even after scrolling the table
Custom IConfigLabelAccumulator gets same row positions even after scrolling the table [message #1011020] Mon, 18 February 2013 17:25 Go to next message
Arye Shemesh is currently offline Arye Shemesh
Messages: 17
Registered: November 2012
Junior Member
Hello,

I've added a custom IConfigLabelAccumulator to my row header layer. This accumulator calculates if the row values are valid, and sets a label accordingly.

When I use it in a table that some of its line are not visible (due to large number of rows), I see that the rows that are sent to my accumulator are only the visible ones. OK so far.

However, when I scroll down the table, my accumulator keeps getting the rows that were visible at first, and not the currently visible rows. The table itself is painted perfectly with all the newly visible values and headers.

Does anyone has an idea what's going on?

Thanks,
Arye
Re: Custom IConfigLabelAccumulator gets same row positions even after scrolling the table [message #1011251 is a reply to message #1011020] Tue, 19 February 2013 07:22 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1301
Registered: July 2012
Senior Member
Usually this is an issue regarding how you determine the row index/position within your IConfigLabelAccumulator. You should be aware of the difference between index and position in NatTable and that you might need to transform the row position that comes into your method to the index of the row in the DataLayer.
Re: Custom IConfigLabelAccumulator gets same row positions even after scrolling the table [message #1011256 is a reply to message #1011251] Tue, 19 February 2013 07:29 Go to previous message
Arye Shemesh is currently offline Arye Shemesh
Messages: 17
Registered: November 2012
Junior Member
Thanks Dirk, I used rowHeaderLayer.getRowIndexByPosition(rowPosition) and it worked perfectly!
Previous Topic:realizable row header width
Next Topic:merging from sf to nebula release w glazedlists
Goto Forum:
  


Current Time: Thu Oct 02 04:47:19 GMT 2014

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

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