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

Examples of org.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter.canonicalToDisplayValue()


        IDisplayConverter displayConverter = configRegistry.getConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER, cell.getDisplayMode(),
                cell.getConfigLabels().getLabels());

        if (displayConverter != null) {
            displayValue = displayConverter.canonicalToDisplayValue(cell,
                    configRegistry, canonicalValue);
        } else {
            displayValue = canonicalValue;
        }
View Full Code Here


            Collection valueCollection = (Collection) object;
            for (Object value : valueCollection) {
                if (result.length() > 0) {
                    result += "|"; //$NON-NLS-1$
                }
                String convertedValue = displayConverter
                        .canonicalToDisplayValue(value).toString();
                if (convertedValue.isEmpty()) {
                    // for an empty String add the regular expression for empty
                    // String
                    convertedValue = "^$"; //$NON-NLS-1$
View Full Code Here

                result += convertedValue;
            }
            return "(" + result + ")"; //$NON-NLS-1$//$NON-NLS-2$
        }

        return displayConverter.canonicalToDisplayValue(object).toString();
    }

    @SuppressWarnings("rawtypes")
    protected boolean filterCollectionsEqual(Collection filter1,
            Collection filter2) {
View Full Code Here

    protected String getStringFromColumnObject(final int columnIndex,
            final Object object) {
        final IDisplayConverter displayConverter = this.configRegistry
                .getConfigAttribute(FILTER_DISPLAY_CONVERTER, NORMAL,
                        FILTER_ROW_COLUMN_LABEL_PREFIX + columnIndex);
        return displayConverter.canonicalToDisplayValue(object).toString();
    }

    /**
     * Set up a threshold matcher for tokens like '>20', '<=10' etc.
     *
 
View Full Code Here

                CellConfigAttributes.DISPLAY_CONVERTER, cell.getDisplayMode(),
                cell.getConfigLabels().getLabels());
        Boolean convertedValue = null;
        if (displayConverter != null) {
            try {
                convertedValue = (Boolean) displayConverter
                        .canonicalToDisplayValue(cell, configRegistry,
                                cell.getDataValue());
            } catch (Exception e) {
                log.debug(e);
            }
View Full Code Here

        Object dataValue = null;
        if (displayConverter != null) {
            ILayerCell cell = layer.getCellByPosition(columnPosition,
                    rowPosition);
            if (cell != null) {
                dataValue = displayConverter.canonicalToDisplayValue(cell,
                        configRegistry, cell.getDataValue());
            }
        }

        // Compare with valueToMatch
View Full Code Here

            IConfigRegistry configRegistry) {
        Object dataValue = cell.getDataValue();
        IDisplayConverter displayConverter = configRegistry.getConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER, cell.getDisplayMode(),
                cell.getConfigLabels().getLabels());
        return displayConverter.canonicalToDisplayValue(dataValue);
    }

}
View Full Code Here

        IDisplayConverter displayConverter = configRegistry.getConfigAttribute(
                CellConfigAttributes.DISPLAY_CONVERTER, cell.getDisplayMode(),
                cell.getConfigLabels().getLabels());
        Boolean convertedValue = null;
        if (displayConverter != null) {
            convertedValue = (Boolean) displayConverter
                    .canonicalToDisplayValue(cell, configRegistry,
                            cell.getDataValue());
        }
        if (convertedValue == null) {
            convertedValue = Boolean.FALSE;
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.