Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » cell border(cell border line appearing)
cell border [message #1772365] Fri, 08 September 2017 11:42 Go to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior Member
Hi,

Is it possible border line appeared only bottom of cell. Don't wanted other side. How can I do this
Re: cell border [message #1772370 is a reply to message #1772365] Fri, 08 September 2017 12:20 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
This can be done by using the CustomLineBorderDecorator and adding the configuration label CustomLineBorderDecorator#BOTTOM_LINE_BORDER_LABEL to the LabelStack of the cells you want to add the border.

Have a look at the CellPainterExample where the usage is shown in the 6th column (Money) to apply a border only on the right cell border.
Re: cell border [message #1772385 is a reply to message #1772370] Fri, 08 September 2017 13:34 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior Member
So sorry. My last question is not correct. My problem is about grid line. I want to appear only bottom grid line of cell. Is it possible?
Re: cell border [message #1772386 is a reply to message #1772370] Fri, 08 September 2017 13:35 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior Member
So sorry. My last question is not correct. My problem is about grid line. I want to appear only bottom grid line of cell. Is it possible?
Re: cell border [message #1772390 is a reply to message #1772386] Fri, 08 September 2017 13:43 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Not via default configuration IIRC. For this you could try to create a custom GridLineCellLayerPainter and use that instead of the default.
Re: cell border [message #1772392 is a reply to message #1772390] Fri, 08 September 2017 13:54 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior Member
Ok. I will create custom GridLineCellLayerPainter class. How can I set/configure to my nattable?
Re: cell border [message #1772463 is a reply to message #1772392] Mon, 11 September 2017 05:19 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
ILayer#setLayerPainter()

typically on the body DataLayer
Previous Topic:Custom ComboBoxCellEditor
Next Topic:Issue with ComboBoxCellEditor position
Goto Forum:
  


Current Time: Fri Apr 19 23:22:03 GMT 2024

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

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

Back to the top