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

Examples of org.eclipse.nebula.widgets.nattable.sort.painter.SortableHeaderTextPainter


                configRegistry
                        .registerConfigAttribute(
                                CellConfigAttributes.CELL_PAINTER,
                                new BeveledBorderDecorator(
                                        new CellPainterDecorator(
                                                new SortableHeaderTextPainter(),
                                                CellEdgeEnum.LEFT,
                                                columnHeaderCheckBoxPainter)),
                                DisplayMode.NORMAL,
                                ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 0);
View Full Code Here


        if (ObjectUtils.isNotNull(selectedBgImage)) {
            TextPainter txtPainter = new TextPainter(false, false);
            ICellPainter selectedCellPainter = new BackgroundImagePainter(
                    txtPainter, selectedBgImage, GUIHelper.getColor(192, 192,
                            192));
            sortHeaderPainter = new SortableHeaderTextPainter(
                    selectedCellPainter, false, false);
        } else {
            sortHeaderPainter = new SortableHeaderTextPainter(
                    new BeveledBorderDecorator(new TextPainter()), false, false);
        }

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
View Full Code Here

        if (ObjectUtils.isNotNull(bgImage)) {
            TextPainter txtPainter = new TextPainter(false, false);
            ICellPainter cellPainter = new BackgroundImagePainter(txtPainter,
                    bgImage, GUIHelper.getColor(192, 192, 192));
            SortableHeaderTextPainter sortHeaderPainter = new SortableHeaderTextPainter(
                    cellPainter, false, false);

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
                    DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
                    DisplayMode.NORMAL, GridRegion.CORNER);
        } else {
            SortableHeaderTextPainter sortHeaderPainter = new SortableHeaderTextPainter(
                    new BeveledBorderDecorator(new TextPainter()), false, false);
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, sortHeaderPainter,
                    DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
            configRegistry.registerConfigAttribute(
View Full Code Here

    public static final String SORT_SEQ_CONFIG_TYPE = "SORT_SEQ_"; //$NON-NLS-1$

    private ICellPainter cellPainter;

    public DefaultSortConfiguration() {
        this(new BeveledBorderDecorator(new SortableHeaderTextPainter()));
    }
View Full Code Here

        TextPainter txtPainter = new TextPainter(false, false);
        ICellPainter selectedCellPainter = new BackgroundImagePainter(
                txtPainter, selectedBgImage, GUIHelper.getColor(192, 192, 192));
        // If sorting is enables we still want the sort icon to be drawn.
        SortableHeaderTextPainter selectedHeaderPainter = new SortableHeaderTextPainter(
                selectedCellPainter, false, true);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, selectedHeaderPainter,
                DisplayMode.SELECT, GridRegion.COLUMN_HEADER);
View Full Code Here

                .getResourceAsStream("column_header_bg.png"));

        TextPainter txtPainter = new TextPainter(false, false);
        ICellPainter bgImagePainter = new BackgroundImagePainter(txtPainter,
                bgImage, GUIHelper.getColor(192, 192, 192));
        SortableHeaderTextPainter headerPainter = new SortableHeaderTextPainter(
                bgImagePainter, false, true);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, headerPainter,
                DisplayMode.NORMAL, GridRegion.COLUMN_HEADER);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.sort.painter.SortableHeaderTextPainter

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.