Code example for DecimalFormatSymbols

0
    { 
      final Locale locale = runtime.getResourceBundleFactory().getLocale();
      if (locale != null && locale.equals(lastLocale) == false)
      { 
        lastLocale = locale;
        getDecimalFormat().setDecimalFormatSymbols(new DecimalFormatSymbols(locale));
        invalidateCache(); 
      } 
    } 
    return super.getValue(runtime, element);
  } 
 
 
  public FormatSpecification getFormatString(final ExpressionRuntime runtime,
                                             final ReportElement element,
                                             FormatSpecification formatSpecification)
  { 
    if (formatSpecification == null)
    { 
      formatSpecification = new FormatSpecification();
    }