package com.zaranux.os.client.filesystem;
import com.zaranux.client.java.io.File;
import java.util.Vector;
import com.zaranux.os.client.core.Component;
import com.zaranux.os.client.core.ComponentContainer;
import com.zaranux.os.client.filesystem.ui.FilesystemTreeGrid;
import com.zaranux.os.client.filesystem.ui.LocalFilesystemTreeGrid;
import com.zaranux.os.client.filesystem.ui.RemoteFilesystemTreeGrid;
public class FilesystemComponent extends Component {
private FilesystemTreeGrid filesystemTreeGrid;
public FilesystemComponent(ComponentContainer container, boolean remote)
{
super(container);
if(remote)
filesystemTreeGrid = new RemoteFilesystemTreeGrid(this,null);
else
filesystemTreeGrid = new LocalFilesystemTreeGrid(this);
this.setWidget(filesystemTreeGrid);
}
public FilesystemComponent(ComponentContainer container, File[] files)
{
super(container);
filesystemTreeGrid = new RemoteFilesystemTreeGrid(this,files);
this.setWidget(filesystemTreeGrid);
}
public Vector<File> getSelectedFiles()
{
return null;
}
public Vector<File> getSelectedDirectories()
{
return null;
}
}