当前位置: 首页>>代码示例>>Java>>正文


Java CustomField类代码示例

本文整理汇总了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;

}
 
开发者ID:rlsutton1,项目名称:VaadinUtils,代码行数:10,代码来源:FormHelper.java

示例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;
}
 
开发者ID:viydaag,项目名称:vaadin-fluent-api,代码行数:22,代码来源:FluentCustomField.java

示例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;
}
 
开发者ID:viritin,项目名称:viritin,代码行数:20,代码来源:FluentCustomField.java


注:本文中的com.vaadin.ui.CustomField类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。