Package org.eclipse.nebula.widgets.nattable.data.convert

Examples of org.eclipse.nebula.widgets.nattable.data.convert.DefaultDisplayConverter


        // returned value is a Collection
        // this is necessary because editing and displaying are not directly
        // coupled to each other
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new DefaultDisplayConverter() {

                    @Override
                    public Object canonicalToDisplayValue(Object canonicalValue) {
                        if (canonicalValue instanceof Collection) {
                            // Collection.toString() will add [ and ] around the
View Full Code Here


        // register a converter for group by summary values that renders ... in
        // case there is
        // no summary value calculated yet
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new SummaryDisplayConverter(new DefaultDisplayConverter(),
                        IGroupBySummaryProvider.DEFAULT_SUMMARY_VALUE),
                DisplayMode.NORMAL, GroupByDataLayer.GROUP_BY_SUMMARY);
    }
View Full Code Here

        // Default display converter. Used to convert the values typed into the
        // text boxes into String objects.
        configRegistry.registerConfigAttribute(
                FilterRowConfigAttributes.FILTER_DISPLAY_CONVERTER,
                new DefaultDisplayConverter());

        // Default comparator. Used to compare objects in the column during
        // threshold matching.
        configRegistry.registerConfigAttribute(
                FilterRowConfigAttributes.FILTER_COMPARATOR,
View Full Code Here

            // the returned value is a Collection
            // this is necessary because editing and displaying are not directly
            // coupled to each other
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.DISPLAY_CONVERTER,
                    new DefaultDisplayConverter() {

                        @Override
                        public Object canonicalToDisplayValue(
                                Object canonicalValue) {
                            if (canonicalValue instanceof Collection) {
View Full Code Here

            // the returned value is a Collection
            // this is necessary because editing and displaying are not directly
            // coupled to each other
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.DISPLAY_CONVERTER,
                    new DefaultDisplayConverter() {

                        @Override
                        public Object canonicalToDisplayValue(
                                Object canonicalValue) {
                            if (canonicalValue instanceof Collection) {
View Full Code Here

     * there is no value to show in the summary row yet.
     */
    protected void addSummaryRowDisplayConverter(IConfigRegistry configRegistry) {
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new SummaryDisplayConverter(new DefaultDisplayConverter()),
                DisplayMode.NORMAL,
                SummaryRowLayer.DEFAULT_SUMMARY_ROW_CONFIG_LABEL);
    }
View Full Code Here

        configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
                cellStyle);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new DefaultDisplayConverter());
    }
View Full Code Here

        DefaultGridLayer gridLayer = new GridLayerFixture();
        layer = gridLayer.getBodyLayer().getSelectionLayer();
        configRegistry = new ConfigRegistry();
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER,
                new DefaultDisplayConverter());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.data.convert.DefaultDisplayConverter

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.