Package net.sf.jasperreports.engine.export.data

Examples of net.sf.jasperreports.engine.export.data.NumberTextValue


      {
        Number value = defaultParseNumber(textStr, JRClassLoader.loadClassForRealName(text.getValueClassName()));

        if (value != null)
        {
          textValue = new NumberTextValue(textStr, value, null);
        }
        else
        {
          textValue = getTextValueString(text, textStr);
        }
      }
      else
      {
        textValue = new NumberTextValue(textStr, null, null);
      }
    }
    else
    {
      NumberFormat numberFormat = getNumberFormat(getTextFormatFactoryClass(text), pattern, getTextLocale(text));
     
      Number value = null;
      if (textStr != null && textStr.length() > 0)
      {
        value = numberFormat.parse(textStr);
      }
      textValue = new NumberTextValue(textStr, value, pattern);
    }
    return textValue;
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.export.data.NumberTextValue

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.