Package com.vaadin.data.util

Examples of com.vaadin.data.util.FilesystemContainer


    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);
    }
View Full Code Here


            System.out.println(folder.getPath());
            folder.deleteOnExit();

            populate(folder, 3, 10);

            FilesystemContainer fsc = new FilesystemContainer(folder);

            treeTable = new TreeTable();
            treeTable.addStyleName("table-equal-rowheight");
            treeTable.setWidth("450px");
            treeTable.setHeight("550px");
View Full Code Here

        // Get sample directory
        final File sampleDir = SampleDirectory.getDirectory(
                VaadinSession.getCurrent(), w);
        // Populate tree with FilesystemContainer
        final FilesystemContainer fsc = new FilesystemContainer(sampleDir, true);
        filesystem.setContainerDataSource(fsc);
        // "this" handles all filesystem events
        // e.g. node clicked, expanded etc.
        filesystem.addListener(this);
        // Value changes are immediate
View Full Code Here

TOP

Related Classes of com.vaadin.data.util.FilesystemContainer

Copyright © 2018 www.massapicom. 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.