/** * Adds a <code>FocusListener</code> to the Component which gets fired * when a <code>Field</code> receives keyboard focus. * * @param listener The focus listener to add * @return this (for method chaining) * @see #addFocusListener(com.vaadin.event.FieldEvents.FocusListener) */ public default S withFocusListener(FocusListener listener) { ((FocusNotifier) this).addFocusListener(listener); return (S) this; }