Skip to main content



      Home
Home » Eclipse Projects » NatTable » Get Painted Cells
Get Painted Cells [message #1414813] Mon, 01 September 2014 06:50 Go to next message
Eclipse UserFriend
Hello,

I want to merge Cells, if two cells among each other have the same content.

To do that, I implemented a SpannningDataProvider and override the getCellByPostion methode.
Without scrolling, all works fine.

But when the user scrolls the table, I have to know if the current cell is in the first row or not.
My problem now is, that the rowPosition in the SpanningDataProvider refers to the DataLayer. So, if I scroll to Row 6, I only get the rowPosition 6. I do not know if this is the first painted row.

My question is how can I get the Position of the first painted row in the Table?
I thought I have to use the viewportLayer, but it did not work.

Regards Fabian
Re: Get Painted Cells [message #1414967 is a reply to message #1414813] Mon, 01 September 2014 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Use the AutomaticDataSpanningProvider which does exactly what you request.
Re: Get Painted Cells [message #1415128 is a reply to message #1414967] Tue, 02 September 2014 02:41 Go to previous message
Eclipse UserFriend
thanks for your help. Now it works all fine.
Previous Topic:Row selection Slow down in case of large data in NatTable
Goto Forum:
  


Current Time: Thu Jul 03 03:24:38 EDT 2025

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

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

Back to the top