Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.client.widget
Class LocaleSelector

java.lang.Object
  extended by 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

Field Summary
static String DEFAULT
           
 
Constructor Summary
LocaleSelector()
           
 
Method Summary
 Collection<Locale> getSupportedLocales()
          Get all locales that your application supports, all the bundles that you have provided.
 void select(String locale)
          Set the locale as the current locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values
Constructor Detail

LocaleSelector

public LocaleSelector()
Method Detail

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

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.