BrightSide Workbench Full Report + Source Code
org.turro.contacts.name.ComplexNameControl Class Reference
Inheritance diagram for org.turro.contacts.name.ComplexNameControl:
Collaboration diagram for org.turro.contacts.name.ComplexNameControl:

Public Member Functions

void onFull ()
 
void onInformal ()
 
void onFormal ()
 
void onGuess ()
 
void setEntity (Contact entity)
 
 ComplexNameControl ()
 
void onPageAttached (Page newpage, Page oldpage)
 

Detailed Description

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

Definition at line 37 of file ComplexNameControl.java.

Constructor & Destructor Documentation

◆ ComplexNameControl()

org.turro.contacts.name.ComplexNameControl.ComplexNameControl ( )

Definition at line 84 of file ComplexNameControl.java.

84  {
85  }

Member Function Documentation

◆ onFormal()

void org.turro.contacts.name.ComplexNameControl.onFormal ( )

Definition at line 59 of file ComplexNameControl.java.

59  {
60  entity.getComplexName().setFormal(formal.getValue());
61  Events.postEvent(new Event(Events.ON_CHANGE, this));
62  }
ComplexName getComplexName()
Definition: Contact.java:152
Here is the call graph for this function:

◆ onFull()

void org.turro.contacts.name.ComplexNameControl.onFull ( )

Definition at line 46 of file ComplexNameControl.java.

46  {
47  entity.getComplexName().setFull(full.getValue());
48  entity.setName(full.getValue());
49  Events.postEvent(new Event(Events.ON_CHANGE, this));
50  }
void setName(String name)
Definition: Contact.java:217
Here is the call graph for this function:

◆ onGuess()

void org.turro.contacts.name.ComplexNameControl.onGuess ( )

Definition at line 65 of file ComplexNameControl.java.

65  {
66  entity.getComplexName().guessFrom(full.getValue(), entity.getType().isJuridical());
67  if(!Strings.isBlank(entity.getComplexName().getFull())) {
68  full.setValue(entity.getComplexName().getFull());
69  }
70  informal.setValue(entity.getComplexName().getInformal());
71  formal.setValue(entity.getComplexName().getFormal());
72  Events.postEvent(new Event(Events.ON_CHANGE, this));
73  }
void guessFrom(String name, boolean entity)
Here is the call graph for this function:

◆ onInformal()

void org.turro.contacts.name.ComplexNameControl.onInformal ( )

Definition at line 53 of file ComplexNameControl.java.

53  {
54  entity.getComplexName().setInformal(informal.getValue());
55  Events.postEvent(new Event(Events.ON_CHANGE, this));
56  }
Here is the call graph for this function:

◆ onPageAttached()

void org.turro.contacts.name.ComplexNameControl.onPageAttached ( Page  newpage,
Page  oldpage 
)

Definition at line 88 of file ComplexNameControl.java.

88  {
89  super.onPageAttached(newpage, oldpage);
90  Executions.createComponents("/WEB-INF/_zul/bs/comps/contact/complexNameControl.zul", this, null);
91  Selectors.wireComponents(this, this, false);
92  Selectors.wireEventListeners(this, this);
93  }

◆ setEntity()

void org.turro.contacts.name.ComplexNameControl.setEntity ( Contact  entity)

Definition at line 75 of file ComplexNameControl.java.

75  {
76  this.entity = entity;
77  if(!Strings.isBlank(entity.getComplexName().getFull())) {
78  full.setValue(entity.getComplexName().getFull());
79  }
80  informal.setValue(entity.getComplexName().getInformal());
81  formal.setValue(entity.getComplexName().getFormal());
82  }
Here is the call graph for this function:

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