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

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


    if (raw == null)
    {
      return null;
    }
    final String text = String.valueOf(raw);
    final ResourceBundleFactory rf = getResourceBundleFactory();
    if (rf == null)
    {
      return text.toLowerCase();
    }
    else
    {
      return text.toLowerCase(rf.getLocale());
    }
  }
View Full Code Here


    if (raw == null)
    {
      return null;
    }
    final String text = String.valueOf(raw);
    final ResourceBundleFactory rf = getResourceBundleFactory();
    if (rf == null)
    {
      return text.toUpperCase();
    }
    else
    {
      return text.toUpperCase(rf.getLocale());
    }
  }
View Full Code Here

    {
      report = subreportFromMarker;
      needPreProcessing = true;
    }

    final ResourceBundleFactory resourceBundleFactory;
    if (report.getResourceBundleFactory() != null)
    {
      resourceBundleFactory = MasterReport.computeAndInitResourceBundleFactory
          (report.getResourceBundleFactory(), parentState.getFlowController().getReportContext().getEnvironment());
View Full Code Here

          {
            sformat.setDateFormatSymbols(new DateFormatSymbols(locale));
          }
          else
          {
            final ResourceBundleFactory factory = getResourceBundleFactory();
            sformat.setDateFormatSymbols(new DateFormatSymbols(factory.getLocale()));
          }
          format = sformat;
          dateFormat = sformat;
          lastLocale = localeUsed;
        }
View Full Code Here

      return element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE);
    }

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

    {
      if (raw instanceof Date == false && raw instanceof Number == false)
      {
        throw new ReportDataFactoryException("For parameter " + name + " Expected date, but got " + raw.getClass());
      }
      final ResourceBundleFactory resourceBundleFactory = context.getResourceBundleFactory();
      final SimpleDateFormat dateFormat = new SimpleDateFormat(pattern, resourceBundleFactory.getLocale());
      dateFormat.setTimeZone(resourceBundleFactory.getTimeZone());
      return dateFormat.format(raw);
    }
    if (TYPE_INTEGER.equals(type) || TYPE_NUMERIC.equals(type))
    {
      if (raw instanceof Number == false)
View Full Code Here

   *
   * @return the calendar.
   */
  protected Calendar getCalendar()
  {
    final ResourceBundleFactory rf = getResourceBundleFactory();
    return Calendar.getInstance(rf.getLocale());
  }
View Full Code Here

    if (fields.isEmpty())
    {
      return getPattern();
    }

    final ResourceBundleFactory factory = getResourceBundleFactory();
    if (messageFormat == null || ObjectUtilities.equal(locale, factory.getLocale()) == false)
    {
      messageFormat = new FastMessageFormat(getPattern(), factory.getLocale());
      this.locale = factory.getLocale();
    }

    try
    {
      if (oldFieldValues == null || oldFieldValues.length != fields.size())
View Full Code Here

          {
            sformat.setDateFormatSymbols(new DateFormatSymbols(locale));
          }
          else
          {
            final ResourceBundleFactory factory = getResourceBundleFactory();
            sformat.setDateFormatSymbols(new DateFormatSymbols(factory.getLocale()));
          }
          format = sformat;
          dateFormat = sformat;
          lastLocale = localeUsed;
        }
View Full Code Here

   *
   * @return the formatted message.
   */
  public Object getValue()
  {
    final ResourceBundleFactory resourceBundleFactory = getResourceBundleFactory();
    messageFormatSupport.setFormatString(pattern);
    messageFormatSupport.setLocale(resourceBundleFactory.getLocale());

    final String result;
    if (isUrlEncodeValues())
    {
      final EncodeDataRow dataRow = new EncodeDataRow();
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.