Java 类com.vaadin.ui.CustomField 实例源码
项目:VaadinUtils
文件:FormHelper.java
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;
}
项目:VaadinUtils
文件:FormHelper.java
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;
}
项目:VaadinUtils
文件:FormHelper.java
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;
}
项目:vaadin-fluent-api
文件:FluentCustomField.java
/**
* 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;
}
项目:viritin
文件:FluentCustomField.java
/**
* 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;
}