- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 54 of file AttachFile.java.
◆ AttachFile() [1/4]
Definition at line 60 of file AttachFile.java.
62 this.attachment = attachment;
63 this.columns = columns;
◆ AttachFile() [2/4]
org.turro.attach.zul.tree.AttachFile.AttachFile |
( |
String |
label, |
|
|
Object |
value |
|
) |
| |
Definition at line 72 of file AttachFile.java.
73 throw new UnsupportedOperationException(
"Do not use");
◆ AttachFile() [3/4]
org.turro.attach.zul.tree.AttachFile.AttachFile |
( |
String |
label | ) |
|
Definition at line 76 of file AttachFile.java.
77 throw new UnsupportedOperationException(
"Do not use");
◆ AttachFile() [4/4]
org.turro.attach.zul.tree.AttachFile.AttachFile |
( |
| ) |
|
Definition at line 80 of file AttachFile.java.
81 throw new UnsupportedOperationException(
"Do not use");
◆ afterCompose()
void org.turro.attach.zul.tree.AttachFile.afterCompose |
( |
| ) |
|
◆ doDelete()
void org.turro.attach.zul.tree.AttachFile.doDelete |
( |
| ) |
throws InterruptedException |
Definition at line 134 of file AttachFile.java.
135 ZkossUtils.confirmDeletion(
null,
new Command() {
137 public Object execute(Context context) {
138 new AttachPU().deleteObject(attachment);
139 if(
getTree().getAttachListener() !=
null) {
142 TagItCtrl tagIt = Plugins.loadImplementation(TagItCtrl.class,
"button");
143 tagIt.setEntity(attachment);
144 tagIt.deleteEntity();
AttachListener getAttachListener()
void deleteDone(AttachFile file)
◆ doDownload()
void org.turro.attach.zul.tree.AttachFile.doDownload |
( |
| ) |
|
Definition at line 89 of file AttachFile.java.
90 try(DaoTransaction transaction =
new DaoTransaction(
new AttachPU())) {
91 attachment = transaction.saveObject(attachment);
93 if(
getTree().getAttachListener() !=
null) {
96 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, attachment,
"downloaded",
null);
AttachContent getAttachContent()
String getFileContentType()
void downloadDone(AttachFile file)
◆ doEdit()
void org.turro.attach.zul.tree.AttachFile.doEdit |
( |
| ) |
|
Definition at line 100 of file AttachFile.java.
101 InputDialog.getInput(
103 I_.get(
"Attachment") +
" " + attachment.
getId(),
105 new InputField(
"Name", attachment.getFileName(), null, 0),
106 new InputField(
"Comment", attachment.getComment(), null, 3),
107 new InputField(
"Show key", attachment.getShowKey(), null, 0),
108 new InputField(
"Validated", attachment.isValidated(), null, 0)
111 public Object execute(Context context) {
112 InputField[] fields = (InputField[]) context.get(
"fields");
113 if(fields.length > 0) {
114 for(InputField f : fields) {
115 if(
"Name".equals(f.getLabel())) {
117 }
else if(
"Comment".equals(f.getLabel())) {
119 }
else if(
"Show key".equals(f.getLabel())) {
121 }
else if(
"Validated".equals(f.getLabel())) {
125 attachment =
new AttachPU().saveObject(attachment);
126 addCells(
getTree().getColumns());
127 setImage(getMimeImage());
void setShowKey(String showKey)
void setValidated(boolean validated)
void setComment(String comment)
void setFileName(String fileName)
◆ getAttachment()
Attachment org.turro.attach.zul.tree.AttachFile.getAttachment |
( |
| ) |
|
◆ getTree()
AttachTree org.turro.attach.zul.tree.AttachFile.getTree |
( |
| ) |
|
Definition at line 85 of file AttachFile.java.
86 return (AttachTree) super.getTree();
The documentation for this class was generated from the following file: