|
||||||||||
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 ResourceBundle |
getBundle(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 String |
getFormattingIANALocaleString()
Returns the formatting Locale in IANA String format. |
abstract Locale |
getFormattingLocale()
Returns the locale that should be used for formatting. |
abstract char |
getGroupingSeparator()
Returns the character used to separate number groups. |
String |
getIANALocaleString()
Deprecated. use getFormattingIANALocaleString() |
Locale |
getLocale()
Deprecated. use getFormattingLocale() |
abstract TimeZone |
getTimeZone()
Returns the TimeZone of the application, as specified in trinidad-config.xml. |
abstract String |
getTranslationIANALocaleString()
Returns the translation Locale in IANA String format. |
abstract 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 Locale getFormattingLocale()
public abstract String getFormattingIANALocaleString()
@Deprecated public Locale getLocale()
@Deprecated public String getIANALocaleString()
public abstract Locale getTranslationLocale()
public abstract String getTranslationIANALocaleString()
public abstract boolean isRightToLeft()
public abstract TimeZone getTimeZone()
public abstract ResourceBundle getBundle(String baseBundleName) throws MissingResourceException
As the LocaleContext maintains a cache of found ResourceBundles,
this is much faster than using
ResourceBundle.getBundle
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 |