Package org.eclipse.nebula.widgets.nattable.summaryrow

Examples of org.eclipse.nebula.widgets.nattable.summaryrow.SummaryRowLayer


        IDataProvider dataProvider = new GlazedListsDataProvider<NumberValues>(
                valuesToShow, new CalculatingDataProvider());
        bodyDataLayer = new DataLayer(dataProvider);
        glazedListsEventLayer = new GlazedListsEventLayer<NumberValues>(
                bodyDataLayer, valuesToShow);
        summaryRowLayer = new SummaryRowLayer(glazedListsEventLayer,
                configRegistry, false);
        summaryRowLayer
                .addConfiguration(new CalculatingSummaryRowConfiguration(
                        bodyDataLayer.getDataProvider()));
        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
View Full Code Here


        IConfigRegistry configRegistry = new ConfigRegistry();
        IUniqueIndexLayer dataLayer = new DataLayer(myDataProvider);

        // Plug in the SummaryRowLayer
        IUniqueIndexLayer summaryRowLayer = new SummaryRowLayer(dataLayer,
                configRegistry, false);
        ViewportLayer viewportLayer = new ViewportLayer(summaryRowLayer);

        NatTable natTable = new NatTable(parent, viewportLayer, false);
View Full Code Here

        glazedListsEventLayer = new GlazedListsEventLayer<T>(bodyDataLayer,
                eventList);
        blinkingLayer = new BlinkLayer<T>(glazedListsEventLayer,
                bodyDataProvider, rowIdAccessor, columnPropertyAccessor,
                configRegistry);
        SummaryRowLayer summaryRowLayer = new SummaryRowLayer(blinkingLayer,
                configRegistry);

        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
View Full Code Here

            this.bodyDataLayer = new GroupByDataLayer<T>(getGroupByModel(),
                    this.sortedList, columnPropertyAccessor, configRegistry);
            // get the IDataProvider that was created by the GroupByDataLayer
            this.bodyDataProvider = this.bodyDataLayer.getDataProvider();

            SummaryRowLayer summaryRowLayer = new SummaryRowLayer(
                    this.bodyDataLayer, configRegistry, false);

            // layer for event handling of GlazedLists and PropertyChanges
            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    summaryRowLayer, this.sortedList);
View Full Code Here

        DataLayer dataLayer = new DataLayer(dataProvider);

        ViewportLayer viewportLayer = new ViewportLayer(dataLayer);

        // Plug in the SummaryRowLayer
        SummaryRowLayer summaryRowLayer = new SummaryRowLayer(dataLayer, configRegistry, false);
        // configure the SummaryRowLayer to be rendered standalone
        summaryRowLayer.setStandalone(true);

        CompositeLayer composite = new CompositeLayer(1, 2);
        composite.setChildLayer("SUMMARY", summaryRowLayer, 0, 0);
        composite.setChildLayer(GridRegion.BODY, viewportLayer, 0, 1);

        NatTable natTable = new NatTable(panel, composite, false);
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);

        // Configure custom summary formula for a column
        natTable.addConfiguration(new ExampleSummaryRowConfiguration(dataProvider));
        natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
        natTable.setConfigRegistry(configRegistry);
        natTable.configure();

        // Summary row fixed at the bottom
        dataLayer = new DataLayer(dataProvider);
        // IMPORTANT:
        // since the summary row layer is to the bottom of the viewport layer
        // we need to configure a GridLineCellLayerPainter that clips the top
        // cell. This means the body data layer is clipped at the bottom since
        // the painter is used globally
        dataLayer.setLayerPainter(new GridLineCellLayerPainter(false, true));

        viewportLayer = new ViewportLayer(dataLayer);

        // Plug in the SummaryRowLayer
        summaryRowLayer = new SummaryRowLayer(dataLayer, configRegistry, false);
        // configure the SummaryRowLayer to be rendered standalone
        summaryRowLayer.setStandalone(true);

        composite = new CompositeLayer(1, 2);
        composite.setChildLayer(GridRegion.BODY, viewportLayer, 0, 0);
        composite.setChildLayer("SUMMARY", summaryRowLayer, 0, 1);
View Full Code Here

            // layer for event handling of GlazedLists and PropertyChanges
            GlazedListsEventLayer<T> glazedListsEventLayer = new GlazedListsEventLayer<T>(
                    this.bodyDataLayer, filterList);

            SummaryRowLayer summaryRowLayer = new SummaryRowLayer(
                    glazedListsEventLayer, configRegistry, false);

            ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                    summaryRowLayer);
            ColumnGroupReorderLayer columnGroupReorderLayer = new ColumnGroupReorderLayer(
View Full Code Here

        ConfigRegistry configRegistry = new ConfigRegistry();

        DataLayer dataLayer = new DataLayer(dataProvider);

        // Plug in the SummaryRowLayer
        SummaryRowLayer summaryRowLayer = new SummaryRowLayer(dataLayer, configRegistry, false);
        ViewportLayer viewportLayer = new ViewportLayer(summaryRowLayer);

        NatTable natTable = new NatTable(parent, viewportLayer, false);

        // Configure custom summary formula for a column
View Full Code Here

            // knows how to fire updates
            dataProvider.setCacheEventLayer(bodyDataLayer);

            glazedListsEventLayer = new GlazedListsEventLayer<NumberValues>(
                    bodyDataLayer, valuesToShow);
            summaryRowLayer = new SummaryRowLayer(glazedListsEventLayer,
                    configRegistry, false);
            summaryRowLayer
                    .addConfiguration(new CalculatingSummaryRowConfiguration(
                            bodyDataLayer.getDataProvider()));
            columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
View Full Code Here

            IDataProvider dataProvider = new GlazedListsDataProvider<NumberValues>(
                    valuesToShow, new CalculatingDataProvider());
            bodyDataLayer = new DataLayer(dataProvider);
            glazedListsEventLayer = new GlazedListsEventLayer<NumberValues>(
                    bodyDataLayer, valuesToShow);
            summaryRowLayer = new SummaryRowLayer(glazedListsEventLayer,
                    configRegistry, false);
            summaryRowLayer
                    .addConfiguration(new CalculatingSummaryRowConfiguration(
                            bodyDataLayer.getDataProvider()));
            columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
View Full Code Here

    private final ViewportLayer viewportLayer;

    public SummaryRowBodyLayerStack(IDataProvider dataProvider,
            ConfigRegistry configRegistry) {
        bodyDataLayer = new DataLayer(dataProvider);
        summaryRowLayer = new SummaryRowLayer(bodyDataLayer, configRegistry,
                false);
        summaryRowLayer
                .addConfiguration(new ExampleSummaryRowGridConfiguration(
                        bodyDataLayer.getDataProvider()));
        columnReorderLayer = new ColumnReorderLayer(summaryRowLayer);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.summaryrow.SummaryRowLayer

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.