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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to make class that extends generated class implements View become a win

6 years ago Aug 02, 2016 4:03am
Johannes Häyry
6 years ago Aug 02, 2016 5:33am

Window can be a ViewDisplay, but it can't really implement View meangingfully. Also Designer doesn't let you create a design using a Window.

Maybe just keep the CustomerForm and its subclass as is and do something like this in open method.

public static void open(final Customers customer, final boolean preferencesTabActive) {
     DashboardEventBus.post(new CloseOpenWindowsEvent());
     Window w = new Window("My window", new CustomerFormView(customer, preferencesTabActive));


6 years ago Aug 02, 2016 6:12am