Package com.vaadin.tests.components.datefield

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

package com.vaadin.tests.components.datefield;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Component;
import com.vaadin.ui.PopupDateField;
import com.vaadin.ui.Table;

public class NarrowPopupDateFieldInTable extends TestBase {

    private final Object DATE = "Date";

    @Override
    public void setup() {
        PopupDateField df = new PopupDateField();
        df.setWidth("100%");

        Table t = new Table();
        t.setWidth("100px");
        t.addContainerProperty(DATE, Component.class, null);
        t.addItem(new Object[] { df }, "1");
        addComponent(t);
    }

    @Override
    protected String getDescription() {
        return "Simple test to ensure a narrow PopupDateField can be used in a Table.";
    }

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

}
TOP

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

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.