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.

CustomLayoutWithoutTemplate.java 883B

1234567891011121314151617181920212223242526272829
  1. package com.vaadin.tests.components.customlayout;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractReindeerTestUI;
  4. import com.vaadin.ui.Button;
  5. import com.vaadin.ui.CustomLayout;
  6. import com.vaadin.ui.Label;
  7. public class CustomLayoutWithoutTemplate extends AbstractReindeerTestUI {
  8. @Override
  9. protected void setup(VaadinRequest request) {
  10. CustomLayout cl = new CustomLayout("missing-layout-file.html");
  11. cl.addComponent(new Label("This Label should be visible."), "foo");
  12. cl.addComponent(new Button("And this Button too."), "bar");
  13. addComponent(cl);
  14. }
  15. @Override
  16. protected String getTestDescription() {
  17. return "Verify that CustomLayout renders child components even if the template is missing.";
  18. }
  19. @Override
  20. protected Integer getTicketNumber() {
  21. return 8696;
  22. }
  23. }