Examples of ResourceBundleFactory


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

  {
    ReportDefinition e = reportDefinition.getMasterReport();
    if (e instanceof MasterReport)
    {
      final MasterReport report = (MasterReport) e;
      final ResourceBundleFactory base = report.getResourceBundleFactory();
      if (base != null)
      {
        return base;
      }
    }
View Full Code Here

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

    final Configuration configuration;
    final ResourceKey contentBase;
    final ReportEnvironment reportEnvironment;
    final DataFactory reportDataFactory;
    final ResourceManager resourceManager;
    final ResourceBundleFactory resourceBundleFactory;

    if (masterReport == null)
    {
      contentBase = null;
      configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
View Full Code Here

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

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

  }

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

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

    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

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

      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

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

      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
Copyright © 2018 www.massapi.com. 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.