diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-04-15 11:06:18 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-04-15 14:00:58 +0300 |
commit | 6b8412033e680ce6e5c7827ac504adf132305726 (patch) | |
tree | 0df05d16c324b285610af8910c126b58f4c490c5 /uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java | |
parent | 9192b0bb5e5e699b506b3d3e7df4cf295fbea44a (diff) | |
download | vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.tar.gz vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.zip |
Build uitest war with maven
Change-Id: I32625901ca27a282253df44c6e776cf9632bacda
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java deleted file mode 100644 index c534a4845f..0000000000 --- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.vaadin.tests.minitutorials.v7a2; - -import java.util.Random; - -import com.vaadin.annotations.Widgetset; -import com.vaadin.server.VaadinRequest; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; -import com.vaadin.ui.CheckBox; -import com.vaadin.ui.Component; -import com.vaadin.ui.Label; -import com.vaadin.ui.UI; -import com.vaadin.ui.VerticalLayout; - -@Widgetset("com.vaadin.tests.widgetset.TestingWidgetSet") -public class WidgetcontainerUI extends UI { - @Override - public void init(VaadinRequest request) { - VerticalLayout layout = new VerticalLayout(); - layout.setMargin(true); - setContent(layout); - - Label label = new Label("Hello Vaadin user"); - layout.addComponent(label); - final WidgetContainer widgetContainer = new WidgetContainer(); - layout.addComponent(widgetContainer); - widgetContainer.addComponent(new Label( - "Click the button to add components to the WidgetContainer.")); - Button button = new Button("Add more components", new ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - Random randomGenerator = new Random(); - int random = randomGenerator.nextInt(3); - Component component; - if (random % 3 == 0) { - component = new Label("A new label"); - } else if (random % 3 == 1) { - component = new Button("A button!"); - } else { - component = new CheckBox("A textfield"); - } - widgetContainer.addComponent(component); - } - }); - layout.addComponent(button); - } - -} |