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

Public Member Functions

 DossierCtrl ()
 
boolean isShowDescription ()
 
void setShowDescription (boolean showDescription)
 
Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
int getMaxChars ()
 
void setMaxChars (int maxChars)
 
int getParentCount ()
 
void setParentCount (int parentCount)
 
int getWordWrap ()
 
void setWordWrap (int wordWrap)
 
void afterCompose ()
 
String getValue () throws WrongValueException
 
void setValue (String value) throws WrongValueException
 

Detailed Description

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

Definition at line 41 of file DossierCtrl.java.

Constructor & Destructor Documentation

◆ DossierCtrl()

org.turro.dossier.zul.dossier.DossierCtrl.DossierCtrl ( )

Definition at line 48 of file DossierCtrl.java.

48  {
49  addPopup();
50  }

Member Function Documentation

◆ afterCompose()

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

Definition at line 104 of file DossierCtrl.java.

104  {
105  if(!showDescription) return;
106  description = new LabelExtended();
107  description.setValue(loadValue());
108  description.setWordWrap(wordWrap);
109  description.setMaxChars(maxChars);
110  Component comp = getParent();
111  for(int i = 1; i < parentCount; i++) {
112  comp = comp.getParent();
113  }
114  comp.appendChild(description);
115  }
LabelExtended setWordWrap(int wordWrap)
LabelExtended setMaxChars(int maxChars)
Here is the call graph for this function:

◆ getDossier()

Dossier org.turro.dossier.zul.dossier.DossierCtrl.getDossier ( )

Definition at line 68 of file DossierCtrl.java.

68  {
69  return dossier;
70  }

◆ getMaxChars()

int org.turro.dossier.zul.dossier.DossierCtrl.getMaxChars ( )

Definition at line 79 of file DossierCtrl.java.

79  {
80  return maxChars;
81  }

◆ getParentCount()

int org.turro.dossier.zul.dossier.DossierCtrl.getParentCount ( )

Definition at line 87 of file DossierCtrl.java.

87  {
88  return parentCount;
89  }

◆ getValue()

String org.turro.dossier.zul.dossier.DossierCtrl.getValue ( ) throws WrongValueException

Definition at line 118 of file DossierCtrl.java.

118  {
119  return Strings.isBlank(super.getValue()) ? "0" : super.getValue();
120  }

◆ getWordWrap()

int org.turro.dossier.zul.dossier.DossierCtrl.getWordWrap ( )

Definition at line 95 of file DossierCtrl.java.

95  {
96  return wordWrap;
97  }

◆ isShowDescription()

boolean org.turro.dossier.zul.dossier.DossierCtrl.isShowDescription ( )

Definition at line 52 of file DossierCtrl.java.

52  {
53  return showDescription;
54  }

◆ setDossier()

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

Definition at line 72 of file DossierCtrl.java.

72  {
73  this.dossier = dossier;
74  if(dossier != null) {
75  setValue(dossier.getId() + "");
76  }
77  }
Here is the call graph for this function:

◆ setMaxChars()

void org.turro.dossier.zul.dossier.DossierCtrl.setMaxChars ( int  maxChars)

Definition at line 83 of file DossierCtrl.java.

83  {
84  this.maxChars = maxChars;
85  }

◆ setParentCount()

void org.turro.dossier.zul.dossier.DossierCtrl.setParentCount ( int  parentCount)

Definition at line 91 of file DossierCtrl.java.

91  {
92  this.parentCount = parentCount;
93  }

◆ setShowDescription()

void org.turro.dossier.zul.dossier.DossierCtrl.setShowDescription ( boolean  showDescription)

Definition at line 56 of file DossierCtrl.java.

56  {
57  this.showDescription = showDescription;
58  if(showDescription) {
59  addEventListener(Events.ON_CHANGE, new EventListener() {
60  @Override
61  public void onEvent(Event event) throws Exception {
62  description.setValue(loadValue());
63  }
64  });
65  }
66  }
Here is the call graph for this function:

◆ setValue()

void org.turro.dossier.zul.dossier.DossierCtrl.setValue ( String  value) throws WrongValueException

Definition at line 123 of file DossierCtrl.java.

123  {
124  if(Strings.isEmpty(value)) value = "0";
125  super.setValue(value);
126  }
Here is the caller graph for this function:

◆ setWordWrap()

void org.turro.dossier.zul.dossier.DossierCtrl.setWordWrap ( int  wordWrap)

Definition at line 99 of file DossierCtrl.java.

99  {
100  this.wordWrap = wordWrap;
101  }

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