Package com.vaadin.tests.themes

Source Code of com.vaadin.tests.themes.LiferayThemeTest

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;
    }

}
TOP

Related Classes of com.vaadin.tests.themes.LiferayThemeTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.