diff options
Diffstat (limited to 'vaadin-app/src/ch/asynk/helloworld/MainLayout.java')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/MainLayout.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/MainLayout.java b/vaadin-app/src/ch/asynk/helloworld/MainLayout.java index 0aaea6c..48fb7f1 100644 --- a/vaadin-app/src/ch/asynk/helloworld/MainLayout.java +++ b/vaadin-app/src/ch/asynk/helloworld/MainLayout.java @@ -11,8 +11,14 @@ import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Window.Notification; public class MainLayout extends VerticalLayout { - + // private static final long serialVersionUID = 1L; + // + private Context ctx = null; + + public MainLayout(Context context) { + ctx = context; + // public MainLayout() { Label label = new Label("Hello world"); @@ -41,7 +47,7 @@ public class MainLayout extends VerticalLayout { nextButton.addListener( new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { - getApplication().getMainWindow().setContent( new DataMappingLayout() ); + getApplication().getMainWindow().setContent( new DataMappingLayout(ctx) ); } }); } |