|
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 | +--oracle.cabo.share.nls.MutableLocaleContext
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.
Setting the DateFormatContext clones the parameter and wraps it in an ImmutableDateFormatContext if necessary. This will then be returned by getDateFormatContext. Clients are therefore guaranteed that this property can not be modified after it is set on the LocaleContext, without a subsequent call to setDateFormatContext.
Constructor Summary | |
MutableLocaleContext()
Creates a MutableLocaleContext based off of the default Locale. |
|
MutableLocaleContext(java.util.Locale baseLocale)
Creates a MutableLocaleContext based off of the specified Locale. |
|
MutableLocaleContext(LocaleContext context)
Creates a MutableLocaleContext based on a pre-existing LocaleContext. |
|
MutableLocaleContext(java.util.Locale baseLocale,
java.util.Locale translationLocale)
Creates a MutableLocaleContext based off of the specified Locale and using a different Locale for translations. |
Method Summary | |
protected DateFormatContext |
getDateFormatContextImpl()
Returns the DateFormatContext containing all date format parameters. |
protected DecimalFormatContext |
getDecimalFormatContextImpl()
Returns the DecimalFormatContext containing all number format parameters. |
void |
setDateFormatContext(DateFormatContext dateFormatContext)
Sets the DateFormatContext containing all date format parameters. |
protected void |
setDateFormatContextImpl(DateFormatContext dateFormatContext)
Sets the DateFormatContext containing all date format parameters. |
void |
setDecimalFormatContext(DecimalFormatContext decimalFormatContext)
Sets the DecimalFormatContext containing all number format parameters. |
protected void |
setDecimalFormatContextImpl(DecimalFormatContext decimalFormatContext)
Sets the DecimalFormatContext containing all number format parameters. |
void |
setReadingDirection(int newReadingDirection)
Sets the new reading direction to be one of the reading directions defined in oracle.bali.share.nls.LocaleUtils . |
void |
setTimeZone(java.util.TimeZone newTimeZone)
Sets the TimeZone that the user is running in. |
Methods inherited from class oracle.cabo.share.nls.LocaleContext |
equals, getBundle, getDateFormatContext, getDecimalFormatContext, getIANALocaleString, getLocale, getReadingDirection, getTimeZone, getTranslationIANALocaleString, getTranslationLocale, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MutableLocaleContext()
public MutableLocaleContext(java.util.Locale baseLocale)
public MutableLocaleContext(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.public MutableLocaleContext(LocaleContext context)
Method Detail |
public void setReadingDirection(int newReadingDirection)
oracle.bali.share.nls.LocaleUtils
.
If set to any value other than
LocaleUtils.DIRECTION_DEFAULT
, the new value will override
the default determination of the reading direction based on the Locale.
setReadingDirection
in class LocaleContext
LocaleContext.getReadingDirection()
,
LocaleUtils
public void setTimeZone(java.util.TimeZone newTimeZone)
setTimeZone
in class LocaleContext
oracle.cabo.share.nls.LocaleContext
MutableLocaleContext
public final void setDateFormatContext(DateFormatContext dateFormatContext)
getDateFormatContext
.public final void setDecimalFormatContext(DecimalFormatContext decimalFormatContext)
getDecimalFormatContext
.protected DateFormatContext getDateFormatContextImpl()
getDateFormatContextImpl
in class LocaleContext
protected void setDateFormatContextImpl(DateFormatContext dateFormatContext)
protected DecimalFormatContext getDecimalFormatContextImpl()
getDecimalFormatContextImpl
in class LocaleContext
protected void setDecimalFormatContextImpl(DecimalFormatContext decimalFormatContext)
|
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 |