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

Public Member Functions

 IssueCtrl ()
 
boolean isShowDescription ()
 
void setShowDescription (boolean showDescription)
 
Issue getIssue ()
 
void setIssue (Issue issue)
 
int getMaxChars ()
 
void setMaxChars (int maxChars)
 
int getParentCount ()
 
void setParentCount (int parentCount)
 
int getWordWrap ()
 
void setWordWrap (int wordWrap)
 
void afterCompose ()
 
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 38 of file IssueCtrl.java.

Constructor & Destructor Documentation

◆ IssueCtrl()

org.turro.dossier.zul.issue.IssueCtrl.IssueCtrl ( )

Definition at line 45 of file IssueCtrl.java.

45  {
46  addPopup();
47  }

Member Function Documentation

◆ afterCompose()

void org.turro.dossier.zul.issue.IssueCtrl.afterCompose ( )

Definition at line 101 of file IssueCtrl.java.

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

◆ getIssue()

Issue org.turro.dossier.zul.issue.IssueCtrl.getIssue ( )

Definition at line 65 of file IssueCtrl.java.

65  {
66  return issue;
67  }

◆ getMaxChars()

int org.turro.dossier.zul.issue.IssueCtrl.getMaxChars ( )

Definition at line 76 of file IssueCtrl.java.

76  {
77  return maxChars;
78  }

◆ getParentCount()

int org.turro.dossier.zul.issue.IssueCtrl.getParentCount ( )

Definition at line 84 of file IssueCtrl.java.

84  {
85  return parentCount;
86  }

◆ getWordWrap()

int org.turro.dossier.zul.issue.IssueCtrl.getWordWrap ( )

Definition at line 92 of file IssueCtrl.java.

92  {
93  return wordWrap;
94  }

◆ isShowDescription()

boolean org.turro.dossier.zul.issue.IssueCtrl.isShowDescription ( )

Definition at line 49 of file IssueCtrl.java.

49  {
50  return showDescription;
51  }

◆ setIssue()

void org.turro.dossier.zul.issue.IssueCtrl.setIssue ( Issue  issue)

Definition at line 69 of file IssueCtrl.java.

69  {
70  this.issue = issue;
71  if(issue != null) {
72  setValue(issue.getId() + "");
73  }
74  }
Here is the call graph for this function:

◆ setMaxChars()

void org.turro.dossier.zul.issue.IssueCtrl.setMaxChars ( int  maxChars)

Definition at line 80 of file IssueCtrl.java.

80  {
81  this.maxChars = maxChars;
82  }

◆ setParentCount()

void org.turro.dossier.zul.issue.IssueCtrl.setParentCount ( int  parentCount)

Definition at line 88 of file IssueCtrl.java.

88  {
89  this.parentCount = parentCount;
90  }

◆ setShowDescription()

void org.turro.dossier.zul.issue.IssueCtrl.setShowDescription ( boolean  showDescription)

Definition at line 53 of file IssueCtrl.java.

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

◆ setValue()

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

Definition at line 115 of file IssueCtrl.java.

115  {
116  if(Strings.isEmpty(value)) value = "0";
117  super.setValue(value);
118  }
Here is the caller graph for this function:

◆ setWordWrap()

void org.turro.dossier.zul.issue.IssueCtrl.setWordWrap ( int  wordWrap)

Definition at line 96 of file IssueCtrl.java.

96  {
97  this.wordWrap = wordWrap;
98  }

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