Class TranslationForm

java.lang.Object
org.broadleafcommerce.openadmin.web.form.TranslationForm

public class TranslationForm extends Object
  • Field Details

    • ceilingEntity

      protected String ceilingEntity
    • entityId

      protected String entityId
    • propertyName

      protected String propertyName
    • localeCode

      protected String localeCode
    • translatedValue

      protected String translatedValue
    • translationId

      protected Long translationId
    • isRte

      @Deprecated protected Boolean isRte
      Deprecated.
      Prefer using fieldType to explicitly specify the field type for more advanced logic. Note that getIsRte() will remain as a shorthand way of determining if the field type should be rendered as HTML/rich-text
      Whether the field to translate is rich text
    • fieldType

      protected String fieldType
      The type of field that the translatable property is. By default this should be one of SupportedFieldType's values.

      Prefer using this field over isRte.

  • Constructor Details

    • TranslationForm

      public TranslationForm()
  • Method Details

    • getCeilingEntity

      public String getCeilingEntity()
    • setCeilingEntity

      public void setCeilingEntity(String ceilingEntity)
    • getEntityId

      public String getEntityId()
    • setEntityId

      public void setEntityId(String entityId)
    • getPropertyName

      public String getPropertyName()
    • setPropertyName

      public void setPropertyName(String propertyName)
    • getLocaleCode

      public String getLocaleCode()
    • setLocaleCode

      public void setLocaleCode(String localeCode)
    • getTranslatedValue

      public String getTranslatedValue()
    • setTranslatedValue

      public void setTranslatedValue(String translatedValue)
    • getTranslationId

      public Long getTranslationId()
    • setTranslationId

      public void setTranslationId(Long translationId)
    • getIsRte

      public Boolean getIsRte()
      Determines whether the translatable property is rich-text. This method has been updated to check whether fieldType matches such values as SupportedFieldType.HTML or SupportedFieldType.HTML_BASIC and thus is rich-text. For backwards compatibility, this will also check the now deprecated isRte.
      Returns:
      Whether the translatable property is rich-text.
    • setIsRte

      @Deprecated public void setIsRte(Boolean isRte)
      Deprecated.
      use fieldType instead
    • getFieldType

      public String getFieldType()
    • setFieldType

      public void setFieldType(String fieldType)