Package org.vaadin.miki.events.click
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
ConstructorsConstructorDescriptionComponentClickEvent(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 TypeMethodDescriptioncom.vaadin.flow.component.ClickEvent<C>Returns the underlyingClickEvent.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ComponentClickEvent
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 componentoriginalEvent- Original click event with even more details. Can benull.
-
-
Method Details
-
getDetails
Returns the underlyingClickEvent.- Returns:
- A
ClickEvent. May benullif this event is not associated with any underlying event.
-