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 broadcast
ComponentClickEvents.- Since:
- 2020-07-08
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddClickListener(ComponentClickListener<C> listener) Adds a listener.
-
Method Details
-
addClickListener
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.
-