◆ RepositoryControl()
org.turro.file.zul.control.RepositoryControl.RepositoryControl |
( |
| ) |
|
Definition at line 258 of file RepositoryControl.java.
259 Executions.createComponents(
"/WEB-INF/_zul/bs/comps/attachment/repositoryControl.zul",
this,
null);
260 Selectors.wireComponents(
this,
this,
false);
261 Selectors.wireEventListeners(
this,
this);
◆ afterCompose()
void org.turro.file.zul.control.RepositoryControl.afterCompose |
( |
| ) |
|
◆ getLabel()
String org.turro.file.zul.control.RepositoryControl.getLabel |
( |
| ) |
|
◆ getPath()
String org.turro.file.zul.control.RepositoryControl.getPath |
( |
| ) |
|
◆ getPublicOnly()
Boolean org.turro.file.zul.control.RepositoryControl.getPublicOnly |
( |
| ) |
|
◆ getTreeFolder()
RepositoryTree org.turro.file.zul.control.RepositoryControl.getTreeFolder |
( |
| ) |
|
◆ isReadOnly()
boolean org.turro.file.zul.control.RepositoryControl.isReadOnly |
( |
| ) |
|
◆ isTreeCollapsed()
boolean org.turro.file.zul.control.RepositoryControl.isTreeCollapsed |
( |
| ) |
|
◆ onChangeFolder()
void org.turro.file.zul.control.RepositoryControl.onChangeFolder |
( |
| ) |
|
Definition at line 111 of file RepositoryControl.java.
113 if(currentFolder ==
null) {
void setCurrentFolder(RepositoryItem currentFolder)
RepositoryItem getParentFolder()
RepositoryItem selectFirst()
RepositoryItem getSelectedFolder()
◆ onCopy()
void org.turro.file.zul.control.RepositoryControl.onCopy |
( |
| ) |
throws Exception |
◆ onCut()
void org.turro.file.zul.control.RepositoryControl.onCut |
( |
| ) |
throws Exception |
◆ onDelete()
void org.turro.file.zul.control.RepositoryControl.onDelete |
( |
| ) |
throws Exception |
Definition at line 235 of file RepositoryControl.java.
236 if(Application.getApplication().isInRole(
"file-attach:delete")) {
237 Messages.confirmDeletion().show(() -> {
238 for(File f : currentFolder.
getFiles()) {
240 if(treeFolder.getFileListener() != null) {
241 treeFolder.getFileListener().deleteDone(f);
244 treeFolder.setSelectedItem(currentFolder);
Collection< File > getFiles()
◆ onDownload()
void org.turro.file.zul.control.RepositoryControl.onDownload |
( |
| ) |
throws Exception |
Definition at line 206 of file RepositoryControl.java.
209 File targetZip = File.createTempFile(
"attach_",
"_folder.zip");
210 Compress.zip(af.getRealFolder().toPath(), targetZip.toPath());
211 Filedownload.save(targetZip,
"application/zip");
RepositoryItem getCurrentFolder()
◆ onEvent()
void org.turro.file.zul.control.RepositoryControl.onEvent |
( |
UploadEvent |
event | ) |
throws Exception |
◆ onFullpath()
void org.turro.file.zul.control.RepositoryControl.onFullpath |
( |
| ) |
|
◆ onLevelUp()
void org.turro.file.zul.control.RepositoryControl.onLevelUp |
( |
| ) |
throws Exception |
Definition at line 158 of file RepositoryControl.java.
159 if(currentFolder !=
null && currentFolder.getParentItem() !=
null) {
160 currentFolder = (RepositoryItem) currentFolder.getParentItem();
161 treeFolder.setSelectedItem(currentFolder);
◆ onNewFolder()
void org.turro.file.zul.control.RepositoryControl.onNewFolder |
( |
| ) |
throws Exception |
◆ onPartial()
void org.turro.file.zul.control.RepositoryControl.onPartial |
( |
| ) |
|
◆ onPaste()
void org.turro.file.zul.control.RepositoryControl.onPaste |
( |
| ) |
throws Exception |
Definition at line 226 of file RepositoryControl.java.
228 treeFolder.setSelectedItem(currentFolder);
231 paste.setDisabled(
true);
◆ onRegexp()
void org.turro.file.zul.control.RepositoryControl.onRegexp |
( |
| ) |
|
◆ onSearch()
void org.turro.file.zul.control.RepositoryControl.onSearch |
( |
| ) |
|
◆ onSearchValue()
void org.turro.file.zul.control.RepositoryControl.onSearchValue |
( |
| ) |
|
◆ onSelectFolder()
void org.turro.file.zul.control.RepositoryControl.onSelectFolder |
( |
| ) |
|
◆ onSend()
void org.turro.file.zul.control.RepositoryControl.onSend |
( |
| ) |
throws Exception |
Definition at line 185 of file RepositoryControl.java.
186 SendAttachments sa =
new SendAttachments(I_.get(
"Attachment")) {
188 protected void fillAttachment(File attachment, Object entity) {
190 FileUtils.copyFile((File) entity, attachment);
191 }
catch (IOException ex) {
192 Logger.getLogger(FileControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
198 for(File file : af.getFiles()) {
199 sa.addAttachment(file, file.getName(), file.getName());
202 sa.sendAttachments(
null);
◆ onUpload()
void org.turro.file.zul.control.RepositoryControl.onUpload |
( |
UploadEvent |
event | ) |
throws Exception |
◆ selectFirst()
void org.turro.file.zul.control.RepositoryControl.selectFirst |
( |
| ) |
|
◆ setLabel()
void org.turro.file.zul.control.RepositoryControl.setLabel |
( |
String |
label | ) |
|
◆ setPath()
void org.turro.file.zul.control.RepositoryControl.setPath |
( |
String |
path | ) |
|
◆ setPublicOnly()
void org.turro.file.zul.control.RepositoryControl.setPublicOnly |
( |
Boolean |
publicOnly | ) |
|
◆ setReadOnly()
void org.turro.file.zul.control.RepositoryControl.setReadOnly |
( |
boolean |
readOnly | ) |
|
◆ setTreeCollapsed()
void org.turro.file.zul.control.RepositoryControl.setTreeCollapsed |
( |
boolean |
treeCollapsed | ) |
|
The documentation for this class was generated from the following file: