blob: e37ed6e7822ddac935e19087049efe03b88aa854 (
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
|
package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Form;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.VerticalLayout;
public class Ticket2364 extends Application {
@Override
public void init() {
LegacyWindow main = new LegacyWindow("The Main Window!!!");
setMainWindow(main);
Form form = new Form();
VerticalLayout formLayout = new VerticalLayout();
form.setLayout(formLayout);
Select formSelect = new Select("hello");
Select select = new Select("hello");
form.setEnabled(false);
select.setEnabled(false);
formLayout.addComponent(formSelect);
VerticalLayout l2 = new VerticalLayout();
l2.addComponent(new Select("hello"));
l2.setEnabled(false);
form.setCaption("Form");
main.addComponent(form);
l2.setCaption("VerticalLayout");
main.addComponent(l2);
main.addComponent(select);
main.addComponent(new Select("Enabled=true select"));
}
}
|