blob: 7576b29f74816d9e0680c3400bd4b0bfecd99325 (
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
|
package com.vaadin.tests.elements.checkboxgroup;
import java.util.ArrayList;
import java.util.List;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.CheckBoxGroup;
public class CheckBoxGroupSetSelection extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
CheckBoxGroup<String> group = new CheckBoxGroup<>();
List<String> options = new ArrayList<>();
options.add("item1");
options.add("item2");
options.add("item3");
group.setItems(options);
addComponent(group);
}
@Override
protected String getTestDescription() {
return "Test CheckBoxGroup element setValue() and selectByText()";
}
@Override
protected Integer getTicketNumber() {
return null;
}
}
|