Examples of FloatConverter


Examples of org.dmrad.view.util.type.FloatConverter

      } else if (propertyClass == Float.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200913L;
          public IConverter getConverter() {
            return new FloatConverter();
          }
        };
        textField.setType(Float.class);
      } else if (propertyClass == Double.class) {
        textField = new TextField("propertyValue", new PropertyModel(
View Full Code Here

Examples of org.more.convert.convert.FloatConverter

    private void registerPrimitives(final boolean throwException) {
        this.register(Boolean.TYPE, throwException ? new BooleanConverter() : new BooleanConverter(Boolean.FALSE));
        this.register(Byte.TYPE, throwException ? new ByteConverter() : new ByteConverter(ConverterBean.ZERO));
        this.register(Character.TYPE, throwException ? new CharacterConverter() : new CharacterConverter(ConverterBean.SPACE));
        this.register(Double.TYPE, throwException ? new DoubleConverter() : new DoubleConverter(ConverterBean.ZERO));
        this.register(Float.TYPE, throwException ? new FloatConverter() : new FloatConverter(ConverterBean.ZERO));
        this.register(Integer.TYPE, throwException ? new IntegerConverter() : new IntegerConverter(ConverterBean.ZERO));
        this.register(Long.TYPE, throwException ? new LongConverter() : new LongConverter(ConverterBean.ZERO));
        this.register(Short.TYPE, throwException ? new ShortConverter() : new ShortConverter(ConverterBean.ZERO));
    }
View Full Code Here

Examples of org.soybeanMilk.core.bean.converters.FloatConverter

    //基本类型及其包装类型
    addConverter(String.class, Boolean.class, new BooleanConverter());
    addConverter(String.class, Byte.class, new ByteConverter());
    addConverter(String.class, Character.class, new CharacterConverter());
    addConverter(String.class, Double.class, new DoubleConverter());
    addConverter(String.class, Float.class, new FloatConverter());
    addConverter(String.class, Integer.class, new IntegerConverter());
    addConverter(String.class, Long.class, new LongConverter());
    addConverter(String.class, Short.class, new ShortConverter());
   
    //其他
View Full Code Here

Examples of org.springframework.shell.converters.FloatConverter

    return new EnumConverter();
  }

  @Bean
  Converter floatConverter() {
    return new FloatConverter();
  }
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.