summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java
blob: 0132a1a0aa7a61a52d4a466df4213f2673a75d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.vaadin.tests.themes;

import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.LiferayTheme;

@Theme("liferay")
public class LiferayThemeTest extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        VerticalLayout pl = new VerticalLayout();
        pl.setMargin(true);
        Panel p = new Panel("Panel", pl);
        addComponent(p);
        pl.addComponent(new Label("Panel content"));

        pl = new VerticalLayout();
        pl.setMargin(true);
        p = new Panel("Light Panel", pl);
        p.addStyleName(LiferayTheme.PANEL_LIGHT);
        addComponent(p);
        pl.addComponent(new Label("Panel content"));
    }

    @Override
    protected String getTestDescription() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    protected Integer getTicketNumber() {
        // TODO Auto-generated method stub
        return null;
    }

}