com.vaadin.flow.component.
Interface FocusNotifier<T extends Component>
-
Type Parameters:
T
- the type of the component returned at theComponentEvent.getSource()
All Superinterfaces:
All Known Subinterfaces:
Focusable<T>
All Known Implementing Classes:
AbstractNumberField, BigDecimalField, Button, Checkbox, ComboBox, CrudGrid, CustomField, DatePicker, DrawerToggle, EmailField, GeneratedVaadinButton, GeneratedVaadinCheckbox, GeneratedVaadinComboBox, GeneratedVaadinDatePicker, GeneratedVaadinEmailField, GeneratedVaadinNumberField, GeneratedVaadinPasswordField, GeneratedVaadinRadioButton, GeneratedVaadinSelect, GeneratedVaadinTextArea, GeneratedVaadinTextField, GeneratedVaadinTimePicker, Grid, GridPro, Input, IntegerField, IronList, NativeButton, NumberField, PasswordField, Select, TextArea, TextField, TimePicker, TreeGrid
public interface FocusNotifier<T extends Component> extends Serializable
Mixin interface to handle focus events on components.
Since:
1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static class
FocusNotifier.FocusEvent<C extends Component>
Represents the DOM event "focus".
-
Method Summary
All Methods Modifier and Type Method and Description default Registration
addFocusListener(ComponentEventListener<FocusNotifier.FocusEvent<T>> listener)
Add a listener to focus DOM events.
-
-
-
Method Detail
-
addFocusListener
default Registration addFocusListener(ComponentEventListener<FocusNotifier.FocusEvent<T>> listener)
Add a listener to focus DOM events.
Parameters:
listener
- the focus listenerReturns:
a registration that can be used to unregister the listener
See Also:
-
-