BrightSide Workbench Full Report + Source Code
org.turro.elephant.documents.FileDocumentWrapper Class Reference
Inheritance diagram for org.turro.elephant.documents.FileDocumentWrapper:
Collaboration diagram for org.turro.elephant.documents.FileDocumentWrapper:

Public Member Functions

 FileDocumentWrapper (FileDocument fd, boolean treatAsRoot)
 
String getId ()
 
String getPath ()
 
String getName ()
 
String getInsertionSelected ()
 
String getFolderSelected ()
 
String getChecked ()
 
int compareTo (Object o)
 

Detailed Description

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

Definition at line 26 of file FileDocumentWrapper.java.

Constructor & Destructor Documentation

◆ FileDocumentWrapper()

org.turro.elephant.documents.FileDocumentWrapper.FileDocumentWrapper ( FileDocument  fd,
boolean  treatAsRoot 
)

Definition at line 31 of file FileDocumentWrapper.java.

31  {
32  this.fd = fd;
33  this.treatAsRoot = treatAsRoot;
34  }
Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int org.turro.elephant.documents.FileDocumentWrapper.compareTo ( Object  o)

Definition at line 76 of file FileDocumentWrapper.java.

76  {
78  return getName().compareTo(other.getName());
79  }
FileDocumentWrapper(FileDocument fd, boolean treatAsRoot)
Here is the call graph for this function:

◆ getChecked()

String org.turro.elephant.documents.FileDocumentWrapper.getChecked ( )

Definition at line 62 of file FileDocumentWrapper.java.

62  {
63  Properties props = fd.getDocumentsRoot().getPropertiesFrom(
65  if (props != null) {
66  for(int i = 0; i < 30; i++) {
67  if(getId().equals(props.getProperty("allowed." + i))) {
68  return "checked=\"checked\"";
69  }
70  }
71  }
72  return "";
73  }
Properties getPropertiesFrom(String folder)
Here is the call graph for this function:

◆ getFolderSelected()

String org.turro.elephant.documents.FileDocumentWrapper.getFolderSelected ( )

Definition at line 55 of file FileDocumentWrapper.java.

55  {
57  return "selected=\"selected\"";
58  }
59  return "";
60  }
Here is the call graph for this function:

◆ getId()

String org.turro.elephant.documents.FileDocumentWrapper.getId ( )

Definition at line 36 of file FileDocumentWrapper.java.

36  {
37  return fd.getName();
38  }
Here is the caller graph for this function:

◆ getInsertionSelected()

String org.turro.elephant.documents.FileDocumentWrapper.getInsertionSelected ( )

Definition at line 48 of file FileDocumentWrapper.java.

48  {
50  return "selected=\"selected\"";
51  }
52  return "";
53  }
boolean isInsertionSelected(FileDocument fd)
Here is the call graph for this function:

◆ getName()

String org.turro.elephant.documents.FileDocumentWrapper.getName ( )

Definition at line 44 of file FileDocumentWrapper.java.

44  {
45  return fd.getFormattedPath();
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPath()

String org.turro.elephant.documents.FileDocumentWrapper.getPath ( )

Definition at line 40 of file FileDocumentWrapper.java.

40  {
41  return fd.getAbsolutePath();
42  }

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