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 isClickEvent, 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
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.ClickEvent<C>getDetails()Returns the underlyingClickEvent.-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
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 componentoriginalEvent- Original click event with even more details. Can benull.
-
-
Method Detail
-
getDetails
public com.vaadin.flow.component.ClickEvent<C> getDetails()
Returns the underlyingClickEvent.- Returns:
- A
ClickEvent. May benullif this event is not associated with any underlying event.
-
-