blob: ffe419293d83626e6c9a0f4dadfd7b5e1095230a (
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
|
package com.vaadin.tests.tickets;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
public class Ticket2283 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
setMainWindow(w);
GridLayout gl = new GridLayout(2, 2);
gl.setSizeUndefined();
gl.addComponent(new Label(
"Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
gl.addComponent(new Label("Label 2 abc abc abc "));
Label l = new Label("Colspan2, align right");
gl.addComponent(l, 0, 1, 1, 1);
gl.setComponentAlignment(l, Alignment.TOP_RIGHT);
w.setContent(gl);
}
}
|