Examples of CellPainterDecorator


Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

    }

    public void configureRegistry(IConfigRegistry configRegistry) {

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP, new ImagePainter(
                                GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_ONE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_TWO_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.LEFT, new ImagePainter(
                                GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_THREE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_FOUR_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP_LEFT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_FIVE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP_RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_SIX_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM_LEFT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_SEVEN_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM_RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_EIGHT_LABEL);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

                // Column header
                configRegistry
                        .registerConfigAttribute(
                                CellConfigAttributes.CELL_PAINTER,
                                new BeveledBorderDecorator(
                                        new CellPainterDecorator(
                                                new SortableHeaderTextPainter(),
                                                CellEdgeEnum.LEFT,
                                                columnHeaderCheckBoxPainter)),
                                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

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

     *            related decoration (by default the
     *            {@link RowGroupExpandCollapseImagePainter} will be used)
     */
    public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
            CellEdgeEnum cellEdge, ICellPainter decoratorPainter) {
        setWrappedPainter(new CellPainterDecorator(interiorPainter, cellEdge,
                decoratorPainter));
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

            CellEdgeEnum cellEdge, boolean paintBg, int spacing,
            boolean paintDecorationDependent) {

        ICellPainter sortPainter = new RowGroupExpandCollapseImagePainter(
                paintBg);
        CellPainterDecorator painter = new CellPainterDecorator(
                interiorPainter, cellEdge, spacing, sortPainter,
                paintDecorationDependent, paintBg);
        setWrappedPainter(painter);
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

     */
    public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
            CellEdgeEnum cellEdge, ICellPainter decoratorPainter,
            boolean paintBg, int spacing, boolean paintDecorationDependent) {

        CellPainterDecorator painter = new CellPainterDecorator(
                interiorPainter, cellEdge, spacing, decoratorPainter,
                paintDecorationDependent, paintBg);
        setWrappedPainter(painter);
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

     */
    public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
            boolean paintBg, boolean interiorPainterToSpanFullWidth) {
        ICellPainter sortPainter = new RowGroupExpandCollapseImagePainter(
                paintBg);
        CellPainterDecorator painter = new CellPainterDecorator(
                interiorPainter, CellEdgeEnum.BOTTOM, 0, sortPainter,
                !interiorPainterToSpanFullWidth, paintBg);
        setWrappedPainter(painter);
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

        return natTable;
    }

    private void addButtonToColumn(IConfigRegistry configRegistry,
            Composite parent) {
        buttonPainter = new ButtonCellPainter(new CellPainterDecorator(
                new TextPainter(), CellEdgeEnum.RIGHT, new ImagePainter(
                        GUIHelper.getImage("preferences"))));

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

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

     *            column group related decoration (by default the
     *            {@link ColumnGroupExpandCollapseImagePainter} will be used)
     */
    public ColumnGroupHeaderTextPainter(ICellPainter interiorPainter,
            CellEdgeEnum cellEdge, ICellPainter decoratorPainter) {
        setWrappedPainter(new CellPainterDecorator(interiorPainter, cellEdge,
                decoratorPainter));
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

            ICellPainter interiorPainter, CellEdgeEnum cellEdge,
            boolean paintBg, int spacing, boolean paintDecorationDependent) {

        ICellPainter sortPainter = new ColumnGroupExpandCollapseImagePainter(
                paintBg);
        CellPainterDecorator painter = new CellPainterDecorator(
                interiorPainter, cellEdge, spacing, sortPainter,
                paintDecorationDependent, paintBg);
        setWrappedPainter(painter);
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.CellPainterDecorator

    public ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel,
            ICellPainter interiorPainter, boolean paintBg,
            boolean interiorPainterToSpanFullWidth) {
        ICellPainter sortPainter = new ColumnGroupExpandCollapseImagePainter(
                paintBg);
        CellPainterDecorator painter = new CellPainterDecorator(
                interiorPainter, CellEdgeEnum.RIGHT, 0, sortPainter,
                !interiorPainterToSpanFullWidth, paintBg);
        setWrappedPainter(painter);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.