|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.localization.LocaleUtils
public class LocaleUtils
| Field Summary | |
|---|---|
static String |
DEFAULT_LOCALE
|
static String |
DP_KEY
|
| Method Summary | |
|---|---|
static Locale |
getLocale()
This method attempts to determine the appropriate Locale object for the current user. |
static Locale |
parseLocaleString(String localeString)
This method converts a String containing locale information to a Locale object. |
static void |
setLocale(Locale locale)
This method sets the Locale object for the current thread |
static void |
setLocale(String localeString)
This method sets the Locale object for the current thread |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_LOCALE
public static final String DP_KEY
| Method Detail |
|---|
public static Locale parseLocaleString(String localeString)
xx_XX_variant, where:
xx is a ISO 639 two letter lanaguage codexx is a ISO 639 two letter country codevariant is a browser or platform specific variant_XX and _variant portions are optional
public static Locale getLocale()
locale.default key in
BankframeResource.properties.
Finally if this key is not present it returns
the default system Locale
public static void setLocale(Locale locale)
locale - The Locale objectpublic static void setLocale(String localeString)
localeString - A Locale string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||