org.jboss.errai.ui.client.widget
Class LocaleSelector
java.lang.Object
org.jboss.errai.ui.client.widget.LocaleSelector
@Singleton
public class LocaleSelector
- extends Object
Util component to get all locales that your application supports and set a specific one.
- Author:
- edewit@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
LocaleSelector
public LocaleSelector()
getSupportedLocales
public Collection<Locale> getSupportedLocales()
- Get all locales that your application supports, all the bundles that you have provided.
- Returns:
- supported locales
select
public void select(String locale)
- Set the
locale
as the current locale
- Parameters:
locale
- the locale to set as the current
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.