|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.context.LocaleContext
public abstract class LocaleContext
Context for locale-specific operations and properties available during rendering.
Constructor Summary | |
---|---|
protected |
LocaleContext()
|
Method Summary | |
---|---|
abstract java.util.ResourceBundle |
getBundle(java.lang.String baseBundleName)
Returns the resource bundle with the specified name, for this translation locale. |
abstract char |
getDecimalSeparator()
Returns the character used as a decimal separator. |
abstract java.lang.String |
getFormattingIANALocaleString()
Returns the formatting Locale in IANA String format. |
abstract java.util.Locale |
getFormattingLocale()
Returns the locale that should be used for formatting. |
abstract char |
getGroupingSeparator()
Returns the character used to separate number groups. |
java.lang.String |
getIANALocaleString()
Deprecated. use getFormattingIANALocaleString() |
java.util.Locale |
getLocale()
Deprecated. use getFormattingLocale() |
abstract java.util.TimeZone |
getTimeZone()
Returns the TimeZone of the application, as specified in trinidad-config.xml. |
abstract java.lang.String |
getTranslationIANALocaleString()
Returns the translation Locale in IANA String format. |
abstract java.util.Locale |
getTranslationLocale()
Returns the locale that should be used for translations.. |
abstract int |
getTwoDigitYearStart()
Returns the year offset for parsing years with only two digits. |
abstract boolean |
isRightToLeft()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LocaleContext()
Method Detail |
---|
public abstract java.util.Locale getFormattingLocale()
public abstract java.lang.String getFormattingIANALocaleString()
@Deprecated public java.util.Locale getLocale()
@Deprecated public java.lang.String getIANALocaleString()
public abstract java.util.Locale getTranslationLocale()
public abstract java.lang.String getTranslationIANALocaleString()
public abstract boolean isRightToLeft()
public abstract java.util.TimeZone getTimeZone()
public abstract 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
java.util.MissingResourceException
ResourceBundle.getBundle(java.lang.String)
public abstract int getTwoDigitYearStart()
public abstract char getGroupingSeparator()
public abstract char getDecimalSeparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |