Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
CssImport when using Component Exporter by Mikhail Shabarov, 1 month ago
Ошибка в методе addListener
Добрый день.
Учусь по книжке "Book of Vaadin".
Почему-то в простом примере
import com.vaadin.Application;
import com.vaadin.ui.*;
CheckBox switchEditable = new CheckBox("Editable");
switchEditable.addListener(new Property.ValueChangeListener() {
public void valueChange(ValueChangeEvent event) {
}
});
при компиляции возникают ошибки :
[list=3]
Кажется мне, что нужно еще что-то импортировать, но что?
Last updated on Jul, 5th 2012
Скорее всего конфликтуют импорты для Property или event. При создании сущности попробуй указать полный путь до интерфейса com.vaadin.data.Property. и т.д.
Last updated on
Спасибо за помощь.
Помогло добавление 2-х импортов:
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
Last updated on Jul, 6th 2012
+1
You cannot reply to this thread.