aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/util
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
committerHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
commitaca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch)
tree7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/util
parent1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff)
downloadvaadin-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.java8
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