// 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