Examples of registerConfigAttribute()


Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

        // add group by summary configuration
        natTable.addConfiguration(new AbstractRegistryConfiguration() {

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                configRegistry.registerConfigAttribute(
                        GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                        sumMoneySummaryProvider, DisplayMode.NORMAL,
                        GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);

                configRegistry.registerConfigAttribute(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                configRegistry.registerConfigAttribute(
                        GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                        sumMoneySummaryProvider, DisplayMode.NORMAL,
                        GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);

                configRegistry.registerConfigAttribute(
                        GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                        new AverageAgeGroupBySummaryProvider(),
                        DisplayMode.NORMAL,
                        GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 2);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                        GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                        new AverageAgeGroupBySummaryProvider(),
                        DisplayMode.NORMAL,
                        GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 2);

                configRegistry.registerConfigAttribute(
                        GroupByConfigAttributes.GROUP_BY_CHILD_COUNT_PATTERN,
                        "[{0}] - ({1})");

                // set a custom display converter to the money groupby column
                // that transforms the
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                        "[{0}] - ({1})");

                // set a custom display converter to the money groupby column
                // that transforms the
                // values correctly localized
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.DISPLAY_CONVERTER,
                        new SummaryDisplayConverter(
                                new DefaultDoubleDisplayConverter()),
                        DisplayMode.NORMAL,
                        GroupByDataLayer.GROUP_BY_SUMMARY_COLUMN_PREFIX + 3);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                // calculation gets triggered
                bodyLayerStack.getBodyDataLayer().clearCache();

                useMoneySum = !useMoneySum;
                if (useMoneySum) {
                    configRegistry.registerConfigAttribute(
                            GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                            sumMoneySummaryProvider, DisplayMode.NORMAL,
                            GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);
                } else {
                    configRegistry.registerConfigAttribute(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                    configRegistry.registerConfigAttribute(
                            GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                            sumMoneySummaryProvider, DisplayMode.NORMAL,
                            GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);
                } else {
                    configRegistry.registerConfigAttribute(
                            GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                            avgMoneySummaryProvider, DisplayMode.NORMAL,
                            GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);
                }
                natTable.doCommand(new VisualRefreshCommand());
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                // register a CheckBoxPainter as CellPainter for the married
                // information
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new CheckBoxPainter(), DisplayMode.NORMAL,
                        MARRIED_LABEL);

                configRegistry.registerConfigAttribute(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new CheckBoxPainter(), DisplayMode.NORMAL,
                        MARRIED_LABEL);

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.DISPLAY_CONVERTER,
                        new DefaultDateDisplayConverter("MM/dd/yyyy"),
                        DisplayMode.NORMAL, DATE_LABEL);

                // exchange the painter that is used to render the tree
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

                ICellPainter treeStructurePainter = new BackgroundPainter(
                        new PaddingDecorator(new IndentedTreeImagePainter(10,
                                null, CellEdgeEnum.LEFT, treeImagePainter,
                                false, 2, true), 0, 5, 0, 5, false));

                configRegistry.registerConfigAttribute(
                        TreeConfigAttributes.TREE_STRUCTURE_PAINTER,
                        treeStructurePainter, DisplayMode.NORMAL);

            }
        });
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.config.ConfigRegistry.registerConfigAttribute()

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                // register a CheckBoxPainter as CellPainter for the married
                // information
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new CheckBoxPainter(), DisplayMode.NORMAL,
                        ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 3);

                configRegistry.registerConfigAttribute(
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.