diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
commit | 7b25b3886ea95bc6495506fbe9472e45fcbde684 (patch) | |
tree | 0b93cb65dab437feb46720659a63b8f1ef48f7f4 /uitest/src/com/vaadin/tests/tickets/Ticket1986.java | |
parent | 8941056349e302e687e40e94c13709e75f256d73 (diff) | |
download | vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.tar.gz vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.zip |
Renamed tests -> uitest and tests/testbench -> uitest/src (#9299)
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket1986.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket1986.java | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1986.java b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java new file mode 100644 index 0000000000..fd6665b2fe --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket1986.java @@ -0,0 +1,79 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.Button; +import com.vaadin.ui.ComboBox; +import com.vaadin.ui.DateField; +import com.vaadin.ui.GridLayout; +import com.vaadin.ui.ListSelect; +import com.vaadin.ui.NativeSelect; +import com.vaadin.ui.OptionGroup; +import com.vaadin.ui.UI.LegacyWindow; +import com.vaadin.ui.TextField; +import com.vaadin.ui.TwinColSelect; + +public class Ticket1986 extends Application.LegacyApplication { + + @Override + public void init() { + LegacyWindow w = new LegacyWindow(getClass().getName()); + setMainWindow(w); + + int index = 1; + + GridLayout layout = new GridLayout(2, 2); + TextField f1 = new TextField("1"); + f1.setTabIndex(index++); + TextField f2 = new TextField("2"); + f2.setTabIndex(index++); + + DateField f3 = new DateField("3"); + f3.setTabIndex(index++); + ComboBox cb = new ComboBox("4"); + cb.setTabIndex(index++); + + ListSelect lss = new ListSelect("5"); + lss.addItem("foo"); + lss.addItem("Bar"); + lss.setTabIndex(index++); + + NativeSelect ns = new NativeSelect("6"); + ns.addItem("foo"); + ns.addItem("bar"); + ns.setTabIndex(index++); + + OptionGroup og = new OptionGroup("7"); + og.addItem("foo"); + og.addItem("bar"); + og.setTabIndex(index++); + + OptionGroup ogm = new OptionGroup("7"); + ogm.setMultiSelect(true); + ogm.addItem("foo"); + ogm.addItem("bar"); + ogm.setTabIndex(index++); + + TwinColSelect ts = new TwinColSelect("8"); + ts.addItem("Foo"); + ts.addItem("Bar"); + ts.setTabIndex(index++); + + Button b = new Button("9"); + b.setTabIndex(index++); + + layout.addComponent(b); + layout.addComponent(ts); + layout.addComponent(ogm); + layout.addComponent(og); + layout.addComponent(ns); + layout.addComponent(lss); + layout.addComponent(cb); + layout.addComponent(f3); + layout.addComponent(f2); + layout.addComponent(f1); + + w.setContent(layout); + + } + +} |