com.vaadin.ui.Field.getPropertyDataSource()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中com.vaadin.ui.Field.getPropertyDataSource()方法的一些代码示例,展示了Field.getPropertyDataSource()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.getPropertyDataSource()方法的具体详情如下:
包路径:com.vaadin.ui.Field
类名称:Field
方法名:getPropertyDataSource

Field.getPropertyDataSource介绍

暂无

代码示例

代码示例来源:origin: korpling/ANNIS

@Override
public Property getPropertyDataSource()
{
 return field.getPropertyDataSource();
}

代码示例来源:origin: org.vaadin.addons/customfield

/**
 * Returns the property data source for the field.
 * 
 * Note that this method for {@link FieldWrapper} always returns the
 * property converter, or the property data source of the wrapped field if
 * there is no converter.
 */
public Property getPropertyDataSource() {
  if (converter != null) {
    return converter;
  } else {
    return wrappedField.getPropertyDataSource();
  }
}

代码示例来源:origin: org.vaadin.addons/customfield

/**
 * Create a custom field wrapping a {@link Field} with a user-defined
 * {@link PropertyConverter}.
 * 
 * Subclass constructors calling this constructor must create and set the
 * layout.
 * 
 * When this constructor is used, the methods {@link #format(PC)} and
 * {@link #parse(Object)} are never called.
 * 
 * @param wrappedField
 * @param propertyConverter
 *            or null to bypass the use of a property converter
 * @param propertyType
 */
protected FieldWrapper(Field wrappedField,
    PropertyConverter<PC, ? extends Object> converter,
    Class<? extends PC> propertyType) {
  this.wrappedField = wrappedField;
  this.converter = converter;
  this.propertyType = propertyType;
  if (converter != null) {
    converter.setPropertyDataSource(wrappedField
        .getPropertyDataSource());
    wrappedField.setPropertyDataSource(converter);
    property = converter;
  } else {
    property = wrappedField;
  }
}

代码示例来源:origin: org.vaadin.addons/customfield

/**
 * Create a custom field wrapping a {@link Field}.
 * 
 * Subclass constructors calling this constructor must create and set the
 * layout.
 * 
 * When this constructor is used, value conversions are delegated to the
 * methods {@link #format(PC)} and {@link #parse(Object)}.
 * 
 * @param wrappedField
 * @param propertyType
 */
protected FieldWrapper(Field wrappedField, Class<? extends PC> propertyType) {
  this.wrappedField = wrappedField;
  this.propertyType = propertyType;
  converter = new DefaultPropertyConverter(propertyType);
  converter.setPropertyDataSource(wrappedField.getPropertyDataSource());
  wrappedField.setPropertyDataSource(converter);
  property = converter;
}

相关文章