public <T extends CustomField<?>> T doBinding(String fieldLabel, SingularAttribute<?, ?> field, T customField) { doBinding(group, field.getName(), customField); this.fieldList.add(customField); form.addComponent(customField); return customField; }
public <T extends CustomField<?>> T doBinding(String fieldLabel, SetAttribute<?, ?> field, T customField) { doBinding(group, field.getName(), customField); this.fieldList.add(customField); form.addComponent(customField); return customField; }
public <T extends CustomField<?>> T doBinding(String fieldLabel, ListAttribute<?, ?> field, T customField) { doBinding(group, field.getName(), customField); this.fieldList.add(customField); form.addComponent(customField); return customField; }
/** * 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 * @see CustomField#setFocusDelegate(com.vaadin.ui.Component.Focusable) */ @SuppressWarnings("unchecked") public default THIS withFocusDelegate(Focusable focusDelegate) { ((CustomField<T>) this).setFocusDelegate(focusDelegate); return (THIS) this; }
/** * 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; }