Package de.xima.fc.common.bean_models
Class DefaultLocalizationViewModel
- java.lang.Object
-
- de.xima.fc.common.bean_models.SourceableLocalizationViewModel<E>
-
- de.xima.fc.common.bean_models.PojoLocalizationViewModel<DefaultLocalizationViewModelEntry>
-
- de.xima.fc.common.bean_models.DefaultLocalizationViewModel
-
- All Implemented Interfaces:
ILocalizationViewModel<DefaultLocalizationViewModelEntry>
,Serializable
public class DefaultLocalizationViewModel extends PojoLocalizationViewModel<DefaultLocalizationViewModelEntry>
Default POJO implementation ofILocalizationViewModel
that uses a default entry type, if you do not need a custom entry type.- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalizationViewModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultLocalizationViewModelEntry
newEntry()
static DefaultLocalizationViewModelEntry
of(Locale locale)
Creates a new view model for the given locale, with no messages.static DefaultLocalizationViewModelEntry
of(Locale locale, Map<String,String> messages)
Creates a new view model for the given locale and messages.-
Methods inherited from class de.xima.fc.common.bean_models.PojoLocalizationViewModel
getLocalizations, setLocalizations
-
Methods inherited from class de.xima.fc.common.bean_models.SourceableLocalizationViewModel
addNewLocale, getActiveTabIndex, getLocalizationsByLocale, getNewLanguageTag, getSelectedLocale, getTabTitle, getViewLocale, removeLocale, setActiveTabIndex, setNewLanguageTag, setSelectedLocale, setViewLocale
-
-
-
-
Method Detail
-
newEntry
protected DefaultLocalizationViewModelEntry newEntry()
- Specified by:
newEntry
in classSourceableLocalizationViewModel<DefaultLocalizationViewModelEntry>
-
of
public static DefaultLocalizationViewModelEntry of(Locale locale)
Creates a new view model for the given locale, with no messages.- Parameters:
locale
- The locale to create the view model for.- Returns:
- The new view model.
-
of
public static DefaultLocalizationViewModelEntry of(Locale locale, Map<String,String> messages)
Creates a new view model for the given locale and messages.- Parameters:
locale
- The locale to create the view model for.messages
- The messages to add to the view model.- Returns:
- The new view model.
-
-