Package org.vaadin.miki.events.click
Interface ComponentClickNotifier<C extends com.vaadin.flow.component.Component & Clickable>
-
- All Known Implementing Classes:
MultiClickButton
public interface ComponentClickNotifier<C extends com.vaadin.flow.component.Component & Clickable>Marker interface for objects that broadcastComponentClickEvents.- Since:
- 2020-07-08
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddClickListener(ComponentClickListener<C> listener)Adds a listener.
-
-
-
Method Detail
-
addClickListener
com.vaadin.flow.shared.Registration addClickListener(ComponentClickListener<C> listener)
Adds a listener.- Parameters:
listener- Listener to be notified when event is fired.- Returns:
- A
Registrationthat can be used to stop listening to the event.
-
-