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.

TableFocusOnRefreshRowCache.java 825B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.table;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.v7.ui.Table;
  4. public class TableFocusOnRefreshRowCache extends TestBase {
  5. @Override
  6. protected void setup() {
  7. final Table table = new Table();
  8. table.setSizeFull();
  9. table.addContainerProperty("Name", String.class, null);
  10. for (int i = 0; i < 200; i++) {
  11. table.addItem(new Object[] { "Item " + i }, i);
  12. }
  13. table.setSelectable(true);
  14. table.addItemClickListener(event -> table.refreshRowCache());
  15. addComponent(table);
  16. }
  17. @Override
  18. protected String getDescription() {
  19. return "Calling Table#refreshRowCache() loses cell focus";
  20. }
  21. @Override
  22. protected Integer getTicketNumber() {
  23. return 11797;
  24. }
  25. }