You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ComboBoxNavigation.java 780B

12345678910111213141516171819202122232425262728
  1. package com.vaadin.tests.components.combobox;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.tests.util.ItemDataProvider;
  4. import com.vaadin.ui.ComboBox;
  5. public class ComboBoxNavigation extends TestBase {
  6. @Override
  7. protected String getDescription() {
  8. 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.";
  9. }
  10. @Override
  11. protected Integer getTicketNumber() {
  12. return 2214;
  13. }
  14. @Override
  15. protected void setup() {
  16. ComboBox<String> cb = new ComboBox<>();
  17. cb.setDataProvider(new ItemDataProvider(100));
  18. addComponent(cb);
  19. }
  20. }