Class XItemRenderData.I18N

java.lang.Object
de.xima.fc.form.common.models.XItemRenderData.I18N
All Implemented Interfaces:
Serializable
Enclosing class:
XItemRenderData

public class XItemRenderData.I18N extends Object implements Serializable
Helper class for with convenience methods to access the localized value for a given item property.
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • I18N

      public I18N()
  • Method Details

    • getDatasource

      public String getDatasource()
      Returns:
      The internationalized value for the property datasource
    • getHelpText

      public String getHelpText()
      Deprecated.
      Returns:
      The internationalized value for the property helptext
    • getTitle

      public String getTitle()
      Deprecated.
      Returns:
      The internationalized value for the property title
    • getTitleHtmlAttrString

      public String getTitleHtmlAttrString()
      Deprecated.
      Use valueOf(XPropertyEnum.title), and encode the result for HTML, if necessary.
      Returns:
      The HTML attribute encoded internationalized value for the property title
    • getPlaceholder

      public String getPlaceholder()
      Returns:
      the internationalized value for the property placeholder
    • getPlaceholderHtmlAttrString

      public String getPlaceholderHtmlAttrString()
      Deprecated.
      Use valueOf(XPropertyEnum.placeholder), and encode the result for HTML, if necessary.
      Returns:
      The HTML attribute encoded internationalized value for the property placeholder
    • getErrorMessageForDataTypeRegExp

      public String getErrorMessageForDataTypeRegExp()
      Returns:
      The internationalized value for the property vrulemismatch
    • valueOf

      public String valueOf(XPropertyEnum xPropertyEnum)
      Parameters:
      xPropertyEnum - Property to look up.
      Returns:
      the value of the property
    • valueOf

      public String valueOf(XPropertyEnum xPropertyEnum, String defaultValue)
      Parameters:
      xPropertyEnum - Property to look up.
      defaultValue - Value to return if no translation was found
      Returns:
      Translated value if found for the property. Else returns given default value
    • valueOf

      public String valueOf(String property, String defaultValue)
      Parameters:
      property - Property to look up.
      defaultValue - Value to return if no translation was found
      Returns:
      Translated value if found for the property. Else returns given default value
    • valueOf

      public String valueOf(String property, String defaultValue, boolean escapeHtml)
      Parameters:
      property - Property to look up.
      defaultValue - Value to return if no translation was found
      escapeHtml - Whether to escape HTML in the placeholder content of form element placeholders. Should be set to true when the property's content is an HTML string.
      Returns:
      Translated value if found for the property. Else returns given default value