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
Helper class for with convenience methods to access the localized value for a given item property.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.UsevalueOf
(XPropertyEnum.placeholder
), and encode the result for HTML, if necessary.getTitle()
Deprecated.UsevalueOf
(XPropertyEnum.title
).Deprecated.UsevalueOf
(XPropertyEnum.title
), and encode the result for HTML, if necessary.valueOf
(XPropertyEnum xPropertyEnum) valueOf
(XPropertyEnum xPropertyEnum, String defaultValue) Deprecated.
-
Constructor Details
-
I18N
public I18N()
-
-
Method Details
-
getDatasource
Deprecated.- Returns:
- The internationalized value for the property
datasource
-
getHelpText
Deprecated.- Returns:
- The internationalized value for the property
helptext
-
getTitle
Deprecated.UsevalueOf
(XPropertyEnum.title
).- Returns:
- The internationalized value for the property
title
-
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
Deprecated.- Returns:
- the internationalized value for the property placeholder
-
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
Deprecated.- Returns:
- The internationalized value for the property
vrulemismatch
-
valueOf
- Parameters:
xPropertyEnum
- Property to look up.- Returns:
- the value of the property
-
valueOf
- 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
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
- 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
-
valueOf
(XPropertyEnum.datasource
).