not able to combine Text Painter and TreeCheckBoxPainter in a cell which spans multiple rows [message #989741] |
Fri, 07 December 2012 13:38 |
karishma Agarwal Messages: 28 Registered: June 2011 |
Junior Member |
|
|
Hello,
Actually I have created a Nattable which is based on Tree structure and has cells which are spanning rows. I want to attach a combined painter(Text Painter and TreeCheckBoxPainter) to that spanning cell. I am not able to achieve this.I am doing this for combining the painters.
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER,
new BackgroundPainter(
new CellPainterDecorator(
new TextPainter() {
@Override
protected String convertDataType(ILayerCell cell, IConfigRegistry configRegistry) {
//Datum dataValue = (Datum) cell.getDataValue();
return "Blackberry 5.0 and above";
}
},
CellEdgeEnum.BOTTOM,
serverSideBB5CheckBoxPainter
)
),
DisplayMode.NORMAL,
BuildTreeLayer.BB_5_SPA_LABEL
);
and I have created a DataProvider which implements ISpanningDataProvider and extends GlazedListDataProvider and I have overridden the getCellByPosition() method.Only the CheckBox is getting painted. The Text is not getting painted. Am I missing something else to achieve this??
Thanks,
Karishma Agarwal
[Updated on: Fri, 07 December 2012 13:40] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02591 seconds