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

Public Member Functions

 DossierLabel (Dossier entity, boolean fullDescription)
 
 DossierLabel ()
 
void setFullDescription (boolean fullDescription)
 
void setDossier (Dossier dossier)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 36 of file dossier/DossierLabel.java.

Constructor & Destructor Documentation

◆ DossierLabel() [1/2]

org.turro.dossier.zul.dossier.DossierLabel.DossierLabel ( Dossier  entity,
boolean  fullDescription 
)

Definition at line 41 of file dossier/DossierLabel.java.

41  {
42  setFullDescription(fullDescription);
43  setDossier(entity);
44  afterCompose();
45  }
void setFullDescription(boolean fullDescription)
Here is the call graph for this function:

◆ DossierLabel() [2/2]

org.turro.dossier.zul.dossier.DossierLabel.DossierLabel ( )

Definition at line 47 of file dossier/DossierLabel.java.

47  {
48  }

Member Function Documentation

◆ afterCompose()

void org.turro.dossier.zul.dossier.DossierLabel.afterCompose ( )

Definition at line 79 of file dossier/DossierLabel.java.

79  {
80  Application app = Application.getApplication();
81  DossierWrapper dw = new DossierWrapper(entity);
82  if(app.isInRole("dossier:show") &&
83  (app.isInRole("dossier:all") || dw.isAssistant() || dw.isOwner())) {
84  addClickListener();
85  }
86  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDossier()

void org.turro.dossier.zul.dossier.DossierLabel.setDossier ( Dossier  dossier)

Definition at line 54 of file dossier/DossierLabel.java.

54  {
55  entity = dossier;
56  if(entity != null) {
57  if(fullDescription) {
58  setLabel(entity.getFullDescription());
59  } else {
60  setLabel(entity.getDescription());
61  }
62  if(Strings.isBlank(getLabel())) {
63  setLabel(I_.get("No description!"));
64  }
65  setImage("/_zul/images/dossier.png");
66  }
67  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFullDescription()

void org.turro.dossier.zul.dossier.DossierLabel.setFullDescription ( boolean  fullDescription)

Definition at line 50 of file dossier/DossierLabel.java.

50  {
51  this.fullDescription = fullDescription;
52  }
Here is the caller graph for this function:

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