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.

StylePrefix.java 811B

1234567891011121314151617181920212223242526272829303132
  1. package com.vaadin.tests.components.formlayout;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractReindeerTestUI;
  4. import com.vaadin.ui.FormLayout;
  5. /**
  6. * Test UI for FormLayout: custom additional styles should be prefixed with
  7. * "v-formlayout-", not "v-layout-".
  8. *
  9. * @author Vaadin Ltd
  10. */
  11. public class StylePrefix extends AbstractReindeerTestUI {
  12. @Override
  13. protected void setup(VaadinRequest request) {
  14. FormLayout layout = new FormLayout();
  15. layout.addStyleName("mystyle");
  16. addComponent(layout);
  17. }
  18. @Override
  19. protected String getTestDescription() {
  20. return "Form layout should set v-formlayout style name instead of v-layout";
  21. }
  22. @Override
  23. protected Integer getTicketNumber() {
  24. return 13509;
  25. }
  26. }