Skip to main content



      Home
Home » Eclipse Projects » NatTable » Custom GridLineCellLayerPainter issue with RowReorderLayer
Custom GridLineCellLayerPainter issue with RowReorderLayer [message #1852608] Thu, 26 May 2022 16:16 Go to next message
Eclipse UserFriend
Hello,

We use spanning, and we have implemented a custom GridLineCellLayerPainter which paints thicker horizontal grid lines on cells that are on the border of a top level spanning row.

The very last row of the table does not really have a thicker lower border, I think because the NatTable ends and the layer painter can not paint past it. This has been fine up until now, however:

We are currently trying to include a RowReorderLayer in our stack.

We have come into an issue where when we move the last row of the table, the lower edge of it does not get painted thicker even if it is no longer at the end of the table.

Do you know why this might be and how we would fix it?

I've attached two pictures to describe what's happening. The file lastRow shows how it looks when the bottom row is the true last row, and lastRowMoved shows what it looks like when I've move the bottom row up one row.

Thanks,

Louis
Re: Custom GridLineCellLayerPainter issue with RowReorderLayer [message #1852648 is a reply to message #1852608] Mon, 30 May 2022 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Well, first I think your assumption regarding the grid line width at the end of the NatTable is not correct. It should paint the grid line at the bottom correctly. At least it does with the default GridLineCellLayerPainter if you increase the border width for example with this snippet:

natTable.getConfigRegistry().registerConfigAttribute(CellConfigAttributes.GRID_LINE_WIDTH, 4);


Given the behaviour you describe and my assumption that you have some code in your custom GridLineCellLayerPainter to determine whether a thicker grid line should be painted or not, IMHO there is an issue in your algorithm regarding the last line. But as I do not know your code, I can't say anything more.
Re: Custom GridLineCellLayerPainter issue with RowReorderLayer [message #1852896 is a reply to message #1852648] Thu, 09 June 2022 17:55 Go to previous message
Eclipse UserFriend
Alright thanks, I'll have a closer look at our custom code.
Previous Topic:RichTextPainter with subscript and superscript
Next Topic:FreezeColumn Nattable 2.0.2 not working
Goto Forum:
  


Current Time: Tue May 20 22:47:03 EDT 2025

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

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

Back to the top