public final class Action extends Object implements Localizable<Action>
Action
class which acts as a DTO for the ActionName
enum.Modifier and Type | Method and Description |
---|---|
static Action |
create(String id,
com.edorasware.commons.core.util.string.I18NString name,
String form,
String endpoint,
com.edorasware.commons.core.util.string.I18NString buttonLabel,
String icon,
boolean enabled)
Creates a new action instance by
ActionName and specified view properties. |
String |
getButtonLabel() |
String |
getEndpoint() |
String |
getForm() |
String |
getIcon() |
String |
getId() |
String |
getName() |
boolean |
isEnabled() |
Action |
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 . |
Action |
resolvePlaceholders(Map<String,String> placeholderAndKeysMap) |
String |
toString() |
public static Action create(String id, com.edorasware.commons.core.util.string.I18NString name, String form, String endpoint, com.edorasware.commons.core.util.string.I18NString buttonLabel, String icon, boolean enabled)
ActionName
and specified view properties.id
- the id of the actionname
- the i18n name of the actionfform
- the formendpoint
- the end point.buttonLabel
- the button label.icon
- the icon of the actionenabled
- true if the action should be enabledpublic String getId()
public String getName()
public String getForm()
public String getEndpoint()
public String getButtonLabel()
public String getIcon()
public boolean isEnabled()
public Action localize(org.springframework.context.MessageSource messageSource, Locale locale)
Localizable
Locale
.localize
in interface Localizable<Action>
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.