* @param configRegistry
* The IConfigRegistry that is used by the NatTable instance to
* which the style configuration should be applied to.
*/
protected void configureTreeStyle(IConfigRegistry configRegistry) {
IStyle treeStyle = getTreeStyle();
if (!isStyleEmpty(treeStyle)) {
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_STYLE, treeStyle,
DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);
}
ICellPainter cellPainter = getTreeCellPainter();
if (cellPainter != null) {
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, cellPainter,
DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);
}
IStyle treeSelectionStyle = getTreeSelectionStyle();
if (!isStyleEmpty(treeSelectionStyle)) {
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_STYLE, treeSelectionStyle,
DisplayMode.SELECT, TreeLayer.TREE_COLUMN_CELL);
}