Package org.eclipse.nebula.widgets.nattable.style

Examples of org.eclipse.nebula.widgets.nattable.style.Style


                CHECK_BOX_EDITOR_CONFIG_LABEL, CHECK_BOX_CONFIG_LABEL);
    }

    private static void registerSecurityDescriptionCellStyle(
            IConfigRegistry configRegistry) {
        Style cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                HorizontalAlignmentEnum.LEFT);
        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                cellStyle, DisplayMode.NORMAL,
                ALIGN_CELL_CONTENTS_LEFT_CONFIG_LABEL);
    }
View Full Code Here


                cellStyle, DisplayMode.NORMAL,
                ALIGN_CELL_CONTENTS_LEFT_CONFIG_LABEL);
    }

    private static void registerPricingCellStyle(IConfigRegistry configRegistry) {
        Style cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                HorizontalAlignmentEnum.RIGHT);
        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                cellStyle, DisplayMode.NORMAL,
                ALIGN_CELL_CONTENTS_RIGHT_CONFIG_LABEL);
    }
View Full Code Here

        return this.defaultHoverSelectionCellPainter;
    }

    @Override
    protected IStyle getBodyHoverSelectionStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                bodyHoverSelectionBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                bodyHoverSelectionFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                bodyHoverSelectionGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                bodyHoverSelectionGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                bodyHoverSelectionHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                bodyHoverSelectionVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                bodyHoverSelectionFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                bodyHoverSelectionImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                bodyHoverSelectionBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                bodyHoverSelectionPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                bodyHoverSelectionTextDecoration);
        return cellStyle;
    }
View Full Code Here

        return this.bodyHoverSelectionCellPainter;
    }

    @Override
    protected IStyle getColumnHeaderHoverSelectionStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                cHeaderHoverSelectionBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                cHeaderHoverSelectionFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                cHeaderHoverSelectionGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                cHeaderHoverSelectionGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                cHeaderHoverSelectionHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                cHeaderHoverSelectionVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                cHeaderHoverSelectionFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                cHeaderHoverSelectionImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                cHeaderHoverSelectionBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                cHeaderHoverSelectionPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                cHeaderHoverSelectionTextDecoration);
        return cellStyle;
    }
View Full Code Here

                    DisplayMode.SELECT, GridRegion.COLUMN_HEADER);
        }

        private void registerColumnTwoTextPainterStyle(
                IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                    new BorderStyle(2, GUIHelper.COLOR_BLUE,
                            LineStyleEnum.DASHDOT));

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
View Full Code Here

                    _4222_CellPainterExample.COLUMN_TWO_LABEL);
        }

        private void registerColumnThreePasswordPainter(
                IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(
                    CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                    GUIHelper.COLOR_WHITE);
            style.setAttributeValue(
                    CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                    GUIHelper.COLOR_RED);

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
View Full Code Here

                            false, false)), DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_THREE_LABEL);
        }

        private void registerColumnFourPainter(IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                    HorizontalAlignmentEnum.LEFT);
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_FOUR_LABEL);
View Full Code Here

        return this.cHeaderHoverSelectionCellPainter;
    }

    @Override
    protected IStyle getRowHeaderHoverSelectionStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                rHeaderHoverSelectionBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                rHeaderHoverSelectionFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                rHeaderHoverSelectionGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                rHeaderHoverSelectionGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                rHeaderHoverSelectionHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                rHeaderHoverSelectionVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                rHeaderHoverSelectionFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                rHeaderHoverSelectionImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                rHeaderHoverSelectionBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                rHeaderHoverSelectionPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                rHeaderHoverSelectionTextDecoration);
        return cellStyle;
    }
View Full Code Here

                            false, true), true), DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_FOUR_LABEL);
        }

        private void registerColumnFivePainter(IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                    HorizontalAlignmentEnum.RIGHT);
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_FIVE_LABEL);
View Full Code Here

                    _4222_CellPainterExample.COLUMN_FIVE_LABEL);
        }

        private void registerColumnSixDoublePainter(
                IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                    HorizontalAlignmentEnum.RIGHT);
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_SIX_LABEL);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.style.Style

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.