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

Examples of org.eclipse.nebula.widgets.nattable.layer.cell.AggregrateConfigLabelAccumulator


        assertEquals("EVEN_BODY", labelsForIndex4.get(1));
    }

    private void registerCellStyleAccumulators(DataLayer bodyDataLayer,
            ColumnOverrideLabelAccumulator columnLabelAccumulator) {
        AggregrateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregrateConfigLabelAccumulator();
        aggregrateConfigLabelAccumulator.add(columnLabelAccumulator,
                new AlternatingRowConfigLabelAccumulator());
        bodyDataLayer
                .setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);
    }
View Full Code Here


        final NatTable natTable = new NatTable(parent, gridLayer, false);
        DataLayer bodyDataLayer = (DataLayer) gridLayer.getBodyDataLayer();

        // Add an AggregrateConfigLabelAccumulator - we can add other
        // accumulators to this as required
        AggregrateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregrateConfigLabelAccumulator();
        bodyDataLayer
                .setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);

        ColumnOverrideLabelAccumulator columnLabelAccumulator = new ColumnOverrideLabelAccumulator(
                bodyDataLayer);
        ColumnOverrideLabelAccumulator bodyLabelAccumulator = new ColumnOverrideLabelAccumulator(
                bodyDataLayer);

        aggregrateConfigLabelAccumulator.add(columnLabelAccumulator);
        aggregrateConfigLabelAccumulator.add(bodyLabelAccumulator);

        // Add a label for the highlighted column
        // We will add a style for this label to the config registry in a bit
        bodyLabelAccumulator.registerColumnOverrides(2, BODY_LABEL_1);
        columnLabelAccumulator.registerColumnOverrides(2, COLUMN_LABEL_1);
View Full Code Here

        columnHeaderLayer.addConfiguration(new ColumnHeaderConfiguration(
                tableModel.tableStyle));
    }

    private void setupAggregateLabelAccumulator() {
        aggregateLabelAccumulator = new AggregrateConfigLabelAccumulator();
        getDataLayer().setConfigLabelAccumulator(aggregateLabelAccumulator);
    }
View Full Code Here

        setUnderlyingLayer(compositeFreezeLayer);
        setupAggregateLabelAccumulator();
    }

    private void setupAggregateLabelAccumulator() {
        aggregateLabelAccumulator = new AggregrateConfigLabelAccumulator();
        getDataLayer().setConfigLabelAccumulator(aggregateLabelAccumulator);
    }
View Full Code Here

     */
    public void addConfigLabelAccumulatorForRegion(
            String regionName, IConfigLabelAccumulator configLabelAccumulator) {
        IConfigLabelAccumulator existingConfigLabelAccumulator =
                this.regionNameToConfigLabelAccumulatorMap.get(regionName);
        AggregrateConfigLabelAccumulator aggregateAccumulator;
        if (existingConfigLabelAccumulator instanceof AggregrateConfigLabelAccumulator) {
            aggregateAccumulator = (AggregrateConfigLabelAccumulator) existingConfigLabelAccumulator;
        } else {
            aggregateAccumulator = new AggregrateConfigLabelAccumulator();
            aggregateAccumulator.add(existingConfigLabelAccumulator);
            this.regionNameToConfigLabelAccumulatorMap.put(regionName, aggregateAccumulator);
        }
        aggregateAccumulator.add(configLabelAccumulator);
    }
View Full Code Here

        registerCellStyleAccumulators(bodyDataLayer);
        commandHandler = new TickUpdateCommandHandler(selectionLayer);
    }

    private void registerCellStyleAccumulators(DataLayer bodyDataLayer) {
        AggregrateConfigLabelAccumulator aggregrateConfigLabelAccumulator = new AggregrateConfigLabelAccumulator();
        columnLabelAccumulator = new ColumnOverrideLabelAccumulator(
                new DataLayerFixture());
        aggregrateConfigLabelAccumulator.add(columnLabelAccumulator,
                new AlternatingRowConfigLabelAccumulator());
        bodyDataLayer
                .setConfigLabelAccumulator(aggregrateConfigLabelAccumulator);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.layer.cell.AggregrateConfigLabelAccumulator

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.