|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.localization.LocaleUtils
Field Summary | |
static java.lang.String |
DEFAULT_LOCALE
|
static java.lang.String |
DP_KEY
|
Method Summary | |
static java.util.Locale |
getLocale()
This method attempts to determine the appropriate Locale object for the current user. |
static java.util.Locale |
parseLocaleString(java.lang.String localeString)
This method converts a String containing locale information to a Locale object. |
static void |
setLocale(java.util.Locale locale)
This method sets the Locale object for the current thread |
static void |
setLocale(java.lang.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 java.lang.String DEFAULT_LOCALE
public static final java.lang.String DP_KEY
Method Detail |
public static java.util.Locale parseLocaleString(java.lang.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 java.util.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(java.util.Locale locale)
locale
- The Locale objectpublic static void setLocale(java.lang.String localeString)
localeString
- A Locale string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |