public class CronEditorWebComponent extends AbstractWebComponent
getHtml(CronEditorBean, String)
method.
Once the form has been submitted you can attain a cron string by processing the input parameters with the getCronExpressionFromInput(CronEditorBean)
method.
applicationProperties
Constructor and Description |
---|
CronEditorWebComponent() |
CronEditorWebComponent(VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
String |
getCronExpressionFromInput(CronEditorBean cronEditorBean)
This is a utility method that will process the parameters that the view put into the form and create a cron
string from the inputs.
|
String |
getHtml(CronEditorBean cronEditorBean,
I18nHelper i18n,
String paramPrefix,
String errorMessage)
Will produce HTML inputs for selecting a time period that will be represented by a cron string.
|
String |
getHtml(CronEditorBean cronEditorBean,
String paramPrefix)
Will produce HTML inputs for selecting a time period that will be represented by a cron string.
|
String |
getHtml(CronEditorBean cronEditorBean,
String paramPrefix,
String errorMessage)
Will produce HTML inputs for selecting a time period that will be represented by a cron string.
|
ErrorCollection |
validateInput(CronEditorBean cronEditorBean,
String fieldName) |
asHtml, getHtml
public CronEditorWebComponent()
public CronEditorWebComponent(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties)
public String getHtml(CronEditorBean cronEditorBean, String paramPrefix)
cronEditorBean
- defines how the form inputs will be intialized.paramPrefix
- prefix's the input names so that you can render multiple versions of this component on one
page.public String getHtml(CronEditorBean cronEditorBean, String paramPrefix, @Nullable String errorMessage)
cronEditorBean
- defines how the form inputs will be intialized.paramPrefix
- prefix's the input names so that you can render multiple versions of this component on one
page.errorMessage
- the error message that was associated with the last cron expression. Can be null to indicate
that there was no error.public String getHtml(CronEditorBean cronEditorBean, I18nHelper i18n, String paramPrefix, @Nullable String errorMessage)
cronEditorBean
- defines how the form inputs will be intialized.i18n
- used to resolve the i18n labeles.paramPrefix
- prefixes the input names so that you can render multiple versions of this component on one
page.errorMessage
- the error message that was associated with the last cron expression. Can be null to indicate
that there was no error.public ErrorCollection validateInput(CronEditorBean cronEditorBean, String fieldName)
public String getCronExpressionFromInput(CronEditorBean cronEditorBean)
cronEditorBean
- holds the state of the submitted formCopyright © 2002-2022 Atlassian. All Rights Reserved.