diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-05-25 09:09:58 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-05-25 09:09:58 +0000 |
commit | 2bc6c9decca4449717d52ddce428dc8f00769028 (patch) | |
tree | 1da2eb59b09be442663e3dbd4eed58135f8dde63 /src/com/vaadin/demo/util/SampleDirectory.java | |
parent | 18ae02885023f31a86d5e0216aa91a6d03e77bc8 (diff) | |
download | vaadin-framework-2bc6c9decca4449717d52ddce428dc8f00769028.tar.gz vaadin-framework-2bc6c9decca4449717d52ddce428dc8f00769028.zip |
#2643 fix some demo warnings (mostly serialization related)
svn changeset:7985/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/util/SampleDirectory.java')
-rw-r--r-- | src/com/vaadin/demo/util/SampleDirectory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/demo/util/SampleDirectory.java b/src/com/vaadin/demo/util/SampleDirectory.java index 2e4c785024..a82b9bedc8 100644 --- a/src/com/vaadin/demo/util/SampleDirectory.java +++ b/src/com/vaadin/demo/util/SampleDirectory.java @@ -60,14 +60,14 @@ public class SampleDirectory { } // Add failure notification as an Panel to main window final Panel errorPanel = new Panel("Demo application error"); - errorPanel.setStyle("strong"); + errorPanel.setStyleName("strong"); errorPanel.setComponentError(new SystemError( "Cannot provide sample directory")); errorPanel.addComponent(new Label(errorMessage, Label.CONTENT_XHTML)); // Remove all components from applications main window - application.getMainWindow().getLayout().removeAllComponents(); + application.getMainWindow().getContent().removeAllComponents(); // Add error panel - application.getMainWindow().getLayout().addComponent(errorPanel); + application.getMainWindow().getContent().addComponent(errorPanel); return null; } } |