|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.web.i18n.SimpleLocaleService
public class SimpleLocaleService
The service holds locale.
Constructor Summary | |
---|---|
SimpleLocaleService()
|
Method Summary | |
---|---|
String |
getCurrentLanguage()
Returns current language. |
String |
getCurrentLocale()
Returns current locale. |
String |
getDefaultLanguage()
Returns default language. |
String |
getDefaultLocale()
Returns default locale. |
void |
setDefaultLocale(String defaultLocale)
|
void |
setLocale(String locale)
Sets the locale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLocaleService()
Method Detail |
---|
public String getCurrentLocale()
getCurrentLocale
in interface LocaleService
public void setLocale(String locale)
setLocale
in interface LocaleAware
public String getCurrentLanguage()
getCurrentLanguage
in interface LocaleService
public String getDefaultLanguage()
LocaleService
getDefaultLanguage
in interface LocaleService
public String getDefaultLocale()
LocaleService
getDefaultLocale
in interface LocaleService
public void setDefaultLocale(String defaultLocale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |