Package com.vaadin.flow.component
Interface FocusNotifier<T extends Component>
-
- Type Parameters:
T- the type of the component returned at theComponentEvent.getSource()
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Focusable<T>
- All Known Implementing Classes:
AbstractNumberField,Anchor,BigDecimalField,Button,Checkbox,ComboBox,ComboBoxBase,CrudGrid,CustomField,DatePicker,DateTimePicker,DrawerToggle,EmailField,GeneratedVaadinButton,GeneratedVaadinCheckbox,GeneratedVaadinDatePicker,GeneratedVaadinEmailField,GeneratedVaadinNumberField,GeneratedVaadinPasswordField,GeneratedVaadinRadioButton,GeneratedVaadinSelect,GeneratedVaadinTextArea,GeneratedVaadinTextField,GeneratedVaadinTimePicker,Grid,GridPro,HtmlObject,Input,IntegerField,IronList,MultiSelectComboBox,NativeButton,NumberField,PasswordField,RouterLink,Select,TextArea,TextField,TimePicker,TreeGrid,VirtualList
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 Description static classFocusNotifier.FocusEvent<C extends Component>Represents the DOM event "focus".
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default RegistrationaddFocusListener(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 listener- Returns:
- a registration that can be used to unregister the listener
- See Also:
- focus event at MDN
-
-