Class YearMonthField

All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasEnabled, HasStyle, HasTheme, HasValue<AbstractField.ComponentValueChangeEvent<YearMonthField,YearMonth>,YearMonth>, HasValueAndElement<AbstractField.ComponentValueChangeEvent<YearMonthField,YearMonth>,YearMonth>, Serializable

@Tag("fc-year-month-field") @JsModule("./fc-year-month-field/fc-year-month-field.js") public class YearMonthField extends AbstractSinglePropertyField<YearMonthField,YearMonth> implements HasTheme
See Also:
  • Constructor Details

    • YearMonthField

      public YearMonthField()
      Constructs a new YearMonthField initializing its value to the current year and month.
  • Method Details

    • setI18n

      public void setI18n(DatePicker.DatePickerI18n i18n)
      Sets the i18n object.
      Parameters:
      i18n - the DatepickerI18n object used to initialize i18n
    • setMin

      public void setMin(YearMonth min)
      Sets the minimum year/month in the field.
      Parameters:
      min - the minimum year/month that is allowed to be selected, or null to remove any minimum constraints
    • getMin

      public YearMonth getMin()
      Gets the minimum year/month in the field.
      Returns:
      the minimum year/month that is allowed to be selected, or null if there's no minimum
    • setMax

      public void setMax(YearMonth max)
      Sets the maximum year/month in the field.
      Parameters:
      max - the maximum year/month that is allowed to be selected, or null to remove any maximum constraints
    • getMax

      public YearMonth getMax()
      Gets the maximum year/month in the field.
      Returns:
      the maximum year/month that is allowed to be selected, or null if there's no maximum