Package org.apache.myfaces.trinidadinternal.share.util

Examples of org.apache.myfaces.trinidadinternal.share.util.FastMessageFormat


      }

      String format = rc.getTranslatedString(formatKey);
      if (format != null)
      {
        FastMessageFormat fmf = new FastMessageFormat(format);
        linkText = fmf.format(srcs);
      }
    }

    _writeCellContents(context, rc, ttrc, hgrid, linkText, disabled, isTop, nextWindowStart);
  }
View Full Code Here


    return clientId.replace(':','_');
  }

  public static String getFormattedString(String pattern, String[] parameters)
  {
    FastMessageFormat formatter = new FastMessageFormat(pattern);
    return formatter.format(parameters);
  }
View Full Code Here

  static private final class FunctorMap extends AbstractMap<Object, String>
  {
    public FunctorMap(Object key)
    {
      // Assumes check against null above
      _format = new FastMessageFormat(key.toString());
    }
View Full Code Here

    )
  {
    // # for perf bug #1301909, store the format on the RenderingContext
    // per rendering pass. Eventually we want to store it across passes
    // based on Locale...
    FastMessageFormat formatter =
      (FastMessageFormat)context.getProperty(MARLIN_NAMESPACE, pattern);

    if (formatter == null)
    {
      formatter = new FastMessageFormat(pattern);
      context.setProperty(MARLIN_NAMESPACE, pattern, formatter);
    }

    return formatter.format(parameters);
  }
View Full Code Here

      }

      String format = rc.getTranslatedString(formatKey);
      if (format != null)
      {
        FastMessageFormat fmf = new FastMessageFormat(format);
        linkText = fmf.format(srcs);
      }
    }

    _writeCellContents(context, rc, ttrc, hgrid, linkText, disabled, isTop, nextWindowStart);
  }
View Full Code Here

    return clientId.replace(':','_');
  }

  public static String getFormattedString(String pattern, String[] parameters)
  {
    FastMessageFormat formatter = new FastMessageFormat(pattern);
    return formatter.format(parameters);
  }
View Full Code Here

    {
      String requiredMessageDetail =
      ((UIXEditableValue) component).getRequiredMessageDetail();
      if (requiredMessageDetail != null)
      {
        FastMessageFormat format =
        new FastMessageFormat(requiredMessageDetail);
        detail = format.format(params);
      }

    }

    if (detail == null)
View Full Code Here

    return clientId.replace(':','_');
  }

  public static String getFormattedString(String pattern, String[] parameters)
  {
    FastMessageFormat formatter = new FastMessageFormat(pattern);
    return formatter.format(parameters);
  }
View Full Code Here

    }
    }
    else
    {
      // format used for combining months and years
      FastMessageFormat titleFormat = _getTitleFormat(arc);

      String monthName = monthNames[monthIndex];
      String yearName = String.valueOf(year);

      String title = titleFormat.format(new String[]{monthName, yearName});

      writer.writeText(title, null);
    }
  }
View Full Code Here

  private FastMessageFormat _getMessageFormat(
    RenderingContext arc,
    String              translationKey)
  {
    FastMessageFormat format =
        new FastMessageFormat(arc.getTranslatedString(translationKey));

    return format;
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.share.util.FastMessageFormat

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.