站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.1 API 英文版文档

LocaleSelector (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


org.jboss.seam.core
Class LocaleSelector

java.lang.Object
  extended by org.jboss.seam.core.LocaleSelector
All Implemented Interfaces:
Serializable

@Scope(value=SESSION)
@Name(value="localeSelector")
@Intercept(value=NEVER)
@Mutable
public class LocaleSelector
extends Object
implements Serializable

Selects the current user's locale

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
LocaleSelector()
           
 
Method Summary
 Locale calculateLocale(Locale jsfLocale)
           
 String getCountry()
           
 String getLanguage()
           
 Locale getLocale()
           
 String getLocaleString()
           
 List<javax.faces.model.SelectItem> getSupportedLocales()
           
 String getVariant()
           
static LocaleSelector instance()
           
 void select()
          Force the resource bundle to reload, using the current locale
 void setCountry(String country)
           
 void setLanguage(String language)
           
 void setLocale(Locale locale)
           
 void setLocaleString(String localeString)
           
 void setVariant(String variant)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleSelector

public LocaleSelector()
Method Detail

select

public void select()
Force the resource bundle to reload, using the current locale


calculateLocale

public Locale calculateLocale(Locale jsfLocale)

setLocale

public void setLocale(Locale locale)

getLocaleString

public String getLocaleString()

setLocaleString

public void setLocaleString(String localeString)

getSupportedLocales

public List<javax.faces.model.SelectItem> getSupportedLocales()

getLocale

public Locale getLocale()

instance

public static LocaleSelector instance()

getCountry

public String getCountry()

setCountry

public void setCountry(String country)

getLanguage

public String getLanguage()

setLanguage

public void setLanguage(String language)

getVariant

public String getVariant()

setVariant

public void setVariant(String variant)