Examples of registerConfigAttribute()


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

                new TreeGridWithCheckBoxFieldsExample());
    }

    public Control createExampleControl(Composite parent) {
        ConfigRegistry configRegistry = new ConfigRegistry();
        configRegistry.registerConfigAttribute(
                SortConfigAttributes.SORT_COMPARATOR, new DefaultComparator());

        // Underlying data source
        createDatums();
        EventList<Datum> eventList = GlazedLists.eventList(datums.values());
View Full Code Here

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

            }
        };
        natTable.addConfiguration(new AbstractRegistryConfiguration() {
            public void configureRegistry(IConfigRegistry configRegistry) {
                // Column header
                configRegistry
                        .registerConfigAttribute(
                                CellConfigAttributes.CELL_PAINTER,
                                new BeveledBorderDecorator(
                                        new CellPainterDecorator(
                                                new SortableHeaderTextPainter(),
View Full Code Here

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

                                                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(
View Full Code Here

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

                                        return dataValue.getName();
                                    }
                                }, CellEdgeEnum.LEFT, checkBoxPainter)),
                        DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.DISPLAY_CONVERTER,
                        new DefaultBooleanDisplayConverter(),
                        DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);
                configRegistry.registerConfigAttribute(
                        EditConfigAttributes.CELL_EDITABLE_RULE,
View Full Code Here

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

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.DISPLAY_CONVERTER,
                        new DefaultBooleanDisplayConverter(),
                        DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);
                configRegistry.registerConfigAttribute(
                        EditConfigAttributes.CELL_EDITABLE_RULE,
                        IEditableRule.ALWAYS_EDITABLE, DisplayMode.EDIT,
                        TreeLayer.TREE_COLUMN_CELL);
                configRegistry.registerConfigAttribute(
                        EditConfigAttributes.CELL_EDITOR,
View Full Code Here

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

                        DisplayMode.NORMAL, TreeLayer.TREE_COLUMN_CELL);
                configRegistry.registerConfigAttribute(
                        EditConfigAttributes.CELL_EDITABLE_RULE,
                        IEditableRule.ALWAYS_EDITABLE, DisplayMode.EDIT,
                        TreeLayer.TREE_COLUMN_CELL);
                configRegistry.registerConfigAttribute(
                        EditConfigAttributes.CELL_EDITOR,
                        new CheckBoxCellEditor() {
                            @Override
                            public void setCanonicalValue(Object canonicalValue) {
                                Datum value = (Datum) canonicalValue;
View Full Code Here

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

        GroupByModel groupByModel = new GroupByModel();

        // Summary
        ConfigRegistry configRegistry = new ConfigRegistry();
        configRegistry
                .registerConfigAttribute(
                        GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                        new SummationGroupBySummaryProvider<RowDataFixture>(
                                reflectiveColumnPropertyAccessor),
                        DisplayMode.NORMAL,
View Full Code Here

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

        StandaloneNatExampleRunner.run(800, 400, new TreeGridExample());
    }

    public Control createExampleControl(Composite parent) {
        ConfigRegistry configRegistry = new ConfigRegistry();
        configRegistry.registerConfigAttribute(
                SortConfigAttributes.SORT_COMPARATOR, new DefaultComparator());

        // Underlying data source
        createDatums();
        EventList<Datum> eventList = GlazedLists.eventList(datums.values());
View Full Code Here

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

                // Shade the row to be slightly darker than the blue background.
                final Style rowStyle = new Style();
                rowStyle.setAttributeValue(
                        CellStyleAttributes.BACKGROUND_COLOR,
                        GUIHelper.getColor(197, 212, 231));
                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_STYLE, rowStyle,
                        DisplayMode.NORMAL, GridRegion.FILTER_ROW);
            }
        });
View Full Code Here

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

            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                // Register custom comparator for last name column
                // when sorting via last name, Simpson will always win
                configRegistry.registerConfigAttribute(
                        SortConfigAttributes.SORT_COMPARATOR,
                        new Comparator<String>() {
                            @Override
                            public int compare(String o1, String o2) {
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.