Class CronExpressionFieldI18n
java.lang.Object
com.flowingcode.vaadin.addons.cronexpressionfield.CronExpressionFieldI18n
- All Implemented Interfaces:
Serializable
Internationalization object for customizing the component UI texts. An instance with the default messages can be
obtained using
createDefault().- Author:
- Sofia Nuñez / Flowing Code
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CronExpressionFieldI18nCreates a new instance ofCronExpressionFieldI18nwith default values.Gets the label for the clear button.Gets the label for the common expressions section.Gets the label for the cron expression input.Gets the label for the day-of-month field.Gets the tooltip for the day-of-month input field.Gets the tooltip for the day selector.Gets the label for the description field.Gets the placeholder text for the description field.Gets the tooltip for the cron expression input.Gets the localized layout option labels.getMonth()Gets the label for the month selector.Gets the tooltip for the month input field.Gets the label for the "Repeat every" selector.Gets the label for the "Show next dates" button.Gets the label for the "Starts at" field.Gets the tooltip for the "Starts at" field.Gets the tooltip for the time amount input.getUnits()Gets the list of time unit labels.setClearBtn(String clearBtn) Sets the label for the clear button.setCommonExpressionsLabel(String commonExpressionsLabel) Sets the label for the common expressions section.setCronExpressionLabel(String cronExpressionLabel) Sets the label for the cron expression input.setDayOfMonthLabel(String dayOfMonthLabel) Sets the label for the day-of-month field.setDayOfMonthTooltip(String dayOfMonthTooltip) Sets the tooltip for the day-of-month input field.setDaySelectorTooltip(String daySelectorTooltip) Sets the tooltip for the day selector.setDescriptionLabel(String descriptionLabel) Sets the label for the description field.setDescriptionPlaceholder(String descriptionPlaceholder) Sets the placeholder text for the description field.setInputExpressionTooltip(String inputExpressionTooltip) Sets the tooltip for the cron expression input.setLayoutOptions(Map<LayoutOptions, String> layoutOptions) Sets the localized layout option labels.Sets the label for the month selector.setMonthFieldTooltip(String monthFieldTooltip) Sets the tooltip for the month input field.setRepeatEveryLabel(String repeatEveryLabel) Sets the label for the "Repeat every" selector.setShowNextDatesBtn(String showNextDatesBtn) Sets the label for the "Show next dates" button.setStartsAtLabel(String startsAtLabel) Sets the label for the "Starts at" field.setStartsAtTooltip(String startsAtTooltip) Sets the tooltip for the "Starts at" field.setTimeAmountTooltip(String timeAmountTooltip) Sets the tooltip for the time amount input.setTimePickerLabel(String timePickerLabel) Sets the label for the time picker (alias for starts at label).setUnits(Map<CronExpressionField.Units, String> units) Sets the list of time unit labels.
-
Method Details
-
createDefault
Creates a new instance ofCronExpressionFieldI18nwith default values.- Returns:
- a new
CronExpressionFieldI18ninstance
-
getCronExpressionLabel
Gets the label for the cron expression input.- Returns:
- the cron expression label
-
setCronExpressionLabel
Sets the label for the cron expression input.- Parameters:
cronExpressionLabel- the label to set- Returns:
- this instance for method chaining
-
getClearBtn
Gets the label for the clear button.- Returns:
- the clear button label
-
setClearBtn
Sets the label for the clear button.- Parameters:
clearBtn- the label to set- Returns:
- this instance for method chaining
-
getLayoutOptions
Gets the localized layout option labels.- Returns:
- a map of layout options and their labels
-
setLayoutOptions
Sets the localized layout option labels.- Parameters:
layoutOptions- a map of layout options and labels
-
getStartsAtLabel
Gets the label for the "Starts at" field.- Returns:
- the starts at label
-
setStartsAtLabel
Sets the label for the "Starts at" field.- Parameters:
startsAtLabel- the label to set
-
setTimePickerLabel
Sets the label for the time picker (alias for starts at label).- Parameters:
timePickerLabel- the label to set- Returns:
- this instance for method chaining
-
getUnits
Gets the list of time unit labels.- Returns:
- the list of unit labels
-
setUnits
Sets the list of time unit labels.- Parameters:
units- the list of units- Returns:
- this instance for method chaining
-
getDescriptionLabel
Gets the label for the description field.- Returns:
- the description label
-
setDescriptionLabel
Sets the label for the description field.- Parameters:
descriptionLabel- the label to set- Returns:
- this instance for method chaining
-
getDescriptionPlaceholder
Gets the placeholder text for the description field.- Returns:
- the description placeholder
-
setDescriptionPlaceholder
Sets the placeholder text for the description field.- Parameters:
descriptionPlaceholder- the placeholder to set- Returns:
- this instance for method chaining
-
getDayOfMonthLabel
Gets the label for the day-of-month field.- Returns:
- the day-of-month label
-
setDayOfMonthLabel
Sets the label for the day-of-month field.- Parameters:
dayOfMonthLabel- the label to set- Returns:
- this instance for method chaining
-
getRepeatEveryLabel
Gets the label for the "Repeat every" selector.- Returns:
- the repeat-every label
-
setRepeatEveryLabel
Sets the label for the "Repeat every" selector.- Parameters:
repeatEveryLabel- the label to set- Returns:
- this instance for method chaining
-
getMonth
Gets the label for the month selector.- Returns:
- the month label
-
setMonth
Sets the label for the month selector.- Parameters:
month- the label to set- Returns:
- this instance for method chaining
-
getShowNextDatesBtn
Gets the label for the "Show next dates" button.- Returns:
- the button label
-
setShowNextDatesBtn
Sets the label for the "Show next dates" button.- Parameters:
showNextDatesBtn- the label to set- Returns:
- this instance for method chaining
-
getCommonExpressionsLabel
Gets the label for the common expressions section.- Returns:
- the common expressions label
-
setCommonExpressionsLabel
Sets the label for the common expressions section.- Parameters:
commonExpressionsLabel- the label to set- Returns:
- this instance for method chaining
-
getTimeAmountTooltip
Gets the tooltip for the time amount input.- Returns:
- the time amount tooltip
-
setTimeAmountTooltip
Sets the tooltip for the time amount input.- Parameters:
timeAmountTooltip- the tooltip text- Returns:
- this instance for method chaining
-
getDaySelectorTooltip
Gets the tooltip for the day selector.- Returns:
- the day selector tooltip
-
setDaySelectorTooltip
Sets the tooltip for the day selector.- Parameters:
daySelectorTooltip- the tooltip text- Returns:
- this instance for method chaining
-
getStartsAtTooltip
Gets the tooltip for the "Starts at" field.- Returns:
- the starts-at tooltip
-
setStartsAtTooltip
Sets the tooltip for the "Starts at" field.- Parameters:
startsAtTooltip- the tooltip text- Returns:
- this instance for method chaining
-
getDayOfMonthTooltip
Gets the tooltip for the day-of-month input field.- Returns:
- the day-of-month tooltip
-
setDayOfMonthTooltip
Sets the tooltip for the day-of-month input field.- Parameters:
dayOfMonthTooltip- the tooltip text- Returns:
- this instance for method chaining
-
getMonthFieldTooltip
Gets the tooltip for the month input field.- Returns:
- the month field tooltip
-
setMonthFieldTooltip
Sets the tooltip for the month input field.- Parameters:
monthFieldTooltip- the tooltip text- Returns:
- this instance for method chaining
-
getInputExpressionTooltip
Gets the tooltip for the cron expression input.- Returns:
- the input expression tooltip
-
setInputExpressionTooltip
Sets the tooltip for the cron expression input.- Parameters:
inputExpressionTooltip- the tooltip text- Returns:
- this instance for method chaining
-