summaryrefslogtreecommitdiffstats
path: root/vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java')
-rw-r--r--vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java b/vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java
index 301d1aa..70d3b0e 100644
--- a/vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java
+++ b/vaadin-app/src/ch/asynk/helloworld/DataMappingLayout.java
@@ -13,10 +13,13 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TextField;
public class DataMappingLayout extends FormLayout {
-
+ //
private static final long serialVersionUID = 1L;
+ //
+ private Context ctx = null;
- public DataMappingLayout() {
+ public DataMappingLayout(Context context) {
+ ctx = context;
//
final TextField tf1 = new TextField("Property.ValueChangeListener");
tf1.setImmediate(true);
@@ -135,7 +138,7 @@ public class DataMappingLayout extends FormLayout {
nextButton.addListener( new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
- getApplication().getMainWindow().setContent( new LayoutLayout() );
+ getApplication().getMainWindow().setContent( new LayoutLayout(ctx) );
}
});
}