您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }