BrightSide Workbench Full Report + Source Code
org.turro.attach.zul.tree.AttachSheet Class Reference
Inheritance diagram for org.turro.attach.zul.tree.AttachSheet:
Collaboration diagram for org.turro.attach.zul.tree.AttachSheet:

Public Member Functions

void save (SpreadsheetWrapper wrapper)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file AttachSheet.java.

Member Function Documentation

◆ save()

void org.turro.attach.zul.tree.AttachSheet.save ( SpreadsheetWrapper  wrapper)

Implements org.turro.zkoss.ss.ISaveIt.

Definition at line 47 of file AttachSheet.java.

47  {
48 // Application app = Application.getApplication();
49 // AttachFolder folder = (AttachFolder) file.getParentItem();
50 // Attachment attachment = new Attachment();
51 // attachment.setModification(new Date());
52 // attachment.setPath(folder.getFolderPath());
53 // attachment.setOwner(app.getConstructor().getUser().getId());
54 // attachment.setOnlyOwner(false);
55 // attachment.setComment(wrapper.getComment());
56 // attachment.setShowKey(null);
57 // AttachContent ac = new AttachContent();
58 // ByteArrayOutputStream baos = new ByteArrayOutputStream();
59 // wrapper.saveToOuputStream(baos);
60 // ac.setFileContent(baos.toByteArray());
61 // attachment.setAttachContent(ac);
62 // attachment.setFileName(wrapper.getFileName());
63 // attachment.setFileContentType("application/vnd.ms-excel");
64 // attachment.setFileSize(ac.getFileContent().length);
65 // attachment.setValidated(app.isInRole("attach:self-validate"));
66 // attachment = new AttachPU().saveObject(attachment);
67 // AttachFile afile = folder.addFile(attachment);
68 // if(folder.getTree().getAttachListener() != null) {
69 // folder.getTree().getAttachListener().uploadDone(afile);
70 // }
71  }

The documentation for this class was generated from the following file: