public class Context
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
freeCurrentContext()
Frees the Context object assigned to the
executing thread
|
java.lang.String |
getActiveLocaleLabel()
The localized display "label" for the currently
active locale
|
static Context |
getCurrentContext()
Get the current context for the current
running Thread.
|
java.util.Locale |
getLocale()
get the locale for the current Thread
or return the default locale if one isn't set
|
java.util.Locale |
getOriginalLocale()
Returns the original locale for a given request
This _might not_ be the same locale which is
ultimately used for translating application text
|
java.util.TimeZone |
getTimezone() |
void |
setLocale(java.util.Locale localeIn)
set the Locale for this thread
|
void |
setOriginalLocale(java.util.Locale localeIn)
Stores the original locale for a given request
This _might not_ be the same locale which is
ultimately used for translating application text
|
void |
setTimezone(java.util.TimeZone timezoneIn) |
public void setLocale(java.util.Locale localeIn)
localeIn
- Locale for this thread.public java.lang.String getActiveLocaleLabel()
public java.util.Locale getLocale()
public void setOriginalLocale(java.util.Locale localeIn)
localeIn
- localepublic java.util.Locale getOriginalLocale()
public java.util.TimeZone getTimezone()
public void setTimezone(java.util.TimeZone timezoneIn)
timezoneIn
- The timezone to set.public static Context getCurrentContext()
public static void freeCurrentContext()