public interface TextProvider
This SPI-interface enables the access to calendrical
standard text informations and will be instantiated by a
ServiceLoader-mechanism.
The motivation is mainly to override the language-dependent forms of JDK-defaults with respect to standard elements like months, weekdays etc. Specific text forms which are not contained in JDK will instead be supplied by help of properties-files in the "data"-folder.
ServiceLoader| Modifier and Type | Method and Description |
|---|---|
String[] |
eras(String calendarType,
Locale locale,
TextWidth textWidth)
|
Locale[] |
getAvailableLocales()
Yields the supported languages.
|
ResourceBundle.Control |
getControl()
Returns a suitable object for controlling access to resources.
|
String[] |
getSupportedCalendarTypes()
Defines the supported calendar types.
|
String[] |
meridiems(String calendarType,
Locale locale,
TextWidth textWidth)
|
String[] |
months(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext,
boolean leapForm)
|
String[] |
quarters(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext)
|
String[] |
weekdays(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext)
|
String[] getSupportedCalendarTypes()
Defines the supported calendar types.
CalendarTypeLocale[] getAvailableLocales()
Yields the supported languages.
String[] months(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext, boolean leapForm)
calendarType - calendar typelocale - language of text outputtextWidth - text widthoutputContext - output contextleapForm - use leap form (for example the hebrew
month "Adar II")?String[] quarters(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext)
calendarType - calendar typelocale - language of text outputtextWidth - text widthoutputContext - output contextString[] weekdays(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext)
calendarType - calendar typelocale - language of text outputtextWidth - text widthoutputContext - output contextString[] eras(String calendarType, Locale locale, TextWidth textWidth)
calendarType - calendar typelocale - language of text outputtextWidth - text widthString[] meridiems(String calendarType, Locale locale, TextWidth textWidth)
calendarType - calendar typelocale - language of text outputtextWidth - text widthResourceBundle.Control getControl()
Returns a suitable object for controlling access to resources.
Copyright © 2014–2015. All rights reserved.