本文整理汇总了Java中com.vaadin.ui.CustomField类的典型用法代码示例。如果您正苦于以下问题:Java CustomField类的具体用法?Java CustomField怎么用?Java CustomField使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CustomField类属于com.vaadin.ui包,在下文中一共展示了CustomField类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doBinding
import com.vaadin.ui.CustomField; //导入依赖的package包/类
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;
}
示例2: withFocusDelegate
import com.vaadin.ui.CustomField; //导入依赖的package包/类
/**
* 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;
}
示例3: withFocusDelegate
import com.vaadin.ui.CustomField; //导入依赖的package包/类
/**
* 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;
}