BrightSide Workbench Full Report + Source Code
org.turro.documentation.model.DocumentationStatusLabel Class Reference
Inheritance diagram for org.turro.documentation.model.DocumentationStatusLabel:
Collaboration diagram for org.turro.documentation.model.DocumentationStatusLabel:

Public Member Functions

void setDocumentation (EntityDocumentation documentation)
 

Detailed Description

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

Definition at line 29 of file DocumentationStatusLabel.java.

Member Function Documentation

◆ setDocumentation()

void org.turro.documentation.model.DocumentationStatusLabel.setDocumentation ( EntityDocumentation  documentation)

Definition at line 31 of file DocumentationStatusLabel.java.

31  {
32  switch (documentation.getStatus()) {
33  case PENDING_UPLOAD:
34  setValue(I_.get("Pending upload documents"));
35  setSclass("el-text orange");
36  break;
37  case PENDING_VALIDATION:
38  setValue(I_.get("Pending to validate"));
39  setSclass("el-text orange");
40  break;
41  case DENIED:
42  setValue(I_.get("Denied") + ": " + documentation.getComment());
43  setSclass("el-text red");
44  break;
45  case VALIDATED:
46  setValue(I_.get("Validated"));
47  setSclass("el-text green");
48  break;
49  }
50  }
Here is the call graph for this function:

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