blob: a198c05fa8bd1a60e871762a248f436fc4f25fb4 (
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
|
package com.vaadin.tests.components.table;
import com.vaadin.tests.components.TestBase;
import com.vaadin.v7.ui.Table;
public class SelectableEditable extends TestBase {
@Override
protected void setup() {
// TODO Auto-generated method stub
final Table table = new Table();
table.setWidth("500px");
table.setSelectable(true);
table.setEditable(true);
table.addContainerProperty("name", String.class, null);
table.addContainerProperty("alive", Boolean.class, false);
for (int i = 0; i < 10; ++i) {
table.addItem(new Object[] { "Person " + i, false }, i);
}
addComponent(table);
}
@Override
protected String getDescription() {
// TODO Auto-generated method stub
return "It is difficult to select rows of an editable Table, especially columns with checkboxes.";
}
@Override
protected Integer getTicketNumber() {
// TODO Auto-generated method stub
return 9064;
}
}
|