Package org.eclipse.nebula.widgets.nattable.grid.layer.config

Examples of org.eclipse.nebula.widgets.nattable.grid.layer.config.DefaultRowStyleConfiguration


        natTableConfiguration.cellPainter = new PaddingDecorator(
                new TextPainter(), 1);

        // Setup even odd row colors - row colors override the NatTable default
        // colors
        DefaultRowStyleConfiguration rowStyleConfiguration = new DefaultRowStyleConfiguration();
        rowStyleConfiguration.oddRowBgColor = GUIHelper.getColor(254, 251, 243);
        rowStyleConfiguration.evenRowBgColor = GUIHelper.COLOR_WHITE;

        // Setup selection styling
        DefaultSelectionStyleConfiguration selectionStyle = new DefaultSelectionStyleConfiguration();
View Full Code Here


    /** Prevent the superclass from setting this */
    @Override
    protected void addAlternateRowColoringConfig(CompositeLayer gridLayer) {}

    private void alternateRowColorConfig(GridLayer gridLayer) {
        DefaultRowStyleConfiguration rowStyleConfig = new DefaultRowStyleConfiguration();
        rowStyleConfig.evenRowBgColor = properties.evenRowColor;
        rowStyleConfig.oddRowBgColor = properties.oddRowColor;
        addConfiguration(rowStyleConfig);

        gridLayer.setConfigLabelAccumulatorForRegion(GridRegion.BODY,
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.grid.layer.config.DefaultRowStyleConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.