diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-02-18 12:57:29 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-02-18 13:11:43 +0200 |
commit | d4af8b07d51a1e7b1b4eaa828be596b780afd34f (patch) | |
tree | 6b912be8c0306aa8d8979d84b698a4aacc9d63f9 /uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java | |
parent | 14d5e7e77ebf1cb8ba7c96aaba0d113ab3c6c862 (diff) | |
download | vaadin-framework-d4af8b07d51a1e7b1b4eaa828be596b780afd34f.tar.gz vaadin-framework-d4af8b07d51a1e7b1b4eaa828be596b780afd34f.zip |
Count instances instead of windows and also show the counter
Change-Id: Ida1d0c9424d09169f3c7f76ebf70dcced5742dad
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java')
-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)); } - } |