use of org.eclipse.nebula.widgets.nattable.grid.cell.AlternatingRowConfigLabelAccumulator in project nebula.widgets.nattable by eclipse.
the class TickUpdateCommandHandlerTest method registerCellStyleAccumulators.
private void registerCellStyleAccumulators(DataLayer bodyDataLayer) {
AggregateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregateConfigLabelAccumulator();
this.columnLabelAccumulator = new ColumnOverrideLabelAccumulator(new DataLayerFixture());
aggregrateConfigLabelAccumulator.add(this.columnLabelAccumulator, new AlternatingRowConfigLabelAccumulator());
bodyDataLayer.setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);
}
use of org.eclipse.nebula.widgets.nattable.grid.cell.AlternatingRowConfigLabelAccumulator in project nebula.widgets.nattable by eclipse.
the class GridLayerConfiguration method alternateRowColorConfig.
private void alternateRowColorConfig(GridLayer gridLayer) {
DefaultRowStyleConfiguration rowStyleConfig = new DefaultRowStyleConfiguration();
rowStyleConfig.evenRowBgColor = properties.evenRowColor;
rowStyleConfig.oddRowBgColor = properties.oddRowColor;
addConfiguration(rowStyleConfig);
gridLayer.setConfigLabelAccumulatorForRegion(GridRegion.BODY, new AlternatingRowConfigLabelAccumulator());
}
use of org.eclipse.nebula.widgets.nattable.grid.cell.AlternatingRowConfigLabelAccumulator in project nebula.widgets.nattable by eclipse.
the class ColumnReorderLayerTest method registerCellStyleAccumulators.
private void registerCellStyleAccumulators(DataLayer bodyDataLayer, ColumnOverrideLabelAccumulator columnLabelAccumulator) {
AggregateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregateConfigLabelAccumulator();
aggregrateConfigLabelAccumulator.add(columnLabelAccumulator, new AlternatingRowConfigLabelAccumulator());
bodyDataLayer.setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);
}
use of org.eclipse.nebula.widgets.nattable.grid.cell.AlternatingRowConfigLabelAccumulator in project nebula.widgets.nattable by eclipse.
the class DefaultGridLayerConfiguration method addAlternateRowColoringConfig.
protected void addAlternateRowColoringConfig(CompositeLayer gridLayer) {
addConfiguration(new DefaultRowStyleConfiguration());
gridLayer.setConfigLabelAccumulatorForRegion(GridRegion.BODY, new AlternatingRowConfigLabelAccumulator(gridLayer.getChildLayerByRegionName(GridRegion.BODY)));
}
Aggregations