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.

UseStateFromHierachy.java 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.vaadin.tests.components.abstractcomponent;
  2. import com.vaadin.annotations.Widgetset;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.tests.components.AbstractReindeerTestUI;
  5. import com.vaadin.tests.widgetset.TestingWidgetSet;
  6. import com.vaadin.tests.widgetset.server.UseStateFromHierachyComponent;
  7. import com.vaadin.ui.Button;
  8. import com.vaadin.ui.Label;
  9. @Widgetset(TestingWidgetSet.NAME)
  10. public class UseStateFromHierachy extends AbstractReindeerTestUI {
  11. @Override
  12. protected void setup(VaadinRequest request) {
  13. final UseStateFromHierachyComponent component = new UseStateFromHierachyComponent();
  14. component.setContent(new Label("Content child"));
  15. addComponent(component);
  16. addComponent(new Button("Remove component",
  17. event -> removeComponent(component)));
  18. }
  19. @Override
  20. protected String getTestDescription() {
  21. return "Tests that shared state and connector hierarchy is consistent when removing components from the hierachy";
  22. }
  23. @Override
  24. protected Integer getTicketNumber() {
  25. return Integer.valueOf(10151);
  26. }
  27. }