Class TranslationFormBuilderServiceImpl
java.lang.Object
org.broadleafcommerce.openadmin.web.service.TranslationFormBuilderServiceImpl
- All Implemented Interfaces:
TranslationFormBuilderService
@Service("blTranslationFormBuilderService")
public class TranslationFormBuilderServiceImpl
extends Object
implements TranslationFormBuilderService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FormBuilderService
protected LocaleService
protected static final org.apache.commons.logging.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildListGrid
(List<Translation> translations, boolean isRte) Builds a ListGrid for the given list of translationsbuildTranslationForm
(ClassMetadata cmd, TranslationForm formProperties, TranslationFormAction action) Builds an EntityForm used to create or edit a translation valueprotected String
getFormFieldType
(TranslationForm formProperties) Determines the value to use for theField.getFieldType()
.protected ComboField
getLocaleField
(String value) protected String
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
formBuilderService
-
localeService
-
-
Constructor Details
-
TranslationFormBuilderServiceImpl
public TranslationFormBuilderServiceImpl()
-
-
Method Details
-
buildListGrid
Description copied from interface:TranslationFormBuilderService
Builds a ListGrid for the given list of translations- Specified by:
buildListGrid
in interfaceTranslationFormBuilderService
isRte
- - whether or not the field that this translation is tied to is a rich text edit field- Returns:
- the list grid
-
buildTranslationForm
public EntityForm buildTranslationForm(ClassMetadata cmd, TranslationForm formProperties, TranslationFormAction action) Description copied from interface:TranslationFormBuilderService
Builds an EntityForm used to create or edit a translation value- Specified by:
buildTranslationForm
in interfaceTranslationFormBuilderService
action
- (values "add", "update" or "other")- Returns:
- the entity form
-
getFormFieldType
Determines the value to use for theField.getFieldType()
. This matches up with the name of an HTML template.- Parameters:
formProperties
- TheTranslationForm
submitted containing the properties necessary for translating a single entity property- Returns:
- The value to use for the
Field.getFieldType()
.
-
getLocaleField
-
getLocalizedEditToViewMessage
-