Package com.flowingcode.addons.ycalendar
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDateSelectedEvent(T source, boolean fromClient, String date) Creates a new instance of DateSelectedEvent with a specified source component and date string.DateSelectedEvent(T source, boolean fromClient, LocalDate date) Creates a new instance of DateSelectedEvent with a specified source component and LocalDate. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
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 componentfromClient- true if the event originated from the client, false otherwisedate- a String representation of the date- Throws:
DateTimeParseException- if date argument cannot be parsed into a valid LocalDate
-
DateSelectedEvent
Creates a new instance of DateSelectedEvent with a specified source component and LocalDate.- Parameters:
source- the source componentfromClient- true if the event originated from the client, false otherwisedate- the selected date- Throws:
NullPointerException- if the LocalDate argument is null
-
-
Method Details
-
getDate
Retrieves the selected date associated with the event.- Returns:
- LocalDate retrieved from this event
-