diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-07-02 11:41:27 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-07-02 11:41:27 +0300 |
commit | d948c23bf48ec0cfb4f090f27de468bf59ee71db (patch) | |
tree | 8b89c8d35b9d22b3b8e243a9b5470c510de1cdc8 | |
parent | c2c1270786c04ee1bd01729f72d63a6553a0b0a7 (diff) | |
download | vaadin-framework-d948c23bf48ec0cfb4f090f27de468bf59ee71db.tar.gz vaadin-framework-d948c23bf48ec0cfb4f090f27de468bf59ee71db.zip |
Update mini tutorial to actually use Root.getCurrent()
-rw-r--r-- | tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java index b237666caa..6bd3a166e5 100644 --- a/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java +++ b/tests/testbench/com/vaadin/tests/minitutorials/v7a1/FindCurrentRootAndApplication.java @@ -31,13 +31,17 @@ public class FindCurrentRootAndApplication extends Root { String msg = "Running in "; msg += Application.getCurrent().isProductionMode() ? "production" : "debug"; - msg += " mode in a Root with the caption " - + Root.getCurrent().getCaption(); - Notification.show(msg); } }); + helloButton.addListener(new ClickListener() { + public void buttonClick(ClickEvent event) { + Notification.show("This Root is " + + Root.getCurrent().getClass().getSimpleName()); + } + }); + addComponent(helloButton); } |