Class ExtendedDatePicker

All Implemented Interfaces:
AttachNotifier, BlurNotifier<DatePicker>, DetachNotifier, Focusable<DatePicker>, FocusNotifier<DatePicker>, HasAriaLabel, HasElement, HasEnabled, HasHelper, HasLabel, HasPlaceholder, HasSize, HasStyle, HasTheme, HasValidation, HasValue<AbstractField.ComponentValueChangeEvent<DatePicker,LocalDate>,LocalDate>, HasValueAndElement<AbstractField.ComponentValueChangeEvent<DatePicker,LocalDate>,LocalDate>, HasAllowedCharPattern, HasAutoOpen, HasClearButton, HasClientValidation, HasOverlayClassName, HasPrefix, HasThemeVariant<DatePickerVariant>, HasTooltip, HasValidationProperties, InputField<AbstractField.ComponentValueChangeEvent<DatePicker,LocalDate>,LocalDate>, HasValidator<LocalDate>, Serializable

@Tag("fc-date-picker") @JsModule("./fc-date-picker/fc-date-picker.js") public class ExtendedDatePicker extends DatePicker
A DatePicker with UI controls for adjusting individual date parts and a date-based class name generator.
Author:
Javier Godoy / Flowing Code
See Also:
  • Constructor Details

    • ExtendedDatePicker

      public ExtendedDatePicker()
      Default constructor.
    • ExtendedDatePicker

      public ExtendedDatePicker(LocalDate initialDate)
      Convenience constructor to create a date picker with a pre-selected date in current UI locale format.
      Parameters:
      initialDate - the pre-selected date in the picker
  • Method Details

    • setClassNameGenerator

      public void setClassNameGenerator(ValueProvider<LocalDate,String> classNameGenerator)
      Sets the function that generates CSS class names for days in this calendar. Returning null from the generator results in no custom class name being set. Multiple class names can be returned from the generator as space-separated.
      Parameters:
      classNameGenerator - the ValueProvider to use for generating class names
    • refreshAll

      public void refreshAll()
      Refresh the styles of all dates in the displayed year and month.