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.

LiferayThemeTest.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.vaadin.tests.themes;
  2. import com.vaadin.annotations.Theme;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.tests.components.AbstractTestUI;
  5. import com.vaadin.ui.Label;
  6. import com.vaadin.ui.Panel;
  7. import com.vaadin.ui.VerticalLayout;
  8. import com.vaadin.ui.themes.LiferayTheme;
  9. @Theme("liferay")
  10. public class LiferayThemeTest extends AbstractTestUI {
  11. @Override
  12. protected void setup(VaadinRequest request) {
  13. VerticalLayout pl = new VerticalLayout();
  14. pl.setMargin(true);
  15. Panel p = new Panel("Panel", pl);
  16. addComponent(p);
  17. pl.addComponent(new Label("Panel content"));
  18. pl = new VerticalLayout();
  19. pl.setMargin(true);
  20. p = new Panel("Light Panel", pl);
  21. p.addStyleName(LiferayTheme.PANEL_LIGHT);
  22. addComponent(p);
  23. pl.addComponent(new Label("Panel content"));
  24. }
  25. @Override
  26. protected String getTestDescription() {
  27. // TODO Auto-generated method stub
  28. return null;
  29. }
  30. @Override
  31. protected Integer getTicketNumber() {
  32. // TODO Auto-generated method stub
  33. return null;
  34. }
  35. }