Package com.vaadin.event
Interface FieldEvents.FocusNotifier
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractDateField,AbstractFocusable,AbstractLocalDateField,AbstractLocalDateTimeField,AbstractTextField,Accordion,Button,CheckBox,CheckBoxGroup,ColorPickerPopup,ComboBox,DateField,DateTimeField,InlineDateField,InlineDateTimeField,NativeButton,NativeSelect,PasswordField,RadioButtonGroup,TabSheet,TextArea,TextField,Window
- Enclosing interface:
- FieldEvents
public static interface FieldEvents.FocusNotifier extends Serializable
The interface for adding and removingFocusEventlisteners. By implementing this interface a class explicitly announces that it will generate aFocusEventwhen it receives keyboard focus.- Since:
- 6.2
- See Also:
FieldEvents.FocusListener,FieldEvents.FocusEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RegistrationaddFocusListener(FieldEvents.FocusListener listener)Adds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.
-
-
-
Method Detail
-
addFocusListener
Registration addFocusListener(FieldEvents.FocusListener listener)
Adds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.- Parameters:
listener- the focus listener to add, not null- Returns:
- a registration object for removing the listener
- Since:
- 8.0
- See Also:
FieldEvents.FocusListener,Registration
-
-