Package com.vaadin.tests.components.datefield

Source Code of com.vaadin.tests.components.datefield.DatePopupStyleName

package com.vaadin.tests.components.datefield;

import java.util.Date;

import com.vaadin.server.UserError;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.DateField;

public class DatePopupStyleName extends TestBase {
    @Override
    public void setup() {
        setTheme("reindeer-tests");

        final DateField df = new DateField();
        df.setValue(new Date(1203910239L));
        df.setResolution(DateField.RESOLUTION_SEC);
        df.setWidth("200px");
        df.setRequired(true);
        df.setComponentError(new UserError("abc"));
        df.addStyleName("popup-style");
        addComponent(df);
    }

    @Override
    protected String getDescription() {
        return "The DateField is given a style name 'test', but that style isn't applied on the calendar popup element.";
    }

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

}
TOP

Related Classes of com.vaadin.tests.components.datefield.DatePopupStyleName

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.