Package com.flowingcode.addons.ycalendar
Class YearChangedEvent<T extends Component>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<T>
com.flowingcode.addons.ycalendar.YearChangedEvent<T>
- Type Parameters:
T- the source component type
- All Implemented Interfaces:
Serializable
@DomEvent(value="year-changed",
debounce=)
public class YearChangedEvent<T extends Component>
extends ComponentEvent<T>
An event that is triggered when the year value changes in a
YearCalendar.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionYearChangedEvent(T source, boolean fromClient, int year) Constructs an event with the givensource,boolean, andyear.YearChangedEvent(T source, boolean fromClient, String year) Constructs an event with the givensource,boolean, andyear. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
YearChangedEvent
Constructs an event with the givensource,boolean, andyear.- Parameters:
source- the source componentfromClient- whether the event originated from the client-side or the server-sideyear- the year value of the event
-
YearChangedEvent
Constructs an event with the givensource,boolean, andyear.- Parameters:
source- the source componentfromClient- whether the event originated from the client-side or the server-sideyear- the year value of the event
-
-
Method Details
-
getYear
public int getYear()Gets the year of the event.- Returns:
- the year of the event
-