Class ComponentClickEvent<C extends com.vaadin.flow.component.Component & Clickable>

  • Type Parameters:
    C - Event source.
    All Implemented Interfaces:
    Serializable

    public class ComponentClickEvent<C extends com.vaadin.flow.component.Component & Clickable>
    extends com.vaadin.flow.component.ComponentEvent<C>
    An event for button clicks. There already is ClickEvent, but that one is fired automatically by the framework. This event must be explicitly fired by the source component.
    Since:
    2020-07-08
    Author:
    miki
    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentClickEvent

        public ComponentClickEvent​(C source,
                                   com.vaadin.flow.component.ClickEvent<C> originalEvent)
        Creates a new event using the given source and indicator whether the event originated from the client side or the server side.
        Parameters:
        source - the source component
        originalEvent - Original click event with even more details. Can be null.
    • Method Detail

      • getDetails

        public com.vaadin.flow.component.ClickEvent<C> getDetails()
        Returns the underlying ClickEvent.
        Returns:
        A ClickEvent. May be null if this event is not associated with any underlying event.