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.

TableRepaintWhenMadeVisibile.java 983B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.table;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.ui.Button;
  4. import com.vaadin.v7.ui.Table;
  5. public class TableRepaintWhenMadeVisibile extends TestBase {
  6. @Override
  7. public void setup() {
  8. final Table table = new Table();
  9. table.addContainerProperty("sth", String.class, null);
  10. table.addItem(new Object[] { "something" }, 1);
  11. addComponent(table);
  12. Button show = new Button("show", event -> table.setVisible(true));
  13. addComponent(show);
  14. Button hide = new Button("hide", event -> table.setVisible(false));
  15. addComponent(hide);
  16. }
  17. @Override
  18. protected String getDescription() {
  19. return "A Table should be rendered correctly when made visible again after being initially rendered invisible. Click 'hide', refresh the application and then click 'show'";
  20. }
  21. @Override
  22. protected Integer getTicketNumber() {
  23. return 7986;
  24. }
  25. }