configRegistry.registerConfigAttribute(
CellConfigAttributes.RENDER_GRID_LINES, renderGridLines,
DisplayMode.NORMAL, GridRegion.CORNER);
// configure the normal style
Style cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
bgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
fgColor);
cellStyle.setAttributeValue(
CellStyleAttributes.GRADIENT_BACKGROUND_COLOR, gradientBgColor);
cellStyle.setAttributeValue(
CellStyleAttributes.GRADIENT_FOREGROUND_COLOR, gradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
hAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
vAlign);
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
borderStyle);
cellStyle.setAttributeValue(CellStyleAttributes.FONT, font);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
cellStyle, DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
cellStyle, DisplayMode.NORMAL, GridRegion.CORNER);