Package com.atlassian.jira.issue.fields
Class CustomFieldDescription
java.lang.Object
com.atlassian.jira.issue.fields.CustomFieldDescription
Helper class for rendering the custom field description field.
- Since:
- v5.0.7
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldDescription
(RenderablePropertyFactory renderablePropertyFactory, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext authenticationContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateRenderablePropertyFor
(CustomField customField) Creates a RenderableProperty used for rendering view/edit controls for a given CustomField.createRenderablePropertyFor
(String description) Creates a RenderableProperty used for translating a given CustomField.
-
Constructor Details
-
CustomFieldDescription
public CustomFieldDescription(RenderablePropertyFactory renderablePropertyFactory, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
createRenderablePropertyFor
Creates a RenderableProperty used for rendering view/edit controls for a given CustomField. IfcustomField
is null, then the RenderableProperty will not have any associated storage (but can be used to render the description field in the "create custom field" page).- Parameters:
customField
- a CustomField (may be null)- Returns:
- a RenderableProperty
-
createRenderablePropertyFor
Creates a RenderableProperty used for translating a given CustomField. It just uses the passed in text.- Parameters:
description
-- Returns:
- a RenderableProperty
-