Package java.util

Examples of java.util.Locale$Builder


    return cn;
  }

  public Locale getSelectedLocale()
  {
    final Locale l = (Locale) localesModel.getSelectedKey();
    if (l == null)
    {
      return Locale.getDefault();
    }
    return l;
View Full Code Here


      this.dateType = this.dateType.getComponentType();
    }

    final String formatString = entry.getParameterAttribute(ParameterAttributeNames.Core.NAMESPACE,
        ParameterAttributeNames.Core.DATA_FORMAT, parameterContext);
    final Locale locale = parameterContext.getResourceBundleFactory().getLocale();
    final TimeZone timeZone = parameterContext.getResourceBundleFactory().getTimeZone();

    sdf = createDateFormat(formatString, locale, timeZone);

    dateChooserPanel = new DateChooserPanel(Calendar.getInstance(), true);
View Full Code Here

    int i2 = s.indexOf('_', i + 1);
    if (i < 0 || i2 < 0)
    {
      throw new ParseException("Invalid locale string");
    }
    return new Locale(s.substring(0, i).trim(), s.substring(i + 1, i2).trim(), s.substring(i2 + 1).trim());
  }
View Full Code Here

    public Locale getLocale()
    {
      final MasterReport report = getReportJob();
      if (report != null)
      {
        final Locale bundleLocale = report.getResourceBundleFactory().getLocale();
        if (bundleLocale != null)
        {
          return bundleLocale;
        }
        return report.getReportEnvironment().getLocale();
View Full Code Here

    this.updateContext = updateContext;
    this.parameterName = entry.getName();

    final String formatString = entry.getParameterAttribute(ParameterAttributeNames.Core.NAMESPACE,
        ParameterAttributeNames.Core.DATA_FORMAT, parameterContext);
    final Locale locale = parameterContext.getResourceBundleFactory().getLocale();
    final TimeZone timeZone = parameterContext.getResourceBundleFactory().getTimeZone();

    final Format format =
        TextComponentEditHandler.createFormat(formatString, locale, timeZone, entry.getValueType());
View Full Code Here

  {
    this.updateContext = updateContext;

    final String formatString = entry.getParameterAttribute(ParameterAttributeNames.Core.NAMESPACE,
        ParameterAttributeNames.Core.DATA_FORMAT, parameterContext);
    final Locale locale = parameterContext.getResourceBundleFactory().getLocale();
    final TimeZone timeZone = parameterContext.getResourceBundleFactory().getTimeZone();

    final Format format =
        TextComponentEditHandler.createFormat(formatString, locale, timeZone, entry.getValueType());
View Full Code Here

      catch (IntrospectionException e)
      {
        logger.warn("Expression '" + expression.getExpressionType() + ": Cannot get BeanDescriptor", e);
      }

      final Locale locale = Locale.getDefault();
      final String displayName = expression.getDisplayName(locale);
      if (isValid(displayName, expression.getName()) == false)
      {
        logger.warn("Expression '" + expression.getExpressionType() + ": No valid display name");
      }
View Full Code Here

{
  public static void main(String[] args)
  {
    ClassicEngineBoot.getInstance().start();
    final HashNMap expressionsByGroup = new HashNMap();
    final Locale locale = Locale.getDefault();

    ElementTypeRegistry registry = ElementTypeRegistry.getInstance();
    final ElementMetaData[] elementMetaDatas = registry.getAllElementTypes();
    for (int i = 0; i < elementMetaDatas.length; i++)
    {
View Full Code Here

    }
  }

  public static void main(String args[]) {
    try {
      Locale locale = Locale.US;
     
      if (Locale.getDefault().getLanguage().equals("de"))
        locale = new Locale("de", "DE");
      GUIUtils.defaultInitialization(locale);
      ImageIconFactory.addSearchPath("resources/test/icons");
      InternationalizationManager.addLanguageFile("resources/test/test");

      new Test();
View Full Code Here

   *
   * @return The icon.
   */
  public Icon getSmallIcon()
  {
    final Locale locale = getContext().getLocale();
    return getIconTheme().getSmallIcon(locale, "action.export-to-xssf-excel.small-icon"); //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of java.util.Locale$Builder

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.