BrightSide Workbench Full Report + Source Code
org.turro.crm.zul.sale.SaleProspectCtrl Class Reference
Inheritance diagram for org.turro.crm.zul.sale.SaleProspectCtrl:
Collaboration diagram for org.turro.crm.zul.sale.SaleProspectCtrl:

Public Member Functions

 SaleProspectCtrl ()
 
boolean isShowDescription ()
 
void setShowDescription (boolean showDescription)
 
SaleProspect getSaleProspect ()
 
void setSaleProspect (SaleProspect saleProspect)
 
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
llturro

Definition at line 20 of file SaleProspectCtrl.java.

Constructor & Destructor Documentation

◆ SaleProspectCtrl()

org.turro.crm.zul.sale.SaleProspectCtrl.SaleProspectCtrl ( )

Definition at line 27 of file SaleProspectCtrl.java.

27  {
28  addPopup();
29  }

Member Function Documentation

◆ afterCompose()

void org.turro.crm.zul.sale.SaleProspectCtrl.afterCompose ( )

Definition at line 83 of file SaleProspectCtrl.java.

83  {
84  if(!showDescription) return;
85  description = new LabelExtended();
86  description.setValue(loadValue());
87  description.setWordWrap(wordWrap);
88  description.setMaxChars(maxChars);
89  Component comp = getParent();
90  for(int i = 1; i < parentCount; i++) {
91  comp = comp.getParent();
92  }
93  comp.appendChild(description);
94  }
LabelExtended setWordWrap(int wordWrap)
LabelExtended setMaxChars(int maxChars)
Here is the call graph for this function:

◆ getMaxChars()

int org.turro.crm.zul.sale.SaleProspectCtrl.getMaxChars ( )

Definition at line 58 of file SaleProspectCtrl.java.

58  {
59  return maxChars;
60  }

◆ getParentCount()

int org.turro.crm.zul.sale.SaleProspectCtrl.getParentCount ( )

Definition at line 66 of file SaleProspectCtrl.java.

66  {
67  return parentCount;
68  }

◆ getSaleProspect()

SaleProspect org.turro.crm.zul.sale.SaleProspectCtrl.getSaleProspect ( )

Definition at line 47 of file SaleProspectCtrl.java.

47  {
48  return saleProspect;
49  }

◆ getWordWrap()

int org.turro.crm.zul.sale.SaleProspectCtrl.getWordWrap ( )

Definition at line 74 of file SaleProspectCtrl.java.

74  {
75  return wordWrap;
76  }

◆ isShowDescription()

boolean org.turro.crm.zul.sale.SaleProspectCtrl.isShowDescription ( )

Definition at line 31 of file SaleProspectCtrl.java.

31  {
32  return showDescription;
33  }

◆ setMaxChars()

void org.turro.crm.zul.sale.SaleProspectCtrl.setMaxChars ( int  maxChars)

Definition at line 62 of file SaleProspectCtrl.java.

62  {
63  this.maxChars = maxChars;
64  }

◆ setParentCount()

void org.turro.crm.zul.sale.SaleProspectCtrl.setParentCount ( int  parentCount)

Definition at line 70 of file SaleProspectCtrl.java.

70  {
71  this.parentCount = parentCount;
72  }

◆ setSaleProspect()

void org.turro.crm.zul.sale.SaleProspectCtrl.setSaleProspect ( SaleProspect  saleProspect)

Definition at line 51 of file SaleProspectCtrl.java.

51  {
52  this.saleProspect = saleProspect;
53  if(saleProspect != null) {
54  setValue(saleProspect.getId() + "");
55  }
56  }
Here is the call graph for this function:

◆ setShowDescription()

void org.turro.crm.zul.sale.SaleProspectCtrl.setShowDescription ( boolean  showDescription)

Definition at line 35 of file SaleProspectCtrl.java.

35  {
36  this.showDescription = showDescription;
37  if(showDescription) {
38  addEventListener(Events.ON_CHANGE, new EventListener() {
39  @Override
40  public void onEvent(Event event) throws Exception {
41  description.setValue(loadValue());
42  }
43  });
44  }
45  }
Here is the call graph for this function:

◆ setValue()

void org.turro.crm.zul.sale.SaleProspectCtrl.setValue ( String  value) throws WrongValueException

Definition at line 97 of file SaleProspectCtrl.java.

97  {
98  if(Strings.isEmpty(value)) value = "0";
99  super.setValue(value);
100  }
Here is the caller graph for this function:

◆ setWordWrap()

void org.turro.crm.zul.sale.SaleProspectCtrl.setWordWrap ( int  wordWrap)

Definition at line 78 of file SaleProspectCtrl.java.

78  {
79  this.wordWrap = wordWrap;
80  }

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