blob: 8adfcf4439dfad376916c88bdc1564fbbc058b47 (
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
|
package com.vaadin.tests.components.orderedlayout;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public class OrderedLayoutSlotStyleNames extends TestBase {
@Override
protected void setup() {
VerticalLayout vl = new VerticalLayout();
Label lbl = new Label("A label");
lbl.setStyleName("my-label");
lbl.addStyleName("my-second-label");
vl.addComponent(lbl);
Button btn = new Button("A Button");
btn.setStyleName("my-button");
btn.addStyleName("my-second-button");
vl.addComponent(btn);
addComponent(vl);
HorizontalLayout hl = new HorizontalLayout();
lbl = new Label("A label");
lbl.setStyleName("my-label");
lbl.addStyleName("my-second-label");
hl.addComponent(lbl);
btn = new Button("A Button");
btn.setStyleName("my-button");
btn.addStyleName("my-second-button");
hl.addComponent(btn);
addComponent(hl);
}
@Override
protected String getDescription() {
return "Vertical/HorizontalLayout slots should get child dependant name";
}
@Override
protected Integer getTicketNumber() {
return 9051;
}
}
|