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

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


     *         {@link Gender#MALE} will be interpreted as <code>true</code>
     *         while {@link Gender#FEMALE} will be interpreted as
     *         <code>false</code>
     */
    private IDisplayConverter getGenderBooleanConverter() {
        return new DisplayConverter() {

            @Override
            public Object canonicalToDisplayValue(Object canonicalValue) {
                if (canonicalValue instanceof Gender) {
                    return canonicalValue.toString();
View Full Code Here


        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

     * @see BrokerFormatter
     * @see BookFormatter
     */
    public static IDisplayConverter getDoubleDisplayConverter(
            final String pattern) {
        return new DisplayConverter() {
            private final DecimalFormat formatter = isNotNull(pattern) ? new DecimalFormat(
                    pattern) : new DecimalFormat();

            public Object canonicalToDisplayValue(Object canonicalValue) {
                if (isNotNull(canonicalValue)) {
View Full Code Here

                EditConfigAttributes.CELL_EDITOR, checkBoxCellEditor,
                DisplayMode.NORMAL, TEST_LABEL);
    }

    private static IDisplayConverter getPricingTypeDisplayConverter() {
        return new DisplayConverter() {
            @Override
            public Object canonicalToDisplayValue(Object canonicalValue) {
                if (canonicalValue == null) {
                    return null;
                } else {
View Full Code Here

TOP

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

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.