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 FormBuilderServiceprotected LocaleServiceprotected 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 StringgetFormFieldType(TranslationForm formProperties) Determines the value to use for theField.getFieldType().protected ComboFieldgetLocaleField(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:TranslationFormBuilderServiceBuilds a ListGrid for the given list of translations- Specified by:
buildListGridin interfaceTranslationFormBuilderServiceisRte- - 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:TranslationFormBuilderServiceBuilds an EntityForm used to create or edit a translation value- Specified by:
buildTranslationFormin interfaceTranslationFormBuilderServiceaction- (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- TheTranslationFormsubmitted containing the properties necessary for translating a single entity property- Returns:
- The value to use for the
Field.getFieldType().
-
getLocaleField
-
getLocalizedEditToViewMessage
-