protected Locale getLocale() { String localeCode = jasperPrint.getLocaleCode(); return localeCode == null ? null : JRDataUtils.getLocale(localeCode); }
/** * */ protected void setJasperPrint(JasperPrint jasperPrint) { this.jasperPrint = jasperPrint; String localeCode = jasperPrint.getLocaleCode(); JRStyledTextParser.setLocale(localeCode == null ? null : JRDataUtils.getLocale(localeCode)); }
protected Locale getTextLocale(JRPrintText text) { String localeCode = text.getLocaleCode(); if (localeCode == null) { localeCode = jasperPrint.getLocaleCode(); } return localeCode == null ? null : JRDataUtils.getLocale(localeCode); }
xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_orientation, jasperPrint.getOrientation(), JRXmlConstants.getOrientationMap(), JRReport.ORIENTATION_PORTRAIT); xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_formatFactoryClass, jasperPrint.getFormatFactoryClass()); xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_locale, jasperPrint.getLocaleCode()); xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_timezone, jasperPrint.getTimeZoneId());