blob: 245fc123dfed262f529a1193567aad2c333cd6fd (
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
|
package com.vaadin.tests.components.combobox;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.ComboBox;
public class ComboBoxNavigation extends TestBase {
@Override
protected String getDescription() {
return "Entering e in the field and scrolling down with the arrow keys should always select the next item, also when the page changes. Scrolling back up should always select the previous item, also when changing pages.";
}
@Override
protected Integer getTicketNumber() {
return 2214;
}
@Override
protected void setup() {
ComboBox cb = new ComboBox();
for (int i = 1; i < 100; i++) {
cb.addItem("Item " + i);
}
cb.setFilteringMode(ComboBox.FILTERINGMODE_CONTAINS);
addComponent(cb);
}
}
|