blob: 11d9f9c850748044ece1a2c4e55d61453b154665 (
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
|
package com.vaadin.tests.components.absolutelayout;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.AbsoluteLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
public class AbsoluteLayoutWrapperStyles extends TestBase {
@Override
protected void setup() {
AbsoluteLayout layout = new AbsoluteLayout();
layout.setWidth("500px");
layout.setHeight("500px");
Label lbl = new Label("Label");
lbl.setStyleName("my-label");
lbl.addStyleName("my-second-label");
layout.addComponent(lbl);
Button btn = new Button("Button");
btn.setStyleName("my-button");
btn.addStyleName("my-second-button");
layout.addComponent(btn, "top:50px;");
addComponent(layout);
}
@Override
protected String getDescription() {
return "Absolutelayout wrapper should get child stylenames";
}
@Override
protected Integer getTicketNumber() {
return 9051;
}
}
|