简体   繁体   English

Vaadin 7和org.vaadin.addon.customfield。 包

[英]Vaadin 7 and org.vaadin.addon.customfield. package

I have to upgrade an application from vaadin6 to vaadin7. 我必须将应用程序从vaadin6升级到vaadin7。 I have a problem in two classes: 我在两节课中遇到问题:

import org.vaadin.addon.customfield.CustomField;
public abstract class DictionaryItemValuesField  extends CustomField{

and

import org.vaadin.addon.customfield.FieldWrapper;
public abstract class DateFieldWithTextField<DF extends DateField> extends FieldWrapper<Date> {

org.vaadin.addon.customfield(v1.0.0) is vaadin6 package, it uses vaacin6 packages like com.vaadin.terminal. org.vaadin.addon.customfield(v1.0.0)是vaadin6软件包,它使用vaacin6软件包,例如com.vaadin.terminal。 So this package isn't supported by vaadin7. 因此,vaadin7不支持此软件包。 So how can I migrate those two classes to vaadin7? 那么如何将这两个类迁移到vaadin7?

CustomField is now part of Vaadin7 base API. CustomField现在是Vaadin7基本API的一部分。

It is also possible to override validate(), setInternalValue(), commit(), setPropertyDataSource, isEmpty() and other methods to implement different functionalities in the field. 也可以重写validate(),setInternalValue(),commit(),setPropertyDataSource,isEmpty()和其他方法以在字段中实现不同的功能。 Methods overriding setInternalValue() should call the superclass method. 覆盖setInternalValue()的方法应调用超类方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM