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

Public Member Functions

 InTouchEdit (Contact provider, InTouch inTouch)
 
void onSave ()
 
void onCancel ()
 
void onChangeName ()
 
void onChangeContact ()
 
void onChangeAddress ()
 
void onChangeControl ()
 
void onChangeDescription ()
 

Detailed Description

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

Definition at line 42 of file InTouchEdit.java.

Constructor & Destructor Documentation

◆ InTouchEdit()

org.turro.zul.intouch.InTouchEdit.InTouchEdit ( Contact  provider,
InTouch  inTouch 
)

Definition at line 54 of file InTouchEdit.java.

54  {
55  this.inTouch = inTouch;
56  setBorder(true);
57  setTitle(I_.get("In touch because"));
58  setClosable(false);
59  Executions.createComponents("/WEB-INF/_zul/contact/intouch.zul", this, null);
60  Selectors.wireComponents(this, this, false);
61  Selectors.wireEventListeners(this, this);
62  Framework.getCurrent().appendChild(this);
63  name.setObjectValue(inTouch.getName());
64  contact.setProvider(provider);
65  if(inTouch.getContact() == null && !contact.getCollection().isEmpty()) {
66  inTouch.setContact(contact.getCollection().iterator().next());
67  }
68  contact.setObjectValue(inTouch.getContact());
69  address.setProvider(provider);
70  address.setObjectValue(inTouch.getAddress());
71  control.setValue(inTouch.getControl());
72  description.setValue(inTouch.getDescription());
73  }
void setContact(Contact contact)
Definition: InTouch.java:97
Here is the call graph for this function:

Member Function Documentation

◆ onCancel()

void org.turro.zul.intouch.InTouchEdit.onCancel ( )

Definition at line 82 of file InTouchEdit.java.

82  {
83  detach();
84  }

◆ onChangeAddress()

void org.turro.zul.intouch.InTouchEdit.onChangeAddress ( )

Definition at line 97 of file InTouchEdit.java.

97  {
98  inTouch.setAddress(address.getObjectValue());
99  }
void setAddress(Address address)
Definition: InTouch.java:105
Here is the call graph for this function:

◆ onChangeContact()

void org.turro.zul.intouch.InTouchEdit.onChangeContact ( )

Definition at line 92 of file InTouchEdit.java.

92  {
93  inTouch.setContact(contact.getObjectValue());
94  }
Here is the call graph for this function:

◆ onChangeControl()

void org.turro.zul.intouch.InTouchEdit.onChangeControl ( )

Definition at line 102 of file InTouchEdit.java.

102  {
103  inTouch.setControl(control.getValue());
104  }
void setControl(Date control)
Definition: InTouch.java:73
Here is the call graph for this function:

◆ onChangeDescription()

void org.turro.zul.intouch.InTouchEdit.onChangeDescription ( )

Definition at line 107 of file InTouchEdit.java.

107  {
108  inTouch.setDescription(description.getValue());
109  }
void setDescription(String description)
Definition: InTouch.java:113
Here is the call graph for this function:

◆ onChangeName()

void org.turro.zul.intouch.InTouchEdit.onChangeName ( )

Definition at line 87 of file InTouchEdit.java.

87  {
88  inTouch.setName(name.getObjectValue());
89  }
void setName(String name)
Definition: InTouch.java:81
Here is the call graph for this function:

◆ onSave()

void org.turro.zul.intouch.InTouchEdit.onSave ( )

Definition at line 76 of file InTouchEdit.java.

76  {
77  InTouchUtil.addInTouch(inTouch);
78  detach();
79  }
Here is the call graph for this function:

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