Uses of Enum
com.ibm.icu.text.DisplayContext
Packages that use DisplayContext
Package
Description
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
-
Uses of DisplayContext in com.ibm.icu.text
Subclasses with type arguments of type DisplayContext in com.ibm.icu.textMethods in com.ibm.icu.text that return DisplayContextModifier and TypeMethodDescriptionRelativeDateTimeFormatter.getCapitalizationContext()Return capitalization context.DateFormat.getContext(DisplayContext.Type type) Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION.DateIntervalFormat.getContext(DisplayContext.Type type) Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION.abstract DisplayContextLocaleDisplayNames.getContext(DisplayContext.Type type) Returns the current value for a specified DisplayContext.Type.NumberFormat.getContext(DisplayContext.Type type) Get the formatter's DisplayContext value for the specified DisplayContext.Type, such as CAPITALIZATION.static DisplayContextReturns the enum constant of this type with the specified name.static DisplayContext[]DisplayContext.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.ibm.icu.text with parameters of type DisplayContextModifier and TypeMethodDescriptionstatic LocaleDisplayNamesLocaleDisplayNames.getInstance(ULocale locale, DisplayContext... contexts) Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settingsstatic LocaleDisplayNamesLocaleDisplayNames.getInstance(Locale locale, DisplayContext... contexts) Returns an instance of LocaleDisplayNames that returns names formatted for the providedLocale, using the provided DisplayContext settingsstatic RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale, NumberFormat nf, RelativeDateTimeFormatter.Style style, DisplayContext capitalizationContext) Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object, style, and capitalization contextvoidDateFormat.setContext(DisplayContext context) Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE.voidDateIntervalFormat.setContext(DisplayContext context) Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE.voidNumberFormat.setContext(DisplayContext context) Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE.voidRuleBasedNumberFormat.setContext(DisplayContext context) Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE.voidSimpleDateFormat.setContext(DisplayContext context) Set a particular DisplayContext value in the formatter, such as CAPITALIZATION_FOR_STANDALONE.protected voidChineseDateFormat.subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.protected StringSimpleDateFormat.subFormat(char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.protected voidSimpleDateFormat.subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.