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:
  • Constructor Details

    • YearChangedEvent

      public YearChangedEvent(T source, boolean fromClient, @EventData("event.detail.value") String year)
      Constructs an event with the given source, boolean, and year.
      Parameters:
      source - the source component
      fromClient - whether the event originated from the client-side or the server-side
      year - the year value of the event
    • YearChangedEvent

      public YearChangedEvent(T source, boolean fromClient, int year)
      Constructs an event with the given source, boolean, and year.
      Parameters:
      source - the source component
      fromClient - whether the event originated from the client-side or the server-side
      year - the year value of the event
  • Method Details

    • getYear

      public int getYear()
      Gets the year of the event.
      Returns:
      the year of the event