Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Get Painted Cells
Get Painted Cells [message #1414813] Mon, 01 September 2014 10:50 Go to next message
Fabian Greiser is currently offline Fabian GreiserFriend
Messages: 7
Registered: September 2014
Junior Member
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 18:51 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
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 06:41 Go to previous message
Fabian Greiser is currently offline Fabian GreiserFriend
Messages: 7
Registered: September 2014
Junior Member
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: Tue Apr 23 12:17:43 GMT 2024

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

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

Back to the top