Package org.eclipse.nebula.widgets.nattable.painter.cell

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter


            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, rowHeaderStyle,
                    DisplayMode.SELECT, GridRegion.ROW_HEADER);
        }

        ICellPainter rowHeaderCellPainter = getRowHeaderSelectionCellPainter();
        if (rowHeaderCellPainter != null) {
            // register column header cell painter in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, rowHeaderCellPainter,
                    DisplayMode.SELECT, GridRegion.ROW_HEADER);
        }

        IStyle fullSelectionRowHeaderStyle = getRowHeaderFullSelectionStyle();
        if (!isStyleEmpty(fullSelectionRowHeaderStyle)) {
            // register row header cell style in select mode when all cells in
            // the row are selected
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE,
                    fullSelectionRowHeaderStyle, DisplayMode.SELECT,
                    SelectionStyleLabels.ROW_FULLY_SELECTED_STYLE);
        }

        ICellPainter fullSelectionRowHeaderCellPainter = getRowHeaderFullSelectionCellPainter();
        if (fullSelectionRowHeaderCellPainter != null) {
            // register row header cell painter in select mode when all cells in
            // the row are selected
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
View Full Code Here


            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, cornerStyle,
                    DisplayMode.SELECT, GridRegion.CORNER);
        }

        ICellPainter cornerCellPainter = this.styleCornerLikeColumnHeader ? getColumnHeaderSelectionCellPainter()
                : getCornerSelectionCellPainter();
        if (cornerCellPainter != null) {
            // register corner cell painter in select mode
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, cornerCellPainter,
View Full Code Here

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, anchorStyle,
                    DisplayMode.NORMAL,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }
        ICellPainter anchorPainter = getSelectionAnchorCellPainter();
        if (anchorPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, anchorPainter,
                    DisplayMode.NORMAL,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }

        // Selection anchor style for select display mode
        IStyle selectionAnchorStyle = getSelectionAnchorSelectionStyle();
        if (!isStyleEmpty(selectionAnchorStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, selectionAnchorStyle,
                    DisplayMode.SELECT,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
        }
        ICellPainter selectionAnchorPainter = getSelectionAnchorSelectionCellPainter();
        if (selectionAnchorPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, selectionAnchorPainter,
                    DisplayMode.SELECT,
                    SelectionStyleLabels.SELECTION_ANCHOR_STYLE);
View Full Code Here

                    CellConfigAttributes.CELL_STYLE, evenStyle,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.EVEN_ROW_CONFIG_TYPE);
        }

        ICellPainter evenCellPainter = getEvenRowCellPainter();
        if (evenCellPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, evenCellPainter,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.EVEN_ROW_CONFIG_TYPE);
        }

        IStyle oddStyle = getOddRowStyle();
        if (!isStyleEmpty(oddStyle)) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, oddStyle,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.ODD_ROW_CONFIG_TYPE);
        }

        ICellPainter oddCellPainter = getOddRowCellPainter();
        if (oddCellPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, oddCellPainter,
                    DisplayMode.NORMAL,
                    AlternatingRowConfigLabelAccumulator.ODD_ROW_CONFIG_TYPE);
View Full Code Here

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, columnGroupHeaderStyle,
                    DisplayMode.NORMAL, GridRegion.COLUMN_GROUP_HEADER);
        }

        ICellPainter columnGroupHeaderCellPainter = getColumnGroupHeaderCellPainter();
        if (columnGroupHeaderCellPainter != null) {
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    columnGroupHeaderCellPainter, DisplayMode.NORMAL,
                    GridRegion.COLUMN_GROUP_HEADER);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter

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.