◆ AttachTree() [1/3]
org.turro.attach.zul.tree.AttachTree.AttachTree |
( |
| ) |
|
Definition at line 57 of file zul/tree/AttachTree.java.
58 this(
null, EnumSet.of(AttachColumn.ATTACH_SIZE, AttachColumn.ATTACH_DATE, AttachColumn.ATTACH_OWNER),
false);
◆ AttachTree() [2/3]
org.turro.attach.zul.tree.AttachTree.AttachTree |
( |
String |
title | ) |
|
Definition at line 61 of file zul/tree/AttachTree.java.
62 this(title, EnumSet.of(AttachColumn.ATTACH_SIZE, AttachColumn.ATTACH_DATE, AttachColumn.ATTACH_OWNER),
false);
◆ AttachTree() [3/3]
org.turro.attach.zul.tree.AttachTree.AttachTree |
( |
String |
title, |
|
|
Set< AttachColumn > |
columns, |
|
|
boolean |
publicOnly |
|
) |
| |
Definition at line 65 of file zul/tree/AttachTree.java.
68 this.columns = columns;
71 results =
new AttachResults();
void setPublicOnly(boolean publicOnly)
void setCkOthers(boolean ckOthers)
◆ addFolder()
AttachFolder org.turro.attach.zul.tree.AttachTree.addFolder |
( |
String |
label, |
|
|
String |
path, |
|
|
boolean |
loadOnDemand |
|
) |
| |
Definition at line 116 of file zul/tree/AttachTree.java.
117 AttachFolder af =
new AttachFolder(label, path, loadOnDemand, columns);
118 children.appendChild(af);
◆ getAttachListener()
AttachListener org.turro.attach.zul.tree.AttachTree.getAttachListener |
( |
| ) |
|
◆ getCanDelete()
boolean org.turro.attach.zul.tree.AttachTree.getCanDelete |
( |
| ) |
|
◆ getCanEdit()
boolean org.turro.attach.zul.tree.AttachTree.getCanEdit |
( |
| ) |
|
◆ getCanNew()
boolean org.turro.attach.zul.tree.AttachTree.getCanNew |
( |
| ) |
|
◆ getColumns()
Set<AttachColumn> org.turro.attach.zul.tree.AttachTree.getColumns |
( |
| ) |
|
◆ getResults()
AttachResults org.turro.attach.zul.tree.AttachTree.getResults |
( |
| ) |
|
◆ getSelectedAttachment()
Attachment org.turro.attach.zul.tree.AttachTree.getSelectedAttachment |
( |
| ) |
|
Definition at line 127 of file zul/tree/AttachTree.java.
128 if(getSelectedItem() instanceof AttachFile) {
129 return ((AttachFile) getSelectedItem()).getAttachment();
◆ isOnlyDownload()
boolean org.turro.attach.zul.tree.AttachTree.isOnlyDownload |
( |
| ) |
|
◆ setAddToolbar()
void org.turro.attach.zul.tree.AttachTree.setAddToolbar |
( |
boolean |
addToolbar | ) |
|
Definition at line 85 of file zul/tree/AttachTree.java.
87 toolbar =
new Toolbar();
88 getParent().insertBefore(toolbar,
AttachTree.this);
90 addSearchbarButtons();
91 toolbar.appendChild(
new Space());
95 addEventListener(Events.ON_SELECT,
new EventListener() {
97 public void onEvent(Event event)
throws Exception {
99 if(getSelectedItem() instanceof AttachFolder) {
100 ((AttachFolder) getSelectedItem()).showContents();
101 }
else if(onlyDownload && getSelectedItem() instanceof AttachFile) {
102 ((AttachFile) getSelectedItem()).doDownload();
◆ setAttachListener()
void org.turro.attach.zul.tree.AttachTree.setAttachListener |
( |
AttachListener |
listener | ) |
|
◆ setOnlyDownload()
void org.turro.attach.zul.tree.AttachTree.setOnlyDownload |
( |
boolean |
onlyDownload | ) |
|
◆ updateButtons()
void org.turro.attach.zul.tree.AttachTree.updateButtons |
( |
| ) |
|
Definition at line 289 of file zul/tree/AttachTree.java.
290 if(toolbar !=
null) {
291 boolean isFolder = getSelectedItem() instanceof AttachFolder,
292 isFile = getSelectedItem() instanceof AttachFile;
294 if(addFolderButton !=
null) addFolderButton.setVisible(isFolder);
295 if(uploadButton !=
null) uploadButton.setVisible(isFolder);
297 downloadButton.setVisible(isFile);
299 if(editButton !=
null) editButton.setVisible(isFile);
301 if(deleteButton !=
null) deleteButton.setVisible(isFile);
The documentation for this class was generated from the following file: