blob: f9f0069e5c27970be967e723a14462f6787df17b (
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
65
66
67
68
69
70
|
package com.vaadin.tests.components.table;
import java.util.Arrays;
import java.util.Collection;
import com.vaadin.tests.components.TestBase;
import com.vaadin.v7.data.util.BeanItemContainer;
import com.vaadin.v7.ui.Table;
public class TableSelectPagingOff extends TestBase {
@Override
protected void setup() {
Table table = new Table();
BeanItemContainer<MyBean> dataSource = new BeanItemContainer<>(
getBeans());
table.setContainerDataSource(dataSource);
table.setSelectable(true);
table.setPageLength(0);
addComponent(table);
}
private Collection<MyBean> getBeans() {
return Arrays.asList(new MyBean("a", "description a"),
new MyBean("b", "description b"),
new MyBean("c", "description c"),
new MyBean("d", "description d"));
}
public class MyBean {
private String name;
private String description;
public MyBean() {
}
public MyBean(String name, String description) {
this.name = name;
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
@Override
protected String getDescription() {
return "No flickering (scrollbars) should happen on select";
}
@Override
protected Integer getTicketNumber() {
return 5746;
}
}
|