Package org.apache.wicket.util.convert.converters

Examples of org.apache.wicket.util.convert.converters.DoubleConverter


                         * needed (currently limited to six digits to the
                         * right of the decimal point).
                         */
                        textField = new TextField("field", Double.class) {
                            public org.apache.wicket.util.convert.IConverter getConverter(Class type) {
                                DoubleConverter converter = (DoubleConverter) DoubleConverter.INSTANCE;
                                java.text.NumberFormat numberFormat = converter.getNumberFormat(getLocale());
                                java.text.DecimalFormat decimalFormat = (java.text.DecimalFormat)numberFormat;
                                decimalFormat.applyPattern("###,##0.######");
                                converter.setNumberFormat(getLocale(), decimalFormat);
                                return converter;
                            };
                        };
                    }
                   
View Full Code Here


  }

  @Override
  public IConverter getConverter(Class type)
  {
    return new DoubleConverter()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public NumberFormat getNumberFormat(Locale locale)
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.convert.converters.DoubleConverter

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.