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

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


     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureGroupByStyle(IConfigRegistry configRegistry) {
        IStyle groupByStyle = getGroupByStyle();
        if (!ThemeConfiguration.isStyleEmpty(groupByStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, groupByStyle,
                    DisplayMode.NORMAL, GroupByHeaderLayer.GROUP_BY_REGION);
        }
View Full Code Here


     *
     * @return The {@link IStyle} that should be used to render the GroupBy
     *         region in a NatTable.
     */
    protected IStyle getGroupByStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                groupByBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                groupByFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                groupByGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                groupByGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                groupByHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                groupByVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT, groupByFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE, groupByImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                groupByBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                groupByPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                groupByTextDecoration);
        return cellStyle;
    }
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureGroupByObjectStyle(IConfigRegistry configRegistry) {
        IStyle groupByObjectStyle = getGroupByObjectStyle();
        if (!ThemeConfiguration.isStyleEmpty(groupByObjectStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, groupByObjectStyle,
                    DisplayMode.NORMAL, GroupByDataLayer.GROUP_BY_OBJECT);
        }
View Full Code Here

     *
     * @return The {@link IStyle} that should be used to render the GroupBy
     *         object rows in a NatTable.
     */
    protected IStyle getGroupByObjectStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                groupByObjectBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                groupByObjectFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                groupByObjectGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                groupByObjectGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                groupByObjectHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                groupByObjectVAlign);
        cellStyle
                .setAttributeValue(CellStyleAttributes.FONT, groupByObjectFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                groupByObjectImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                groupByObjectBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                groupByObjectPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                groupByObjectTextDecoration);
        return cellStyle;
    }
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureGroupByObjectSelectionStyle(
            IConfigRegistry configRegistry) {
        IStyle groupByObjectStyle = getGroupByObjectSelectionStyle();
        if (!ThemeConfiguration.isStyleEmpty(groupByObjectStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, groupByObjectStyle,
                    DisplayMode.SELECT, GroupByDataLayer.GROUP_BY_OBJECT);
        }
View Full Code Here

     *
     * @return The {@link IStyle} that should be used to render the selected
     *         GroupBy object rows in a NatTable.
     */
    protected IStyle getGroupByObjectSelectionStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                groupByObjectSelectionBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                groupByObjectSelectionFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                groupByObjectSelectionGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                groupByObjectSelectionGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                groupByObjectSelectionHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                groupByObjectSelectionVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                groupByObjectSelectionFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                groupByObjectSelectionImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                groupByObjectSelectionBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                groupByObjectSelectionPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                groupByObjectSelectionTextDecoration);
        return cellStyle;
    }
View Full Code Here

     * @param configRegistry
     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureGroupBySummaryStyle(IConfigRegistry configRegistry) {
        IStyle groupBySummaryStyle = getGroupBySummaryStyle();
        if (!ThemeConfiguration.isStyleEmpty(groupBySummaryStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, groupBySummaryStyle,
                    DisplayMode.NORMAL, GroupByDataLayer.GROUP_BY_SUMMARY);
        }
View Full Code Here

     *
     * @return The {@link IStyle} that should be used to render the GroupBy
     *         summary row cells in a NatTable.
     */
    protected IStyle getGroupBySummaryStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                groupBySummaryBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                groupBySummaryFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                groupBySummaryGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                groupBySummaryGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                groupBySummaryHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                groupBySummaryVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                groupBySummaryFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                groupBySummaryImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                groupBySummaryBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                groupBySummaryPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                groupBySummaryTextDecoration);
        return cellStyle;
    }
View Full Code Here

     *            The IConfigRegistry that is used by the NatTable instance to
     *            which the style configuration should be applied to.
     */
    protected void configureGroupBySummarySelectionStyle(
            IConfigRegistry configRegistry) {
        IStyle groupBySummaryStyle = getGroupBySummarySelectionStyle();
        if (!ThemeConfiguration.isStyleEmpty(groupBySummaryStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, groupBySummaryStyle,
                    DisplayMode.SELECT, GroupByDataLayer.GROUP_BY_SUMMARY);
        }
View Full Code Here

     *
     * @return The {@link IStyle} that should be used to render the selected
     *         GroupBy summary row cells in a NatTable.
     */
    protected IStyle getGroupBySummarySelectionStyle() {
        IStyle cellStyle = new Style();
        cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
                groupBySummarySelectionBgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
                groupBySummarySelectionFgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
                groupBySummarySelectionGradientBgColor);
        cellStyle.setAttributeValue(
                CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
                groupBySummarySelectionGradientFgColor);
        cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
                groupBySummarySelectionHAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
                groupBySummarySelectionVAlign);
        cellStyle.setAttributeValue(CellStyleAttributes.FONT,
                groupBySummarySelectionFont);
        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                groupBySummarySelectionImage);
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                groupBySummarySelectionBorderStyle);
        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                groupBySummarySelectionPWEchoChar);
        cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
                groupBySummarySelectionTextDecoration);
        return cellStyle;
    }
View Full Code Here

TOP

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

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.