blob: b80a9d11539679ad4452bbd05eae73d2ff06480d (
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
|
package com.vaadin.tests.components.grid;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Grid;
public class GridEditorMultiselect extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
Grid grid = new Grid();
grid.addColumn("name");
grid.addColumn("age", Integer.class);
for (int i = 0; i < 30; i++) {
grid.addRow("name " + i, i);
}
grid.setEditorEnabled(true);
grid.setSelectionMode(Grid.SelectionMode.MULTI);
addComponent(grid);
}
@Override
protected Integer getTicketNumber() {
return 17132;
}
@Override
public String getDescription() {
return "Grid Multiselect: Edit mode allows invalid selection";
}
}
|