Package de.xima.fc.form.common.models
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description I18N()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getDatasource()
Deprecated.String
getErrorMessageForDataTypeRegExp()
Deprecated.String
getHelpText()
Deprecated.String
getPlaceholder()
Deprecated.String
getPlaceholderHtmlAttrString()
Deprecated.UsevalueOf
(XPropertyEnum.placeholder
), and encode the result for HTML, if necessary.String
getTitle()
Deprecated.UsevalueOf
(XPropertyEnum.title
).String
getTitleHtmlAttrString()
Deprecated.UsevalueOf
(XPropertyEnum.title
), and encode the result for HTML, if necessary.String
valueOf(XPropertyEnum xPropertyEnum)
String
valueOf(XPropertyEnum xPropertyEnum, String defaultValue)
String
valueOf(String property, String defaultValue)
Deprecated.String
valueOf(String property, String defaultValue, boolean escapeHtml)
-
-
-
Method Detail
-
getDatasource
public String getDatasource()
Deprecated.- 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.UsevalueOf
(XPropertyEnum.title
).- Returns:
- The internationalized value for the property
title
-
getTitleHtmlAttrString
public String getTitleHtmlAttrString()
Deprecated.UsevalueOf
(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()
Deprecated.- Returns:
- the internationalized value for the property placeholder
-
getPlaceholderHtmlAttrString
public String getPlaceholderHtmlAttrString()
Deprecated.UsevalueOf
(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()
Deprecated.- 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)
Deprecated.- 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 foundescapeHtml
- Whether to escape HTML in the placeholder content of form element placeholders. Should be set totrue
when the property's content is an HTML string.- Returns:
- Translated value if found for the property. Else returns given default value
-
-