Package com.vaadin.tests.containers

Source Code of com.vaadin.tests.containers.TableWithFileSystemContainer

package com.vaadin.tests.containers;

import java.io.File;

import com.vaadin.data.util.FilesystemContainer;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Table;

public class TableWithFileSystemContainer extends TestBase {

    private String testPath = "C:/temp/img";

    @Override
    public void setup() {
        Table table = new Table("Documents", new FilesystemContainer(new File(
                testPath)));
        table.setWidth("100%");
        getMainWindow().addComponent(table);
    }

    @Override
    protected String getDescription() {
        return "The Table uses a FileSystemContainer as datasource. Scrolling to the end should show the last items, not throw an NPE.";
    }

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

}
TOP

Related Classes of com.vaadin.tests.containers.TableWithFileSystemContainer

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.