|
|
Re: Can I add an icon in RowHeader in NatTable ? [message #1728024 is a reply to message #1727595] |
Wed, 30 March 2016 10:43 |
Luke Chen Messages: 10 Registered: March 2016 |
Junior Member |
|
|
I had found I can add icon in ThemeConfiguration (extends DefaultNatTableThemeConfiguration), like this
// row header styling
this.rHeaderFont = selectedRowFont;
this.rHeaderCellPainter = new CellPainterDecorator(new TextPainter(),
CellEdgeEnum.RIGHT,
new ImagePainter(SWTUtils.getImage(Constants.ICON_ADD)));
this.rHeaderSelectionCellPainter = new CellPainterDecorator(new TextPainter(),
CellEdgeEnum.RIGHT,
new ImagePainter(SWTUtils.getImage(Constants.ICON_ADD)));
this.rHeaderFullSelectionCellPainter = new CellPainterDecorator(new TextPainter(),
CellEdgeEnum.RIGHT,
new ImagePainter(SWTUtils.getImage(Constants.ICON_ADD)));
then all rows header has same icon, while, my questions is can I add different icon in assigned rows and how ?
Thanks,
Luke Chen
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03668 seconds