Class XItemRenderData.I18N

    • Constructor Detail

      • I18N

        public I18N()
    • Method Detail

      • 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
      • 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