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

Public Member Functions

 FileAttachRootTree ()
 
void afterCompose ()
 
void uploadDone (FileItem file)
 
void downloadDone (FileItem file)
 
void deleteDone (FileItem file)
 
- Public Member Functions inherited from org.turro.file.zul.tree.FileTree
 FileTree ()
 
 FileTree (String title)
 
void initTreeColumns (List< FileColumn > fileColumns)
 
FileFilter getFileFilter ()
 
void setFileFilter (FileFilter fileFilter)
 
FileListener getFileListener ()
 
void setFileListener (FileListener listener)
 
String getRole ()
 
void setRole (String role)
 
boolean isInRole (String role)
 
Menupopup getActionMenu ()
 
void setAddToolbar (boolean addToolbar)
 
FileItem addFolder (String label, String path)
 
List< FileColumngetColumns ()
 
File getSelectedFile ()
 

Detailed Description

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

Definition at line 31 of file FileAttachRootTree.java.

Constructor & Destructor Documentation

◆ FileAttachRootTree()

org.turro.file.zul.tree.FileAttachRootTree.FileAttachRootTree ( )

Definition at line 33 of file FileAttachRootTree.java.

33  {
34  super(I_.get("Root"));
35  }
Here is the call graph for this function:

Member Function Documentation

◆ afterCompose()

void org.turro.file.zul.tree.FileAttachRootTree.afterCompose ( )

Definition at line 38 of file FileAttachRootTree.java.

38  {
39  initTreeColumns(createFileColumns());
40  File myFiles = new File(ElephantContext.getRealPath("/WEB-INF/files"));
41  if(!myFiles.exists()) myFiles.mkdirs();
42  addFolder(I_.get("Root"), myFiles.getAbsolutePath());
43  myFiles = new File(ElephantContext.getRealPath("/_internal/files"));
44  if(!myFiles.exists()) myFiles.mkdirs();
45  addFolder(I_.get("Root") + " (" + I_.get("Publishable") + ")", myFiles.getAbsolutePath());
46  }
void initTreeColumns(List< FileColumn > fileColumns)
FileItem addFolder(String label, String path)
Here is the call graph for this function:

◆ deleteDone()

void org.turro.file.zul.tree.FileAttachRootTree.deleteDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 57 of file FileAttachRootTree.java.

57  {
58  }

◆ downloadDone()

void org.turro.file.zul.tree.FileAttachRootTree.downloadDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 53 of file FileAttachRootTree.java.

53  {
54  }

◆ uploadDone()

void org.turro.file.zul.tree.FileAttachRootTree.uploadDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 49 of file FileAttachRootTree.java.

49  {
50  }

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