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

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


        cell.setDataValue("123");
        cell.setDisplayMode(DisplayMode.NORMAL);

        TextCellEditor cellEditor = new TextCellEditor();

        IDisplayConverter dataTypeConverter = new DisplayConverter() {

            public Object canonicalToDisplayValue(Object canonicalValue) {
                return canonicalValue;
            }
View Full Code Here


    protected Boolean convertDataType(ILayerCell cell,
            IConfigRegistry configRegistry) {
        if (cell.getDataValue() instanceof Boolean) {
            return (Boolean) cell.getDataValue();
        }
        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

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

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.