]> gerrit.simantics Code Review - simantics/platform.git/blob
bcb8bba53a445da1172ffebca139e83bd6486ee5
[simantics/platform.git] /
1 package org.simantics.browsing.ui.nattable;\r
2 \r
3 import org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter;\r
4 import org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator;\r
5 import org.eclipse.nebula.widgets.nattable.style.theme.ModernNatTableThemeConfiguration;\r
6 import org.eclipse.nebula.widgets.nattable.util.GUIHelper;\r
7 \r
8 public class GENatTableThemeConfiguration extends ModernNatTableThemeConfiguration{\r
9         \r
10         public GENatTableThemeConfiguration(GETreeData treeData) {\r
11                 super();\r
12                 this.oddRowBgColor = GUIHelper.getColor(250, 250, 250);\r
13                 this.defaultCellPainter =\r
14                                 new GEStyler(treeData,\r
15                         new GEIconPainter(\r
16                                 new PaddingDecorator(\r
17                                         new TextPainter(),\r
18                                         0,\r
19                                         5,\r
20                                         0,\r
21                                         5,\r
22                                         false)));\r
23         }\r
24 \r
25 }\r