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

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


                                DisplayMode.NORMAL,
                                ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 0);

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new BackgroundPainter(new CellPainterDecorator(
                                new TextPainter() {
                                    @Override
                                    protected String convertDataType(
                                            ILayerCell cell,
                                            IConfigRegistry configRegistry) {
View Full Code Here


    public void configureRegistry(IConfigRegistry configRegistry) {
        // register a TextPainter to ensure that the GroupBy objects are
        // rendered as text
        // even if in the first column by default another painter is registered
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new BackgroundPainter(
                        new GroupByCellTextPainter()), DisplayMode.NORMAL,
                GroupByDataLayer.GROUP_BY_OBJECT);

        // register a converter for group by summary values that renders ... in
        // case there is
View Full Code Here

                    log.warn("There is no IndentedTreeImagePainter found for TREE_STRUCTURE_PAINTER, " //$NON-NLS-1$
                            + "using local configured IndentedTreeImagePainter as fallback"); //$NON-NLS-1$
                    // fallback
                    this.indentedTreeImagePainter
                    .setBaseCellPainter(cellPainter);
                    cellPainter = new BackgroundPainter(
                            this.indentedTreeImagePainter);
                }
            } else {
                // backwards compatibility fallback
                this.indentedTreeImagePainter.setBaseCellPainter(cellPainter);
                cellPainter = new BackgroundPainter(
                        this.indentedTreeImagePainter);
            }
        }

        return cellPainter;
View Full Code Here

                // between cell
                // border and tree icons.
                TreeImagePainter treeImagePainter = new TreeImagePainter(
                        false,
                        GUIHelper.getImage("right"), GUIHelper.getImage("right_down"), null); //$NON-NLS-1$//$NON-NLS-2$
                ICellPainter treeStructurePainter = new BackgroundPainter(
                        new PaddingDecorator(new IndentedTreeImagePainter(10,
                                null, CellEdgeEnum.LEFT, treeImagePainter,
                                false, 2, true), 0, 5, 0, 5, false));

                configRegistry.registerConfigAttribute(
View Full Code Here

TOP

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

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.