Package com.adito.vfs.clipboard

Examples of com.adito.vfs.clipboard.Clipboard.addContent()


  private void addToClipboard(HttpServletRequest request, FileSystemForm fileSystemForm, boolean delOrig) {
    String delPath = fileSystemForm.getPath() + "/" + fileSystemForm.getFileName();
    ActionMessages msgs = new ActionMessages();
    Clipboard cb = new Clipboard();
    NetworkPlaceClipboardContent fcc = new NetworkPlaceClipboardContent(delPath, delOrig);
    cb.addContent(fcc);
    request.getSession().setAttribute(Constants.CLIPBOARD, cb);
    msgs.add(Globals.MESSAGE_KEY, new ActionMessage("vfs.copy.to.clipboard", fileSystemForm.getFileName()));
    this.addMessages(request, msgs);
  }
View Full Code Here


      for (int i = 0; i < uris.length; i++) {
        String divider = allFiles.equals("") ? "" : ", ";
        allFiles = allFiles + divider + uris[i];
        NetworkPlaceClipboardContent fcc = new NetworkPlaceClipboardContent(fileSystemForm.getPath() + "/" + uris[i],
                deleteOnPaste);
        cb.addContent(fcc);
      }
      msgs.add(Globals.MESSAGE_KEY, new ActionMessage("vfs.copy.to.clipboard", allFiles));
    }
    this.addMessages(request, msgs);
    request.getSession().setAttribute(Constants.CLIPBOARD, cb);
View Full Code Here

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.