diff options
author | Leif Åstrand <leif@vaadin.com> | 2011-11-03 14:49:56 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2011-11-03 14:49:56 +0200 |
commit | 00a2b867524b21c28d02ad7ee836d33c6b2e12de (patch) | |
tree | d28aeff1ab409e537d31c77f8c27a51b3afd26b3 /src/com/vaadin/RootTestApplication.java | |
parent | f2123f0defb36603fe92035b96f44e54cfee2db8 (diff) | |
download | vaadin-framework-00a2b867524b21c28d02ad7ee836d33c6b2e12de.tar.gz vaadin-framework-00a2b867524b21c28d02ad7ee836d33c6b2e12de.zip |
Removed the Root interface and renamed DefaultRoot class to Root
Also moved the scrollTo functionality from Window to Root as the change
in the Root class hierachy caused the functionality to not work in
Window.
Diffstat (limited to 'src/com/vaadin/RootTestApplication.java')
-rw-r--r-- | src/com/vaadin/RootTestApplication.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/vaadin/RootTestApplication.java b/src/com/vaadin/RootTestApplication.java index bf5ec99b00..8e9bfacfa2 100644 --- a/src/com/vaadin/RootTestApplication.java +++ b/src/com/vaadin/RootTestApplication.java @@ -2,11 +2,10 @@ package com.vaadin; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.DefaultRoot; import com.vaadin.ui.Root; public class RootTestApplication extends Application { - private final Root root = new DefaultRoot(new Button("Roots, bloody roots", + private final Root root = new Root(new Button("Roots, bloody roots", new Button.ClickListener() { public void buttonClick(ClickEvent event) { root.executeJavaScript("window.alert(\"Here\");"); |