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/TestForAlignments.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/TestForAlignments.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/TestForAlignments.java | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/uitest/src/com/vaadin/tests/TestForAlignments.java b/uitest/src/com/vaadin/tests/TestForAlignments.java deleted file mode 100644 index 7927b7f0ee..0000000000 --- a/uitest/src/com/vaadin/tests/TestForAlignments.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2000-2014 Vaadin Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package com.vaadin.tests; - -import com.vaadin.ui.Alignment; -import com.vaadin.ui.Button; -import com.vaadin.ui.CustomComponent; -import com.vaadin.ui.DateField; -import com.vaadin.ui.HorizontalLayout; -import com.vaadin.ui.TextField; -import com.vaadin.ui.VerticalLayout; - -public class TestForAlignments extends CustomComponent { - - public TestForAlignments() { - - final VerticalLayout main = new VerticalLayout(); - - final Button b1 = new Button("Right"); - final Button b2 = new Button("Left"); - final Button b3 = new Button("Bottom"); - final Button b4 = new Button("Top"); - final TextField t1 = new TextField("Right aligned"); - final TextField t2 = new TextField("Bottom aligned"); - final DateField d1 = new DateField("Center aligned"); - final DateField d2 = new DateField("Center aligned"); - - final VerticalLayout vert = new VerticalLayout(); - vert.addComponent(b1); - vert.addComponent(b2); - vert.addComponent(t1); - vert.addComponent(d1); - // vert.getSize().setWidth(500); - vert.setComponentAlignment(b1, Alignment.TOP_RIGHT); - vert.setComponentAlignment(b2, Alignment.TOP_LEFT); - vert.setComponentAlignment(t1, Alignment.TOP_RIGHT); - vert.setComponentAlignment(d1, Alignment.TOP_CENTER); - final HorizontalLayout hori = new HorizontalLayout(); - hori.addComponent(b3); - hori.addComponent(b4); - hori.addComponent(t2); - hori.addComponent(d2); - // hori.getSize().setHeight(200); - hori.setComponentAlignment(b3, Alignment.BOTTOM_LEFT); - hori.setComponentAlignment(b4, Alignment.TOP_LEFT); - hori.setComponentAlignment(t2, Alignment.BOTTOM_LEFT); - hori.setComponentAlignment(d2, Alignment.MIDDLE_LEFT); - - main.addComponent(vert); - main.addComponent(hori); - - setCompositionRoot(main); - - } - -} |