18 package org.turro.dossier.zul.attach;
20 import org.turro.attach.entity.Attachment;
21 import org.turro.attach.zul.control.AttachmentControl;
22 import org.turro.attach.zul.navigator.AttachNavigatorListener;
23 import org.turro.dossier.entity.Issue;
24 import org.turro.dossier.issue.IssueMail;
25 import org.turro.i18n.I_;
26 import org.turro.registry.ChangeCategory;
27 import org.turro.registry.Changes;
28 import org.turro.registry.StringChange;
29 import org.zkoss.zk.ui.ext.AfterCompose;
38 private Changes changes;
42 super.setEntity(issue);
50 this.changes = changes;
62 ChangeCategory cc =
new ChangeCategory(3,
I_.
get(
"Attachments"));
63 changes.addChange(
new StringChange(cc,
I_.
get(
"Upload"), file.
getFileName(),
null,
true));
76 ChangeCategory cc =
new ChangeCategory(3,
I_.
get(
"Attachments"));
77 changes.addChange(
new StringChange(cc,
I_.
get(
"Delete"), file.
getFileName(),
null));
81 private boolean initialized =
false;
83 private void initialiaze() {
84 if(issue !=
null && !initialized &&
getTreeFolder() !=
null) {
AttachTree getTreeFolder()
void setAttachListener(AttachNavigatorListener listener)
void deleteDone(Attachment file)
void uploadDone(Attachment file)
void setIssue(Issue issue)
void setChanges(Changes changes)
void downloadDone(Attachment file)
static String get(String msg)