Package com.google.collide.dto.client.DtoClientImpls

Examples of com.google.collide.dto.client.DtoClientImpls.FileInfoImpl


    handleNodeWillBeAdded();

    FileTreeNode parentData = getDirData(parentTreeNode);
    String newFileName = FileTreeUtils.allocateName(parentData.<DirInfoImpl>cast(), NEW_FILE_NAME);

    FileInfoImpl newFile = FileInfoImpl.make().setSize("0");
    newFile.<TreeNodeInfoImpl>cast().setNodeType(TreeNodeInfo.FILE_TYPE);
    newFile.setName(newFileName);

    handleNewNode(parentTreeNode, parentData, newFile.<FileTreeNode>cast());
  }
View Full Code Here


  private static FileInfo makeFile(NodeInfoFactory nodeInfoFactory, String name) {
    FileInfo fileInterface = nodeInfoFactory.makeFileInfo();
   
    if (fileInterface instanceof FileInfoImpl) {
      FileInfoImpl file = (FileInfoImpl) fileInterface;
      file.setNodeType(TreeNodeInfo.FILE_TYPE);
      file.setName(name);
      file.setSize("0");
    } else {
      com.google.collide.dto.server.DtoServerImpls.FileInfoImpl file =
          (com.google.collide.dto.server.DtoServerImpls.FileInfoImpl)
          fileInterface;
      file.setNodeType(TreeNodeInfo.FILE_TYPE);
      file.setName(name);
      file.setSize("0");
    }
   
    return fileInterface;
  }
View Full Code Here

    handleNodeWillBeAdded();

    FileTreeNode parentData = getDirData(parentTreeNode);
    String newFileName = FileTreeUtils.allocateName(parentData.<DirInfoImpl>cast(), NEW_FILE_NAME);

    FileInfoImpl newFile = FileInfoImpl.make().setSize("0");
    newFile.<TreeNodeInfoImpl>cast().setNodeType(TreeNodeInfo.FILE_TYPE);
    newFile.setName(newFileName);

    handleNewNode(parentTreeNode, parentData, newFile.<FileTreeNode>cast());
  }
View Full Code Here

TOP

Related Classes of com.google.collide.dto.client.DtoClientImpls.FileInfoImpl

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.