Package de.xima.fc.gui.common.bean
Class LocaleBean
java.lang.Object
de.xima.fc.gui.common.bean.LocaleBean
- All Implemented Interfaces:
Serializable
Bean des aktuellen
Locales- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcountryLocaleCodeChanged(javax.faces.event.ValueChangeEvent e) formatDate(LocalDate date, FormatStyle dateStyle) formatDate(Date date) formatDate(Date date, int dateStyle) formatDate(Locale locale, Date date) formatDateTime(Date date) formatDateTime(Date date, int dateStyle, int timeStyle) formatDateTime(Locale locale, Date date) formatDateTimeSeconds(Date date) formatDateTimeSeconds(Locale locale, Date date) formatLongDateTime(Date date) formatLongDateTime(Locale locale, Date date) formatLongDateTimeSeconds(Locale locale, Date date) formatMediumDateTime(Date date) formatMediumDateTime(Locale locale, Date date) formatMediumDateTimeSeconds(Locale locale, Date date) formatMessage(String i18nKey, Object... params) Retrieves the localized message for the given key, and formats that message with the given parameters.formatMessage(Locale locale, String i18nKey, Object... params) formatText(String text, Object... params) formatUtcDateTime(LocalDateTime date, FormatStyle dateStyle, FormatStyle timeStyle) Retrieves a map with all supported languages.getDateFormat(Locale locale) getDateTimeFormat(Locale locale) getDateTimeSecondsFormat(Locale locale) getINamedUiElementDisplayName(Class<? extends INamedUiElement> clazz) getINamedUiElementDisplayName(Locale locale, INamedUiElement element) getINamedUiElementDisplayName(Locale locale, Class<? extends INamedUiElement> clazz) Methode zum Ermitteln des aktuellen LocaleMethode zum Ermitteln der Sprache der aktuellenLocaleorg.primefaces.model.menu.MenuModelgetLongDateFormat(Locale locale) getLongDateTimeFormat(Locale locale) getLongDateTimeSecondsFormat(Locale locale) getLongTimeFormat(Locale locale) getMediumDateTimeFormat(Locale locale) getMediumDateTimeSecondsFormat(Locale locale) getMediumTimeFormat(Locale locale) getTimeFormat(Locale locale) getZoneIdDisplayName(String zoneId) getZoneIdDisplayName(ZoneId zoneId) booleanisZoneIdValid(String zoneId) voidsetLocaleCode(String localeCode) Methode zum Setzen derLocaleanhand des Sprachkey
-
Field Details
-
LOCALE_ATTR
-
-
Constructor Details
-
LocaleBean
public LocaleBean()
-
-
Method Details
-
getLocale
Methode zum Ermitteln des aktuellen Locale- Returns:
Localewelches aktuell konfiguriert ist
-
getSelectedLocale
-
getLanguage
-
getZoneIds
-
getServerZoneId
-
getCountriesInMap
Retrieves a map with all supported languages. The key is the display name of the language in the currentgetLocale(), the value is thelanguage code.- Returns:
- A map with all supported languages.
-
getLocaleOptionsMenu
public org.primefaces.model.menu.MenuModel getLocaleOptionsMenu() -
getLocaleCode
Methode zum Ermitteln der Sprache der aktuellenLocale -
setLocaleCode
Methode zum Setzen derLocaleanhand des Sprachkey- Parameters:
localeCode-Stringder Sprachkey
-
countryLocaleCodeChanged
public void countryLocaleCodeChanged(javax.faces.event.ValueChangeEvent e) -
changeCountryLocaleCode
public void changeCountryLocaleCode() -
getZoneIdDisplayName
-
getZoneIdDisplayName
-
isZoneIdValid
-
getDatePattern
-
getTimePattern
-
getDateTimePattern
-
getMediumDateTimePattern
-
getMediumTimePattern
-
getLongDateTimePattern
-
getLongDatePattern
-
getLongTimePattern
-
getCurrentDate
-
getCurrentLocalDate
-
getCurrentZoneId
-
getCurrentTimeZone
-
getUtcZoneId
-
getUtcTimeZone
-
getDateTimeSecondsPattern
-
getDateFormat
-
getTimeFormat
-
getDateFormat
-
getTimeFormat
-
getDateTimeFormat
-
getDateTimeFormat
-
getMediumDateTimeFormat
-
getMediumTimeFormat
-
getMediumDateTimeFormat
-
getMediumTimeFormat
-
getLongDateTimeFormat
-
getLongDateFormat
-
getLongTimeFormat
-
getLongDateTimeFormat
-
getLongDateFormat
-
getLongTimeFormat
-
getDateTimeSecondsFormat
-
getDateTimeSecondsFormat
-
getMediumDateTimeSecondsFormat
-
getMediumDateTimeSecondsFormat
-
getLongDateTimeSecondsFormat
-
getLongDateTimeSecondsFormat
-
formatMessage
Retrieves the localized message for the given key, and formats that message with the given parameters. The placeholders of the form{0},{1}etc. in the message are replaced with the first, seconds etc. given parameter.- Parameters:
i18nKey- Key for the localized message.params- Optional parameters. Placeholders are replaced with these parameters.- Returns:
- The message for the given key, formatted with the given parameters.
-
formatText
-
formatMessage
-
formatDate
-
formatDate
-
formatDateTime
-
formatDate
-
formatUtcDateTime
-
formatDate
-
formatDateTime
-
formatDateTime
-
formatMediumDateTime
-
formatMediumDateTime
-
formatLongDateTime
-
formatLongDateTime
-
formatDateTimeSeconds
-
formatDateTimeSeconds
-
formatMediumDateTimeSeconds
-
formatMediumDateTimeSeconds
-
formatLongDateTimeSeconds
-
formatLongDateTimeSeconds
-
getINamedUiElementDisplayName
-
getINamedUiElementDisplayName
-
getINamedUiElementDisplayName
-
getINamedUiElementDisplayName
-