blob: bb0ceb562987696f9c95b59c3f85952e396238e0 (
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
|
package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
public class Ticket2319 extends Application {
@Override
public void init() {
LegacyWindow mainw = new LegacyWindow();
setMainWindow(mainw);
mainw.addComponent(new Label(
"This test has somewhat invalid layouts in it to detect analyzy layout function in debug dialog"));
HorizontalLayout hl = new HorizontalLayout();
Panel panel = new Panel("p1");
Panel panel2 = new Panel("p2");
hl.addComponent(panel);
hl.addComponent(panel2);
mainw.addComponent(hl);
hl = new HorizontalLayout();
panel = new Panel("p1");
panel.setSizeUndefined();
panel.setHeight("100%");
panel2 = new Panel("p2");
panel2.setSizeUndefined();
panel2.setHeight("100%");
hl.addComponent(panel);
hl.addComponent(panel2);
mainw.addComponent(hl);
HorizontalSplitPanel sp = new HorizontalSplitPanel();
VerticalLayout first = new VerticalLayout();
first.addComponent(new Label("first"));
VerticalLayout second = new VerticalLayout();
second.addComponent(new Label("second"));
sp.setFirstComponent(first);
sp.setSecondComponent(second);
VerticalSplitPanel sp2 = new VerticalSplitPanel();
Label label = new Label("first");
label.setSizeFull();
sp2.setFirstComponent(label);
sp2.setSecondComponent(sp);
sp2.setHeight("200px");
mainw.addComponent(sp2);
mainw.addComponent(new Button("click me to save split panel state"));
}
}
|