BrightSide Workbench Full Report + Source Code
org.turro.financials.attach.ProductFileTree Class Reference
Inheritance diagram for org.turro.financials.attach.ProductFileTree:
Collaboration diagram for org.turro.financials.attach.ProductFileTree:

Public Member Functions

 ProductFileTree ()
 
Product getProduct ()
 
void setProduct (Product product)
 
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 ProductFileTree.java.

Constructor & Destructor Documentation

◆ ProductFileTree()

org.turro.financials.attach.ProductFileTree.ProductFileTree ( )

Definition at line 42 of file ProductFileTree.java.

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

Member Function Documentation

◆ afterCompose()

void org.turro.financials.attach.ProductFileTree.afterCompose ( )

Definition at line 55 of file ProductFileTree.java.

55  {
56  initTreeColumns(createFileColumns());
57  if(product != null) {
58  File myFiles = new File(ElephantContext.getRealPath("/WEB-INF/files") + "/product/" + product.getId());
59  //if(!myFiles.exists()) myFiles.mkdirs();
60  addFolder(product.getDescription(), myFiles.getAbsolutePath());
61  myFiles = new File(ElephantContext.getRealPath("/_internal/files") + "/product/" + product.getId());
62  //if(!myFiles.exists()) myFiles.mkdirs();
63  addFolder(product.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.financials.attach.ProductFileTree.deleteDone ( FileItem  file)

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

Definition at line 76 of file ProductFileTree.java.

76  {
77  }

◆ downloadDone()

void org.turro.financials.attach.ProductFileTree.downloadDone ( FileItem  file)

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

Definition at line 72 of file ProductFileTree.java.

72  {
73  }

◆ getProduct()

Product org.turro.financials.attach.ProductFileTree.getProduct ( )

Definition at line 46 of file ProductFileTree.java.

46  {
47  return product;
48  }

◆ setProduct()

void org.turro.financials.attach.ProductFileTree.setProduct ( Product  product)

Definition at line 50 of file ProductFileTree.java.

50  {
51  this.product = product;
52  }

◆ uploadDone()

void org.turro.financials.attach.ProductFileTree.uploadDone ( FileItem  file)

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

Definition at line 68 of file ProductFileTree.java.

68  {
69  }

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