|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.nls.LocaleContext
Context for locale-specific operations and properties. All of the properties should initially default to those of the base Locale, while allowing the locale-specific properties to be overridden.
It is expected that additional properties will be added to this class over time in order to support overriding the date and number formats.
Clients should never subclass this class.
Constructor Summary | |
LocaleContext()
Creates a LocaleContext based off of the default Locale. |
|
LocaleContext(java.util.Locale baseLocale)
Creates a LocaleContext based off of the specified Locale. |
|
LocaleContext(java.util.Locale baseLocale,
java.util.Locale translationLocale)
Creates a LocaleContext based off of the specified Locale and using a different Locale for translations. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Override of Object.equals(). |
java.util.ResourceBundle |
getBundle(java.lang.String baseBundleName)
Returns the resource bundle with the specified name, for this translation locale. |
DateFormatContext |
getDateFormatContext()
Returns the DateFormatContext containing all date format parameters, falling back on defaults when getDateFormatContextImpl
returns null; |
protected DateFormatContext |
getDateFormatContextImpl()
Returns the DateFormatContext containing all date format parameters. |
DecimalFormatContext |
getDecimalFormatContext()
Returns the DecimalFormatContext containing all number format parameters, falling back on defaults when getDecimalFormatContextImpl
returns null; |
protected DecimalFormatContext |
getDecimalFormatContextImpl()
Returns the DecimalFormatContext containing all number format parameters. |
java.lang.String |
getIANALocaleString()
Returns the Locale in IANA String format. |
java.util.Locale |
getLocale()
Returns the locale that should be used for rendering. |
int |
getReadingDirection()
Returns the reading direction that should be used for rendering. |
java.util.TimeZone |
getTimeZone()
Returns the TimeZone that the user is running in. |
java.lang.String |
getTranslationIANALocaleString()
Returns the translation Locale in IANA String format. |
java.util.Locale |
getTranslationLocale()
Returns the locale that should be used for translations.. |
int |
hashCode()
Override of Object.hashCode(). |
void |
setReadingDirection(int newReadingDirection)
Deprecated. use MutableLocaleContext.setReadingDirection() instead |
void |
setTimeZone(java.util.TimeZone newTimeZone)
Deprecated. use MutableLocaleContext.setTimeZone() instead |
java.lang.String |
toString()
Override of Object.toString(). |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LocaleContext()
public LocaleContext(java.util.Locale baseLocale)
public LocaleContext(java.util.Locale baseLocale, java.util.Locale translationLocale)
baseLocale
- Locale providing default behavior for the LocaleContext.
If not specified, the defualt Locale is used.translationLocale
- Locale to use for translations. If not
specified, the baseLocale is used.Method Detail |
public java.util.Locale getLocale()
public java.util.Locale getTranslationLocale()
public java.lang.String getIANALocaleString()
public java.lang.String getTranslationIANALocaleString()
public int getReadingDirection()
oracle.bali.share.nls.LocaleUtils
.
This method will never return
LocaleUtils.DIRECTION_DEFAULT
.
setReadingDirection(int)
,
LocaleUtils
public void setReadingDirection(int newReadingDirection)
oracle.bali.share.nls.LocaleUtils
.MutableLocaleContext
public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone newTimeZone)
MutableLocaleContext
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ResourceBundle getBundle(java.lang.String baseBundleName) throws java.util.MissingResourceException
As the LocaleContext maintains a cache of found ResourceBundles,
this is much faster than using
ResourceBundle.getBundle
ResourceBundle.getBundle(java.lang.String)
public final DateFormatContext getDateFormatContext()
getDateFormatContextImpl
returns null;public final DecimalFormatContext getDecimalFormatContext()
getDecimalFormatContextImpl
returns null;public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected DateFormatContext getDateFormatContextImpl()
getDateFormatContext
will
use the default value instead.protected DecimalFormatContext getDecimalFormatContextImpl()
getDecimalFormatContext
will
use the default value instead.
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |