Package com.vaadin.event
Interface FieldEvents.FocusNotifier
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractFocusable,AbstractTextField,Accordion,Button,ColorPickerPopup,ComboBox,DateField,Grid,InlineDateField,NativeButton,NativeSelect,OptionGroup,PasswordField,PopupDateField,Select,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.Note: The general Java convention is not to explicitly declare that a class generates events, but to directly define the
addListenerandremoveListenermethods. That way the caller of these methods has no real way of finding out if the class really will send the events, or if it just defines the methods to be able to implement an interface.- Since:
- 6.2
- See Also:
FieldEvents.FocusListener,FieldEvents.FocusEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddFocusListener(FieldEvents.FocusListener listener)Adds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.voidaddListener(FieldEvents.FocusListener listener)Deprecated.As of 7.0, replaced byaddFocusListener(FocusListener)voidremoveFocusListener(FieldEvents.FocusListener listener)Removes aFocusListenerfrom the Component.voidremoveListener(FieldEvents.FocusListener listener)Deprecated.As of 7.0, replaced byremoveFocusListener(FocusListener)
-
-
-
Method Detail
-
addFocusListener
void addFocusListener(FieldEvents.FocusListener listener)
Adds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.- Parameters:
listener-- Since:
- 6.2
- See Also:
FieldEvents.FocusListener
-
addListener
@Deprecated void addListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byaddFocusListener(FocusListener)
-
removeFocusListener
void removeFocusListener(FieldEvents.FocusListener listener)
Removes aFocusListenerfrom the Component.- Parameters:
listener-- Since:
- 6.2
- See Also:
FieldEvents.FocusListener
-
removeListener
@Deprecated void removeListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byremoveFocusListener(FocusListener)
-
-