diff options
author | Artur Signell <artur@vaadin.com> | 2013-02-22 16:23:49 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-02-22 16:24:06 +0200 |
commit | fbdc52551e258d938db2e230366ca0e21d35c5bc (patch) | |
tree | 640740bcb63c2757facc9f19748a65eb46b50174 /uitest/src/com/vaadin/tests/minitutorials | |
parent | d9a8a21a62b977e32b65bcf436bbd229c9b798f4 (diff) | |
parent | 7af5b3fceb75b6f505a9a6d0a843b788bb06d9a7 (diff) | |
download | vaadin-framework-fbdc52551e258d938db2e230366ca0e21d35c5bc.tar.gz vaadin-framework-fbdc52551e258d938db2e230366ca0e21d35c5bc.zip |
Merge remote-tracking branch 'origin/7.0'
Change-Id: Id48ccb3c400a78cddb8bb5c7bbcf2d65174e59d0
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials')
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java index ecca98b884..48ccd217ca 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java @@ -18,6 +18,7 @@ package com.vaadin.tests.minitutorials.v7a1; import com.vaadin.annotations.PreserveOnRefresh; import com.vaadin.server.VaadinRequest; +import com.vaadin.ui.CssLayout; import com.vaadin.ui.TextField; import com.vaadin.ui.UI; @@ -31,13 +32,12 @@ import com.vaadin.ui.UI; */ @PreserveOnRefresh public class CreatingPreserveState extends UI { - private static int windowCounter = 0; + private static int instanceCounter = 0; @Override public void init(VaadinRequest request) { - TextField tf = new TextField("Window #" + (++windowCounter)); + TextField tf = new TextField("Instance #" + (++instanceCounter)); tf.setImmediate(true); - setContent(tf); + setContent(new CssLayout(tf)); } - } |