Class CronExpressionFieldI18n

java.lang.Object
com.flowingcode.vaadin.addons.cronexpressionfield.CronExpressionFieldI18n
All Implemented Interfaces:
Serializable

public class CronExpressionFieldI18n extends Object implements 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 Details

    • createDefault

      public static CronExpressionFieldI18n createDefault()
      Creates a new instance of CronExpressionFieldI18n with default values.
      Returns:
      a new CronExpressionFieldI18n instance
    • getCronExpressionLabel

      public String getCronExpressionLabel()
      Gets the label for the cron expression input.
      Returns:
      the cron expression label
    • setCronExpressionLabel

      public CronExpressionFieldI18n setCronExpressionLabel(String cronExpressionLabel)
      Sets the label for the cron expression input.
      Parameters:
      cronExpressionLabel - the label to set
      Returns:
      this instance for method chaining
    • getClearBtn

      public String getClearBtn()
      Gets the label for the clear button.
      Returns:
      the clear button label
    • setClearBtn

      public CronExpressionFieldI18n setClearBtn(String clearBtn)
      Sets the label for the clear button.
      Parameters:
      clearBtn - the label to set
      Returns:
      this instance for method chaining
    • getLayoutOptions

      public Map<LayoutOptions,String> getLayoutOptions()
      Gets the localized layout option labels.
      Returns:
      a map of layout options and their labels
    • setLayoutOptions

      public CronExpressionFieldI18n setLayoutOptions(Map<LayoutOptions,String> layoutOptions)
      Sets the localized layout option labels.
      Parameters:
      layoutOptions - a map of layout options and labels
    • getStartsAtLabel

      public String getStartsAtLabel()
      Gets the label for the "Starts at" field.
      Returns:
      the starts at label
    • setStartsAtLabel

      public CronExpressionFieldI18n setStartsAtLabel(String startsAtLabel)
      Sets the label for the "Starts at" field.
      Parameters:
      startsAtLabel - the label to set
    • setTimePickerLabel

      public CronExpressionFieldI18n setTimePickerLabel(String timePickerLabel)
      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

      public Map<CronExpressionField.Units,String> 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

      public String getDescriptionLabel()
      Gets the label for the description field.
      Returns:
      the description label
    • setDescriptionLabel

      public CronExpressionFieldI18n setDescriptionLabel(String descriptionLabel)
      Sets the label for the description field.
      Parameters:
      descriptionLabel - the label to set
      Returns:
      this instance for method chaining
    • getDescriptionPlaceholder

      public String getDescriptionPlaceholder()
      Gets the placeholder text for the description field.
      Returns:
      the description placeholder
    • setDescriptionPlaceholder

      public CronExpressionFieldI18n setDescriptionPlaceholder(String descriptionPlaceholder)
      Sets the placeholder text for the description field.
      Parameters:
      descriptionPlaceholder - the placeholder to set
      Returns:
      this instance for method chaining
    • getDayOfMonthLabel

      public String getDayOfMonthLabel()
      Gets the label for the day-of-month field.
      Returns:
      the day-of-month label
    • setDayOfMonthLabel

      public CronExpressionFieldI18n setDayOfMonthLabel(String dayOfMonthLabel)
      Sets the label for the day-of-month field.
      Parameters:
      dayOfMonthLabel - the label to set
      Returns:
      this instance for method chaining
    • getRepeatEveryLabel

      public String getRepeatEveryLabel()
      Gets the label for the "Repeat every" selector.
      Returns:
      the repeat-every label
    • setRepeatEveryLabel

      public CronExpressionFieldI18n setRepeatEveryLabel(String repeatEveryLabel)
      Sets the label for the "Repeat every" selector.
      Parameters:
      repeatEveryLabel - the label to set
      Returns:
      this instance for method chaining
    • getMonth

      public String getMonth()
      Gets the label for the month selector.
      Returns:
      the month label
    • setMonth

      public CronExpressionFieldI18n setMonth(String month)
      Sets the label for the month selector.
      Parameters:
      month - the label to set
      Returns:
      this instance for method chaining
    • getShowNextDatesBtn

      public String getShowNextDatesBtn()
      Gets the label for the "Show next dates" button.
      Returns:
      the button label
    • setShowNextDatesBtn

      public CronExpressionFieldI18n setShowNextDatesBtn(String showNextDatesBtn)
      Sets the label for the "Show next dates" button.
      Parameters:
      showNextDatesBtn - the label to set
      Returns:
      this instance for method chaining
    • getCommonExpressionsLabel

      public String getCommonExpressionsLabel()
      Gets the label for the common expressions section.
      Returns:
      the common expressions label
    • setCommonExpressionsLabel

      public CronExpressionFieldI18n setCommonExpressionsLabel(String commonExpressionsLabel)
      Sets the label for the common expressions section.
      Parameters:
      commonExpressionsLabel - the label to set
      Returns:
      this instance for method chaining
    • getTimeAmountTooltip

      public String getTimeAmountTooltip()
      Gets the tooltip for the time amount input.
      Returns:
      the time amount tooltip
    • setTimeAmountTooltip

      public CronExpressionFieldI18n setTimeAmountTooltip(String timeAmountTooltip)
      Sets the tooltip for the time amount input.
      Parameters:
      timeAmountTooltip - the tooltip text
      Returns:
      this instance for method chaining
    • getDaySelectorTooltip

      public String getDaySelectorTooltip()
      Gets the tooltip for the day selector.
      Returns:
      the day selector tooltip
    • setDaySelectorTooltip

      public CronExpressionFieldI18n setDaySelectorTooltip(String daySelectorTooltip)
      Sets the tooltip for the day selector.
      Parameters:
      daySelectorTooltip - the tooltip text
      Returns:
      this instance for method chaining
    • getStartsAtTooltip

      public String getStartsAtTooltip()
      Gets the tooltip for the "Starts at" field.
      Returns:
      the starts-at tooltip
    • setStartsAtTooltip

      public CronExpressionFieldI18n setStartsAtTooltip(String startsAtTooltip)
      Sets the tooltip for the "Starts at" field.
      Parameters:
      startsAtTooltip - the tooltip text
      Returns:
      this instance for method chaining
    • getDayOfMonthTooltip

      public String getDayOfMonthTooltip()
      Gets the tooltip for the day-of-month input field.
      Returns:
      the day-of-month tooltip
    • setDayOfMonthTooltip

      public CronExpressionFieldI18n setDayOfMonthTooltip(String dayOfMonthTooltip)
      Sets the tooltip for the day-of-month input field.
      Parameters:
      dayOfMonthTooltip - the tooltip text
      Returns:
      this instance for method chaining
    • getMonthFieldTooltip

      public String getMonthFieldTooltip()
      Gets the tooltip for the month input field.
      Returns:
      the month field tooltip
    • setMonthFieldTooltip

      public CronExpressionFieldI18n setMonthFieldTooltip(String monthFieldTooltip)
      Sets the tooltip for the month input field.
      Parameters:
      monthFieldTooltip - the tooltip text
      Returns:
      this instance for method chaining
    • getInputExpressionTooltip

      public String getInputExpressionTooltip()
      Gets the tooltip for the cron expression input.
      Returns:
      the input expression tooltip
    • setInputExpressionTooltip

      public CronExpressionFieldI18n setInputExpressionTooltip(String inputExpressionTooltip)
      Sets the tooltip for the cron expression input.
      Parameters:
      inputExpressionTooltip - the tooltip text
      Returns:
      this instance for method chaining