Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.ResourceBundleFactory


      return null;
    }

    try
    {
      final ResourceBundleFactory resourceBundleFactory = runtime.getResourceBundleFactory();
      final ResourceBundle bundle = resourceBundleFactory.getResourceBundle(resourceId);

      // update the format string, if neccessary ...
      if (ObjectUtilities.equal(formatKey, appliedFormatKey) == false)
      {
        final String newFormatString = bundle.getString(formatKey);
        messageFormatSupport.setFormatString(newFormatString);
        appliedFormatKey = formatKey;
      }

      messageFormatSupport.setLocale(resourceBundleFactory.getLocale());
      messageFormatSupport.setTimeZone(resourceBundleFactory.getTimeZone());
      return messageFormatSupport.performFormat(runtime.getDataRow());
    }
    catch (MissingResourceException mre)
    {
      if (logger.isDebugEnabled())
View Full Code Here


  }

  private Locale computeLocale()
  {
    Locale locale;
    ResourceBundleFactory resourceBundleFactory = getResourceBundleFactory();
    if (resourceBundleFactory != null)
    {
      locale = resourceBundleFactory.getLocale();
    }
    else
    {
      locale = LocaleHelper.getLocale();
    }
View Full Code Here

    if (runtime == null)
    {
      return null;
    }

    final ResourceBundleFactory resourceBundleFactory = runtime.getResourceBundleFactory();
    final Locale newLocale = resourceBundleFactory.getLocale();
    if (ObjectUtilities.equal(newLocale, locale) == false)
    {
      messageFormatSupport.setLocale(resourceBundleFactory.getLocale());
      locale = newLocale;
    }
    final TimeZone newTimeZone = resourceBundleFactory.getTimeZone();
    if (ObjectUtilities.equal(newTimeZone, timeZone) == false)
    {
      messageFormatSupport.setTimeZone(newTimeZone);
      timeZone = newTimeZone;
    }
View Full Code Here

      if (resourceId == null)
      {
        return null;
      }

      final ResourceBundleFactory resourceBundleFactory =
          runtime.getResourceBundleFactory();
      final ResourceBundle bundle =
          resourceBundleFactory.getResourceBundle(resourceId);
      if (bundle != null)
      {
        return bundle.getObject(svalue);
      }
    }
View Full Code Here

      initialSubReport.reconnectParent(subreportFromMarker.getParentSection());
      needPreProcessing = true;
    }

    final DefaultFlowController parentStateFlowController = parentState.getFlowController();
    final ResourceBundleFactory resourceBundleFactory = parentState.getResourceBundleFactory();

    if (isSubReportInvisible(initialSubReport, parentStateFlowController))
    {
      // make it a minimum effort report, but still enter the loop.
      final ReportDefinition parentReport = parentState.getReport();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ResourceBundleFactory

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.