diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
commit | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch) | |
tree | 7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/util | |
parent | 1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff) | |
download | vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip |
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/util')
-rw-r--r-- | uitest/src/com/vaadin/tests/util/SampleDirectory.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/util/SampleDirectory.java b/uitest/src/com/vaadin/tests/util/SampleDirectory.java index 2f21026118..74b5dfe5e8 100644 --- a/uitest/src/com/vaadin/tests/util/SampleDirectory.java +++ b/uitest/src/com/vaadin/tests/util/SampleDirectory.java @@ -25,6 +25,7 @@ import com.vaadin.shared.ui.label.ContentMode; import com.vaadin.ui.Label; import com.vaadin.ui.LegacyWindow; import com.vaadin.ui.Panel; +import com.vaadin.ui.VerticalLayout; /** * Provides sample directory based on application directory. If this fails then @@ -77,11 +78,14 @@ public class SampleDirectory { return file; } // Add failure notification as an Panel to main window - final Panel errorPanel = new Panel("Demo application error"); + VerticalLayout errorLayout = new VerticalLayout(); + errorLayout.setMargin(true); + final Panel errorPanel = new Panel("Demo application error", + errorLayout); errorPanel.setStyleName("strong"); errorPanel.setComponentError(new SystemError( "Cannot provide sample directory")); - errorPanel.addComponent(new Label(errorMessage, ContentMode.HTML)); + errorLayout.addComponent(new Label(errorMessage, ContentMode.HTML)); // Remove all components from applications main window uI.removeAllComponents(); // Add error panel |