Package com.vaadin.tests.components.absolutelayout

Source Code of com.vaadin.tests.components.absolutelayout.AbsoluteLayoutWrapperStyles

package com.vaadin.tests.components.absolutelayout;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.AbsoluteLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;

public class AbsoluteLayoutWrapperStyles extends TestBase {

    @Override
    protected void setup() {
        AbsoluteLayout layout = new AbsoluteLayout();
        layout.setWidth("500px");
        layout.setHeight("500px");

        Label lbl = new Label("Label");
        lbl.setStyleName("my-label");
        lbl.addStyleName("my-second-label");
        layout.addComponent(lbl);

        Button btn = new Button("Button");
        btn.setStyleName("my-button");
        btn.addStyleName("my-second-button");
        layout.addComponent(btn, "top:50px;");

        addComponent(layout);
    }

    @Override
    protected String getDescription() {
        return "Absolutelayout wrapper should get child stylenames";
    }

    @Override
    protected Integer getTicketNumber() {
        return 9051;
    }

}
TOP

Related Classes of com.vaadin.tests.components.absolutelayout.AbsoluteLayoutWrapperStyles

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.