@Service(value="blTranslationFormBuilderService") public class TranslationFormBuilderServiceImpl extends Object implements TranslationFormBuilderService
Modifier and Type | Field and Description |
---|---|
protected FormBuilderService |
formBuilderService |
protected LocaleService |
localeService |
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
TranslationFormBuilderServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ListGrid |
buildListGrid(List<Translation> translations,
boolean isRte)
Builds a ListGrid for the given list of translations
|
EntityForm |
buildTranslationForm(ClassMetadata cmd,
TranslationForm formProperties,
TranslationFormAction action)
Builds an EntityForm used to create or edit a translation value
|
protected String |
getFormFieldType(TranslationForm formProperties)
Determines the value to use for the
Field.getFieldType() . |
protected ComboField |
getLocaleField(String value) |
protected String |
getLocalizedEditToViewMessage() |
protected static final org.apache.commons.logging.Log LOG
protected FormBuilderService formBuilderService
protected LocaleService localeService
public ListGrid buildListGrid(List<Translation> translations, boolean isRte)
TranslationFormBuilderService
buildListGrid
in interface TranslationFormBuilderService
isRte
- - whether or not the field that this translation is tied to is a rich text edit fieldpublic EntityForm buildTranslationForm(ClassMetadata cmd, TranslationForm formProperties, TranslationFormAction action)
TranslationFormBuilderService
buildTranslationForm
in interface TranslationFormBuilderService
action
- (values "add", "update" or "other")protected String getFormFieldType(TranslationForm formProperties)
Field.getFieldType()
. This matches up with the
name of an HTML template.formProperties
- The TranslationForm
submitted containing the properties
necessary for translating a single entity propertyField.getFieldType()
.protected ComboField getLocaleField(String value)
protected String getLocalizedEditToViewMessage()
Copyright © 2022. All rights reserved.