Hi, I was wondering how to do links i vaadin. Here is wat i did: I made an Application that creates a window and gives it
itself as a parameter:
public class TrickApplication extends Application {
public void init()
{
Evaluation_Components_Page mainWindow2 = new Evaluation_Components_Page(this);
now in the window class, i did made a link and in its action listener i changed the main window:
public class Evaluation_Components_Page extends Window
{
Application mainApp;
public Evaluation_Components_Page(Application mainApp)
{
this.mainApp=mainApp;
}
public void buttonClick(ClickEvent event)
{
mainApp.setMainWindow(nextWindow)
}
which seems rational to me but it did not work. Any ideas on the correct way to do stuff?
PS: dont comment on the code itself, i just wanted to give an idea on wat i did.