com.vaadin.ui.CustomField Java Examples

The following examples show how to use com.vaadin.ui.CustomField. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FluentCustomField.java    From viritin with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the component to which all methods from the {@link Focusable}
 * interface should be delegated.
 * <p>
 * Set this to a wrapped field to include that field in the tabbing order,
 * to make it receive focus when {@link #focus()} is called and to make it
 * be correctly focused when used as a Grid editor component.
 * <p>
 * By default, {@link Focusable} events are handled by the super class and
 * ultimately ignored.
 *
 * @param focusDelegate
 *            the focusable component to which focus events are redirected
 * @return the configured component
 */
public default S withFocusDelegate(Focusable focusDelegate) {
    ((CustomField<T>) this).setFocusDelegate(focusDelegate);
    return (S) this;
}