blob: dc452e16645f7b6f8700b2ef837af99701cb95b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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 {
@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);
}
}
|