blob: 6de6d3c046f83ab2e74ec1155ab69cf99dcd272c (
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
|
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.vaadin.tests;
import com.vaadin.Application;
import com.vaadin.ui.ExpandLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.SplitPanel;
import com.vaadin.ui.Table;
import com.vaadin.ui.Window;
public class TestForApplicationLayoutThatUsesWholeBrosersSpace extends
Application {
Window main = new Window("Windowing test");
ExpandLayout rootLayout;
SplitPanel firstLevelSplit;
@Override
public void init() {
setMainWindow(main);
rootLayout = new ExpandLayout();
main.setLayout(rootLayout);
rootLayout.addComponent(new Label("header"));
firstLevelSplit = new SplitPanel();
final SplitPanel secondSplitPanel = new SplitPanel(
SplitPanel.ORIENTATION_HORIZONTAL);
secondSplitPanel.setFirstComponent(new Label("left"));
final ExpandLayout topRight = new ExpandLayout();
topRight.addComponent(new Label("topright header"));
final Table t = TestForTablesInitialColumnWidthLogicRendering
.getTestTable(4, 100);
t.setSizeFull();
topRight.addComponent(t);
topRight.expand(t);
topRight.addComponent(new Label("topright footer"));
secondSplitPanel.setSecondComponent(topRight);
final ExpandLayout el = new ExpandLayout();
el.addComponent(new Label("B��"));
firstLevelSplit.setFirstComponent(secondSplitPanel);
firstLevelSplit.setSecondComponent(el);
rootLayout.addComponent(firstLevelSplit);
rootLayout.expand(firstLevelSplit);
rootLayout.addComponent(new Label("footer"));
}
}
|