|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.util.config.Internationalization
Class representing a model for i18n configuration data.
Constructor Summary | |
Internationalization()
|
Method Summary | |
void |
addViewLanguage(java.lang.String lang)
Adds a language, specifying it's ISO two letter code. |
void |
addViewLocale(java.util.Locale locale)
Adds a view locale. |
java.lang.String |
getDefaultViewLanguage()
Returns the default view language in ISO two-letter format. |
java.util.Locale |
getDefaultViewLocale()
Returns the default view locale. |
java.lang.String |
getSystemLanguage()
Returns the system language in ISO two-letter format. |
java.util.Locale |
getSystemLocale()
Returns the system locale. |
java.lang.String |
getViewLanguageList()
Convenience method for obtaining the supported languages (represented in ISO two letter code) as a simple comma seperated list. |
boolean |
isSupportedViewLanguage(java.lang.String lang)
Tests if a given language (by ISO two letter code) is supported. |
boolean |
isSupportedViewLocale(java.util.Locale loc)
Tests if a given locale is supported. |
java.lang.String[] |
listViewLanguages()
Returns the list of languages (by their ISO two letter code). |
java.util.Locale[] |
listViewLocales()
Returns a list of view languages as locale instances. |
void |
removeViewLanguage(java.lang.String lang)
Removes a view language. |
void |
removeViewLocale(java.util.Locale locale)
Removes a view locale. |
void |
setDefaultViewLanguage(java.lang.String language)
Sets the default view language. |
void |
setDefaultViewLocale(java.util.Locale locale)
Sets the default view locale. |
void |
setSystemLanguage(java.lang.String language)
Sets the system language. |
void |
setSystemLocale(java.util.Locale locale)
Sets the system locale. |
void |
setViewLanguageList(java.lang.String list)
Convenience method for setting the supported languages (represented in ISO two letter code) as a simple comma seperated list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Internationalization()
Method Detail |
public java.lang.String getSystemLanguage()
public void setSystemLanguage(java.lang.String language)
language
- the language as String.public java.util.Locale getSystemLocale()
public void setSystemLocale(java.util.Locale locale)
locale
- a Locale instance.public java.lang.String getDefaultViewLanguage()
public void setDefaultViewLanguage(java.lang.String language)
language
- the language as String.public java.util.Locale getDefaultViewLocale()
public void setDefaultViewLocale(java.util.Locale locale)
locale
- a Locale instance.public java.lang.String getViewLanguageList()
Note that this is supposed to be helpful for simplifying the persistency mechanism.
public void setViewLanguageList(java.lang.String list)
Note that this is supposed to be helpful for simplifying the persistency mechanism.
public java.lang.String[] listViewLanguages()
public java.util.Locale[] listViewLocales()
public void addViewLanguage(java.lang.String lang)
lang
- the language as String.public void addViewLocale(java.util.Locale locale)
locale
- a Locale instance.public void removeViewLanguage(java.lang.String lang)
lang
- the language as String.public void removeViewLocale(java.util.Locale locale)
locale
- a Locale instance.public boolean isSupportedViewLanguage(java.lang.String lang)
lang
- a String representing a language.
public boolean isSupportedViewLocale(java.util.Locale loc)
loc
- a Locale instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |