Package de.xima.fc.gui.common.bean
Class LocaleBean
- java.lang.Object
 - 
- de.xima.fc.gui.common.bean.LocaleBean
 
 
- 
- All Implemented Interfaces:
 Serializable
@Named @SessionScoped public class LocaleBean extends Object implements Serializable
Bean des aktuellenLocales- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringLOCALE_ATTR 
- 
Constructor Summary
Constructors Constructor Description LocaleBean() 
- 
Method Summary
 
 - 
 
- 
- 
Field Detail
- 
LOCALE_ATTR
public static String LOCALE_ATTR
 
 - 
 
- 
Method Detail
- 
getLocale
public Locale getLocale()
Methode zum Ermitteln des aktuellen Locale- Returns:
 Localewelches aktuell konfiguriert ist
 
- 
getLanguage
public ELanguage getLanguage()
 
- 
getServerZoneId
public String getServerZoneId()
 
- 
getCountriesInMap
public Map<String,String> 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()
 
- 
setLocaleCode
public void setLocaleCode(String localeCode)
Methode zum Setzen derLocaleanhand des Sprachkey- Parameters:
 localeCode-Stringder Sprachkey
 
- 
countryLocaleCodeChanged
public void countryLocaleCodeChanged(javax.faces.event.ValueChangeEvent e)
 
- 
changeCountryLocaleCode
public void changeCountryLocaleCode()
 
- 
isZoneIdValid
public boolean isZoneIdValid(String zoneId)
 
- 
getDatePattern
public String getDatePattern()
 
- 
getTimePattern
public String getTimePattern()
 
- 
getDateTimePattern
public String getDateTimePattern()
 
- 
getMediumDateTimePattern
public String getMediumDateTimePattern()
 
- 
getMediumTimePattern
public String getMediumTimePattern()
 
- 
getLongDateTimePattern
public String getLongDateTimePattern()
 
- 
getLongDatePattern
public String getLongDatePattern()
 
- 
getLongTimePattern
public String getLongTimePattern()
 
- 
getCurrentDate
public Date getCurrentDate()
 
- 
getCurrentLocalDate
public LocalDate getCurrentLocalDate()
 
- 
getCurrentZoneId
public ZoneId getCurrentZoneId()
 
- 
getCurrentTimeZone
public TimeZone getCurrentTimeZone()
 
- 
getUtcZoneId
public ZoneId getUtcZoneId()
 
- 
getUtcTimeZone
public TimeZone getUtcTimeZone()
 
- 
getDateTimeSecondsPattern
public String getDateTimeSecondsPattern()
 
- 
getDateFormat
public DateFormat getDateFormat()
 
- 
getTimeFormat
public DateFormat getTimeFormat()
 
- 
getDateFormat
public DateFormat getDateFormat(Locale locale)
 
- 
getTimeFormat
public DateFormat getTimeFormat(Locale locale)
 
- 
getDateTimeFormat
public DateFormat getDateTimeFormat()
 
- 
getDateTimeFormat
public DateFormat getDateTimeFormat(Locale locale)
 
- 
getMediumDateTimeFormat
public DateFormat getMediumDateTimeFormat()
 
- 
getMediumTimeFormat
public DateFormat getMediumTimeFormat()
 
- 
getMediumDateTimeFormat
public DateFormat getMediumDateTimeFormat(Locale locale)
 
- 
getMediumTimeFormat
public DateFormat getMediumTimeFormat(Locale locale)
 
- 
getLongDateTimeFormat
public DateFormat getLongDateTimeFormat()
 
- 
getLongDateFormat
public DateFormat getLongDateFormat()
 
- 
getLongTimeFormat
public DateFormat getLongTimeFormat()
 
- 
getLongDateTimeFormat
public DateFormat getLongDateTimeFormat(Locale locale)
 
- 
getLongDateFormat
public DateFormat getLongDateFormat(Locale locale)
 
- 
getLongTimeFormat
public DateFormat getLongTimeFormat(Locale locale)
 
- 
getDateTimeSecondsFormat
public DateFormat getDateTimeSecondsFormat()
 
- 
getDateTimeSecondsFormat
public DateFormat getDateTimeSecondsFormat(Locale locale)
 
- 
getMediumDateTimeSecondsFormat
public DateFormat getMediumDateTimeSecondsFormat()
 
- 
getMediumDateTimeSecondsFormat
public DateFormat getMediumDateTimeSecondsFormat(Locale locale)
 
- 
getLongDateTimeSecondsFormat
public DateFormat getLongDateTimeSecondsFormat()
 
- 
getLongDateTimeSecondsFormat
public DateFormat getLongDateTimeSecondsFormat(Locale locale)
 
- 
formatMessage
public String formatMessage(String i18nKey, Object... params)
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.
 
 
- 
formatDate
public String formatDate(LocalDate date, FormatStyle dateStyle)
 
- 
formatUtcDateTime
public String formatUtcDateTime(LocalDateTime date, FormatStyle dateStyle, FormatStyle timeStyle)
 
- 
getINamedUiElementDisplayName
public String getINamedUiElementDisplayName(Class<? extends INamedUiElement> clazz)
 
- 
getINamedUiElementDisplayName
public String getINamedUiElementDisplayName(Locale locale, Class<? extends INamedUiElement> clazz)
 
- 
getINamedUiElementDisplayName
public String getINamedUiElementDisplayName(INamedUiElement element)
 
- 
getINamedUiElementDisplayName
public String getINamedUiElementDisplayName(Locale locale, INamedUiElement element)
 
 - 
 
 -