com.vaadin.event
Interface FieldEvents.FocusNotifier

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractTextField, Accordion, Button, ColorPickerPopup, ComboBox, DateField, InlineDateField, NativeButton, NativeSelect, OptionGroup, PasswordField, PopupDateField, Select, TabSheet, TextArea, TextField, Window
Enclosing interface:
FieldEvents

public static interface FieldEvents.FocusNotifier
extends java.io.Serializable

The interface for adding and removing FocusEvent listeners. By implementing this interface a class explicitly announces that it will generate a FocusEvent 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 and removeListener 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
 void addFocusListener(FieldEvents.FocusListener listener)
          Adds a FocusListener to the Component which gets fired when a Field receives keyboard focus.
 void addListener(FieldEvents.FocusListener listener)
          Deprecated. As of 7.0, replaced by #addFocusListener(FocusListener)
 void removeFocusListener(FieldEvents.FocusListener listener)
          Removes a FocusListener from the Component.
 void removeListener(FieldEvents.FocusListener listener)
          Deprecated. As of 7.0, replaced by #removeFocusListener(FocusListener)
 

Method Detail

addFocusListener

void addFocusListener(FieldEvents.FocusListener listener)
Adds a FocusListener to the Component which gets fired when a Field 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 by #addFocusListener(FocusListener)


removeFocusListener

void removeFocusListener(FieldEvents.FocusListener listener)
Removes a FocusListener 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 by #removeFocusListener(FocusListener)



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.