Class DateSelectedEvent<T extends Component>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<T>
com.flowingcode.addons.ycalendar.DateSelectedEvent<T>
All Implemented Interfaces:
Serializable

@DomEvent(value="date-selected", debounce=) public class DateSelectedEvent<T extends Component> extends ComponentEvent<T>
See Also:
  • Constructor Details

    • DateSelectedEvent

      public DateSelectedEvent(T source, boolean fromClient, @EventData("event.detail.value") String date)
      Creates a new instance of DateSelectedEvent with a specified source component and date string.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client, false otherwise
      date - a String representation of the date
      Throws:
      DateTimeParseException - if date argument cannot be parsed into a valid LocalDate
    • DateSelectedEvent

      public DateSelectedEvent(T source, boolean fromClient, LocalDate date)
      Creates a new instance of DateSelectedEvent with a specified source component and LocalDate.
      Parameters:
      source - the source component
      fromClient - true if the event originated from the client, false otherwise
      date - the selected date
      Throws:
      NullPointerException - if the LocalDate argument is null
  • Method Details

    • getDate

      public LocalDate getDate()
      Retrieves the selected date associated with the event.
      Returns:
      LocalDate retrieved from this event