public final class View extends Object implements Localizable<View>
View
class which acts as a DTO for the ViewName
enum.Modifier and Type | Method and Description |
---|---|
static View |
create(String id,
com.edorasware.commons.core.util.string.I18NString name,
String icon,
String path,
Collection<Badge> badges)
Creates a new view instance by
ViewName and specified view properties. |
com.google.common.collect.ImmutableList<Badge> |
getBadges() |
String |
getIcon() |
String |
getId() |
String |
getName() |
String |
getPath() |
View |
localize(org.springframework.context.MessageSource messageSource,
Locale locale)
Localizes the current instance and returns a localized version of the implementing class with respect to the specified
Locale . |
View |
resolvePlaceholders(Map<String,String> placeholderAndKeysMap) |
String |
toString() |
public static View create(String id, com.edorasware.commons.core.util.string.I18NString name, String icon, String path, Collection<Badge> badges)
ViewName
and specified view properties.id
- the id of the viewname
- the i18n name of the viewicon
- the icon of the viewpath
- the path of the viewbadges
- the badges attached to the viewpublic String getId()
public String getName()
public String getIcon()
public String getPath()
public com.google.common.collect.ImmutableList<Badge> getBadges()
public View localize(org.springframework.context.MessageSource messageSource, Locale locale)
Localizable
Locale
.localize
in interface Localizable<View>
messageSource
- the message source which translates the i18n codes for the localizationlocale
- the specified locale in which the i18n codes are translatedCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.