Package com.google.collide.client.workspace

Examples of com.google.collide.client.workspace.UploadClickedEvent


    final PathUtil rootPath = PathUtil.EMPTY_PATH;
    FileTreeMenuItem uploadFile = new FileTreeMenuItem() {
      @Override
      public void onClicked(TreeNodeElement<FileTreeNode> node) {
        place.fireEvent(new UploadClickedEvent(UploadType.FILE, node == null ? rootPath
            : node.getData().getNodePath()));
      }

      @Override
      public String toString() {
        return "Upload File";
      }
    };

    FileTreeMenuItem uploadZip = new FileTreeMenuItem() {
      @Override
      public void onClicked(TreeNodeElement<FileTreeNode> node) {
        place.fireEvent(new UploadClickedEvent(UploadType.ZIP, node == null ? rootPath
            : node.getData().getNodePath()));
      }

      @Override
      public String toString() {
        return "Upload and Extract Zip";
      }
    };

    FileTreeMenuItem uploadFolder = new FileTreeMenuItem() {
      @Override
      public void onClicked(TreeNodeElement<FileTreeNode> node) {
        place.fireEvent(new UploadClickedEvent(UploadType.DIRECTORY, node == null ? rootPath
            : node.getData().getNodePath()));
      }

      @Override
      public String toString() {
View Full Code Here

TOP

Related Classes of com.google.collide.client.workspace.UploadClickedEvent

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.