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 removingFocusEvent
listeners. By implementing this interface a class explicitly announces that it will generate aFocusEvent
when it receives keyboard focus.Note: The general Java convention is not to explicitly declare that a class generates events, but to directly define the
addListener
andremoveListener
methods. 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 void
addFocusListener(FieldEvents.FocusListener listener)
Adds aFocusListener
to the Component which gets fired when aField
receives keyboard focus.void
addListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byaddFocusListener(FocusListener)
void
removeFocusListener(FieldEvents.FocusListener listener)
Removes aFocusListener
from the Component.void
removeListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byremoveFocusListener(FocusListener)
-
-
-
Method Detail
-
addFocusListener
void addFocusListener(FieldEvents.FocusListener listener)
Adds aFocusListener
to the Component which gets fired when aField
receives 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 aFocusListener
from 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)
-
-