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.

LayoutDuringStateUpdate.java 759B

1234567891011121314151617181920
  1. package com.vaadin.tests.layoutmanager;
  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.LayoutDuringStateUpdateComponent;
  7. import com.vaadin.ui.Button;
  8. @Widgetset(TestingWidgetSet.NAME)
  9. public class LayoutDuringStateUpdate extends AbstractReindeerTestUI {
  10. @Override
  11. protected void setup(VaadinRequest request) {
  12. // delay adding of the component to ensure unrelated layouting calls
  13. // don't interfere with the test
  14. addComponent(new Button("Add component",
  15. e -> addComponent(new LayoutDuringStateUpdateComponent())));
  16. }
  17. }