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.

WindowThemes.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.vaadin.tests.components.window;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractReindeerTestUI;
  4. import com.vaadin.ui.Label;
  5. import com.vaadin.ui.Window;
  6. import com.vaadin.v7.ui.themes.Reindeer;
  7. public class WindowThemes extends AbstractReindeerTestUI {
  8. @Override
  9. protected void setup(VaadinRequest request) {
  10. Window def = new Window("default", new Label("Some content"));
  11. def.setWidth("300px");
  12. def.setHeight("100%");
  13. addWindow(def);
  14. Window light = new Window("WINDOW_LIGHT", new Label("Some content"));
  15. light.setStyleName(Reindeer.WINDOW_LIGHT);
  16. light.setPositionX(300);
  17. light.setWidth("300px");
  18. light.setHeight("100%");
  19. addWindow(light);
  20. Window black = new Window("WINDOW_BLACK", new Label("Some content"));
  21. black.setStyleName(Reindeer.WINDOW_BLACK);
  22. black.setPositionX(600);
  23. black.setWidth("300px");
  24. black.setHeight("100%");
  25. addWindow(black);
  26. }
  27. @Override
  28. protected String getTestDescription() {
  29. return "Shows the different css themes of Window";
  30. }
  31. @Override
  32. protected Integer getTicketNumber() {
  33. // Not tied to any specific ticket
  34. return null;
  35. }
  36. }