Cell Text Formatting in Nattable [message #1709254] |
Fri, 25 September 2015 07:19  |
Eclipse User |
|
|
|
Hi,
I am using CustomLineBorderDecorator with Textpainter for Cells of some Columns to draw line either to left side or top of the Cell in Nattable,
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new CustomLineBorderDecorator(new TextPainter(), new BorderStyle(1, GUIHelper.COLOR_BLUE,
LineStyleEnum.SOLID)),DisplayMode.NORMAL);
Now the text of cells of one of these Columns whose rows are spanned i have to format like below :
First Line Of Cell
Second Line of Cell
Third Line of Cell
How it can be done ??
I found RichTextCellPainter from latest Nattable SNAPSHOT.
But When I applied it I got two Problems:
- spanned cell border is appearing, and
-after mouse click text of the cell is disappearing
What should I do to fix this and How RichTextCellPainter be used to get above Format???
|
|
|
|
Re: Cell Text Formatting in Nattable [message #1709412 is a reply to message #1709260] |
Mon, 28 September 2015 05:48   |
Eclipse User |
|
|
|
Hi,
I have attached image showing above Problems
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER,
new CustomLineBorderDecorator(new TextPainter(), new BorderStyle(1, GUIHelper.COLOR_BLUE,
LineStyleEnum.SOLID)),
DisplayMode.NORMAL);
(First Column has Labels LEFT_LINE_BORDER_LABEL and TOP_LINE_BORDER_LABEL as well to get Borders)
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER,
new CustomLineBorderDecorator(new RichTextCellPainter(true), new BorderStyle(1, GUIHelper.COLOR_BLUE,
LineStyleEnum.SOLID)),
DisplayMode.NORMAL, firstColumn);
where do I find This " _424_NebulaRichTextIntegrationExample" ??
Attachment: totest.png
(Size: 10.69KB, Downloaded 268 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06506 seconds