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

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
org.vaadin.miki.events.click.ComponentClickEvent<C>
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:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.ClickEvent<C>
    Returns the underlying ClickEvent.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

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

    • 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.