简体   繁体   中英

Vaadin 7 and org.vaadin.addon.customfield. package

I have to upgrade an application from vaadin6 to 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. So this package isn't supported by vaadin7. So how can I migrate those two classes to vaadin7?

CustomField is now part of Vaadin7 base API.

It is also possible to override validate(), setInternalValue(), commit(), setPropertyDataSource, isEmpty() and other methods to implement different functionalities in the field. Methods overriding setInternalValue() should call the superclass method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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