com.vaadin.flow.component.
Interface ClickNotifier<T extends Component>
-
Type Parameters:
T
- the type of the component returned at theComponentEvent.getSource()
All Superinterfaces:
All Known Implementing Classes:
Article, Aside, Button, Checkbox, DescriptionList, DescriptionList.Description, DescriptionList.Term, Div, Emphasis, Footer, FormLayout.FormItem, GeneratedVaadinButton, GeneratedVaadinCheckbox, GeneratedVaadinFormItem, GeneratedVaadinRadioButton, GeneratedVaadinSplitLayout, H1, H2, H3, H4, H5, H6, Header, ListItem, Main, NativeButton, Nav, OrderedList, Paragraph, Section, Span, SplitLayout, UnorderedList
public interface ClickNotifier<T extends Component> extends Serializable
Mixin interface for components that support adding click listeners to the their root elements.
Since:
1.0
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and Description default Registration
addClickListener(ComponentEventListener<ClickEvent<T>> listener)
Adds a click listener to this component.
-
-
-
Method Detail
-
addClickListener
default Registration addClickListener(ComponentEventListener<ClickEvent<T>> listener)
Adds a click listener to this component.
Parameters:
listener
- the listener to add, notnull
Returns:
a handle that can be used for removing the listener
-
-