Skip to main content



      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 12:25 Go to next message
Eclipse UserFriend
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 02:22 Go to previous messageGo to next message
Eclipse UserFriend
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 02:29 Go to previous message
Eclipse UserFriend
Thanks Dirk, I used rowHeaderLayer.getRowIndexByPosition(rowPosition) and it worked perfectly!
Previous Topic:merging from sf to nebula release w glazedlists
Next Topic:How to...
Goto Forum:
  


Current Time: Tue Jul 22 19:17:36 EDT 2025

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

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

Back to the top