Package java.util

Examples of java.util.Locale$Builder


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


   *
   * @return The icon.
   */
  public Icon getLargeIcon()
  {
    final Locale locale = getContext().getLocale();
    return getIconTheme().getLargeIcon(locale, "action.page-setup.icon"); //$NON-NLS-1$
  }
View Full Code Here

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

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

   *
   * @param type the type.
   */
  public void setSelectedPrinter(final int type)
  {
    final Locale locale = getGuiContext().getLocale();

    final String oldEncoding = getEncoding();
    if (type == PlainTextExportDialog.TYPE_EPSON9_OUTPUT)
    {
      rbEpson9PrinterCommandSet.setSelected(true);
View Full Code Here

    @Before
    public void init() throws Exception {
        Link link = new Link();
        link.setReadableText(new I18nText());
        link.getReadableText().add(new Locale("en"), "hi");
        link.getReadableText().add(new Locale("es"), "hola");
        link.setUrl("http://localhost/application");
        link.setTooltipText(new I18nText());
        link.getTooltipText().add(new Locale("en"), "hi");
        link.getTooltipText().add(new Locale("es"), "hola");
        baseDao.create(link);
    }
View Full Code Here

        assertNull(link.getReadableText());
        assertNull(link.getTooltipText());
        link = new Link();
        link.setId(unique.getId());
        link.setReadableText(new I18nText());
        link.getReadableText().add(new Locale("en"), "new");
        link.getReadableText().add(new Locale("es"), "nuevo");
        link.setTooltipText(new I18nText());
        link.getTooltipText().add(new Locale("en"), "tooltip");
        link.getTooltipText().add(new Locale("es"), "etiqueta");
        link = linkParser.parse(link);
        assertEquals(link.getReadableText().getId(), unique.getReadableText().getId());
        assertEquals("new", link.getReadableText().getData().get(0).getTranslation());
        assertEquals(link.getTooltipText().getId(), unique.getTooltipText().getId());
        assertEquals("etiqueta", link.getTooltipText().getData().get(1).getTranslation());
View Full Code Here

    @Test
    public void testParse() {
        assertNull(textParser.parse(null));
        I18nText text = new I18nText();
        assertEquals(text, textParser.parse(text));
        text.add(new Locale("en"), "hi");
        text.add(new Locale("es"), "hola");
        baseDao.create(text);
        I18nText textNew = new I18nText();
        textNew.setId(text.getId());
        textNew.add(new Locale("en"), "other");
        textNew.add(new Locale("es"), "otro");
        I18nText parsed = textParser.parse(textNew);
        assertNotNull(parsed.getData().get(0).getId());
        assertEquals(parsed.getData().get(0).getTranslation(), "other");
        baseDao.update(parsed);
        assertTrue(baseDao.find(LocalizedValue.class, 0, 100).size() == 2 + number);
View Full Code Here

      {
        list.add(data);
      }
    }

    final Locale locale = Locale.getDefault();
    availableTypeNames = new String[list.size()];
    availableTypes = new Class[list.size()];
    for (int i = 0; i < list.size(); i++)
    {
      final ExpressionMetaData data = list.get(i);
View Full Code Here

   */
  public Object getValue(final ExpressionRuntime runtime, final Element element)
  {
    if (keepState == false && runtime != null)
    {
      final Locale locale = runtime.getResourceBundleFactory().getLocale();
      if (locale != null && locale.equals(lastLocale) == false)
      {
        lastLocale = locale;
        getSimpleDateFormat().setDateFormatSymbols(new DateFormatSymbols(locale));
        invalidateCache();
      }
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.