BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.attach.DossierFileTree Class Reference
Inheritance diagram for org.turro.dossier.zul.attach.DossierFileTree:
Collaboration diagram for org.turro.dossier.zul.attach.DossierFileTree:

Public Member Functions

 DossierFileTree ()
 
Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
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 38 of file DossierFileTree.java.

Constructor & Destructor Documentation

◆ DossierFileTree()

org.turro.dossier.zul.attach.DossierFileTree.DossierFileTree ( )

Definition at line 42 of file DossierFileTree.java.

42  {
43  super(I_.get("Root"));
44  }
Here is the call graph for this function:

Member Function Documentation

◆ afterCompose()

void org.turro.dossier.zul.attach.DossierFileTree.afterCompose ( )

Definition at line 55 of file DossierFileTree.java.

55  {
56  initTreeColumns(createFileColumns());
57  if(dossier != null) {
58  File myFiles = new File(ElephantContext.getRealPath("/WEB-INF/files") + "/dossier/" + dossier.getId());
59  //if(!myFiles.exists()) myFiles.mkdirs();
60  addFolder(dossier.getDescription(), myFiles.getAbsolutePath());
61  myFiles = new File(ElephantContext.getRealPath("/_internal/files") + "/dossier/" + dossier.getId());
62  //if(!myFiles.exists()) myFiles.mkdirs();
63  addFolder(dossier.getDescription() + " (" + I_.get("Publishable") + ")", myFiles.getAbsolutePath());
64  }
65  }
void initTreeColumns(List< FileColumn > fileColumns)
FileItem addFolder(String label, String path)
Here is the call graph for this function:

◆ deleteDone()

void org.turro.dossier.zul.attach.DossierFileTree.deleteDone ( FileItem  file)

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

Definition at line 76 of file DossierFileTree.java.

76  {
77  }

◆ downloadDone()

void org.turro.dossier.zul.attach.DossierFileTree.downloadDone ( FileItem  file)

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

Definition at line 72 of file DossierFileTree.java.

72  {
73  }

◆ getDossier()

Dossier org.turro.dossier.zul.attach.DossierFileTree.getDossier ( )

Definition at line 46 of file DossierFileTree.java.

46  {
47  return dossier;
48  }

◆ setDossier()

void org.turro.dossier.zul.attach.DossierFileTree.setDossier ( Dossier  dossier)

Definition at line 50 of file DossierFileTree.java.

50  {
51  this.dossier = dossier;
52  }

◆ uploadDone()

void org.turro.dossier.zul.attach.DossierFileTree.uploadDone ( FileItem  file)

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

Definition at line 68 of file DossierFileTree.java.

68  {
69  }

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