BrightSide Workbench Full Report + Source Code
org.turro.contacts.zul.contact.ContactFileTree Class Reference
Inheritance diagram for org.turro.contacts.zul.contact.ContactFileTree:
Collaboration diagram for org.turro.contacts.zul.contact.ContactFileTree:

Public Member Functions

 ContactFileTree ()
 
Contact getContact ()
 
void setContact (Contact contact)
 
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 36 of file ContactFileTree.java.

Constructor & Destructor Documentation

◆ ContactFileTree()

org.turro.contacts.zul.contact.ContactFileTree.ContactFileTree ( )

Definition at line 40 of file ContactFileTree.java.

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

Member Function Documentation

◆ afterCompose()

void org.turro.contacts.zul.contact.ContactFileTree.afterCompose ( )

Definition at line 53 of file ContactFileTree.java.

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

◆ deleteDone()

void org.turro.contacts.zul.contact.ContactFileTree.deleteDone ( FileItem  file)

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

Definition at line 74 of file ContactFileTree.java.

74  {
75  }

◆ downloadDone()

void org.turro.contacts.zul.contact.ContactFileTree.downloadDone ( FileItem  file)

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

Definition at line 70 of file ContactFileTree.java.

70  {
71  }

◆ getContact()

Contact org.turro.contacts.zul.contact.ContactFileTree.getContact ( )

Definition at line 44 of file ContactFileTree.java.

44  {
45  return contact;
46  }

◆ setContact()

void org.turro.contacts.zul.contact.ContactFileTree.setContact ( Contact  contact)

Definition at line 48 of file ContactFileTree.java.

48  {
49  this.contact = contact;
50  }

◆ uploadDone()

void org.turro.contacts.zul.contact.ContactFileTree.uploadDone ( FileItem  file)

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

Definition at line 66 of file ContactFileTree.java.

66  {
67  }

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