Package com.zaranux.os.client.filesystem

Source Code of com.zaranux.os.client.filesystem.FilesystemComponent

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;
  }
 
}
TOP

Related Classes of com.zaranux.os.client.filesystem.FilesystemComponent

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.