Class TranslationForm
java.lang.Object
org.broadleafcommerce.openadmin.web.form.TranslationForm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIsRte()Determines whether the translatable property is rich-text.voidsetCeilingEntity(String ceilingEntity) voidsetEntityId(String entityId) voidsetFieldType(String fieldType) voidDeprecated.usefieldTypeinsteadvoidsetLocaleCode(String localeCode) voidsetPropertyName(String propertyName) voidsetTranslatedValue(String translatedValue) voidsetTranslationId(Long translationId)
-
Field Details
-
ceilingEntity
-
entityId
-
propertyName
-
localeCode
-
translatedValue
-
translationId
-
isRte
Deprecated.Prefer usingfieldTypeto explicitly specify the field type for more advanced logic. Note thatgetIsRte()will remain as a shorthand way of determining if the field type should be rendered as HTML/rich-textWhether the field to translate is rich text -
fieldType
The type of field that the translatable property is. By default this should be one ofSupportedFieldType'svalues.Prefer using this field over
isRte.
-
-
Constructor Details
-
TranslationForm
public TranslationForm()
-
-
Method Details
-
getCeilingEntity
-
setCeilingEntity
-
getEntityId
-
setEntityId
-
getPropertyName
-
setPropertyName
-
getLocaleCode
-
setLocaleCode
-
getTranslatedValue
-
setTranslatedValue
-
getTranslationId
-
setTranslationId
-
getIsRte
Determines whether the translatable property is rich-text. This method has been updated to check whetherfieldTypematches such values asSupportedFieldType.HTMLorSupportedFieldType.HTML_BASICand thus is rich-text. For backwards compatibility, this will also check the now deprecatedisRte.- Returns:
- Whether the translatable property is rich-text.
-
setIsRte
Deprecated.usefieldTypeinstead -
getFieldType
-
setFieldType
-
fieldTypeto explicitly specify the field type for more advanced logic.