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

Public Member Functions

 ContactControl ()
 
void contactChange ()
 
boolean isEnterprise ()
 
void setEnterprise (boolean enterprise)
 
Contact getContact ()
 
void setContact (Contact contact)
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
boolean isReadOnly ()
 
void setReadOnly (boolean readOnly)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 41 of file ContactControl.java.

Constructor & Destructor Documentation

◆ ContactControl()

org.turro.contacts.util.ContactControl.ContactControl ( )

Definition at line 54 of file ContactControl.java.

54  {
55  Executions.createComponents("/WEB-INF/_zul/bs/comps/contact/contactControl.zul", this, null);
56  Selectors.wireComponents(this, this, false);
57  Selectors.wireEventListeners(this, this);
58  }

Member Function Documentation

◆ afterCompose()

void org.turro.contacts.util.ContactControl.afterCompose ( )

Definition at line 132 of file ContactControl.java.

132  {
133  initControls();
134  }

◆ contactChange()

void org.turro.contacts.util.ContactControl.contactChange ( )

Definition at line 61 of file ContactControl.java.

61  {
62  contact = contactbox.getContact();
63  updateControls();
64  Events.postEvent(new Event(Events.ON_CHANGE, this));
65  }

◆ getContact()

Contact org.turro.contacts.util.ContactControl.getContact ( )

Definition at line 75 of file ContactControl.java.

75  {
76  return contact;
77  }

◆ getIContact()

IContact org.turro.contacts.util.ContactControl.getIContact ( )

Definition at line 84 of file ContactControl.java.

84  {
85  return new DefaultContact(contact);
86  }
Here is the caller graph for this function:

◆ getIdContact()

String org.turro.contacts.util.ContactControl.getIdContact ( )

Definition at line 93 of file ContactControl.java.

93  {
94  return contact != null ? contact.getId() : null;
95  }
Here is the call graph for this function:

◆ isEnterprise()

boolean org.turro.contacts.util.ContactControl.isEnterprise ( )

Definition at line 67 of file ContactControl.java.

67  {
68  return enterprise;
69  }

◆ isReadOnly()

boolean org.turro.contacts.util.ContactControl.isReadOnly ( )

Definition at line 103 of file ContactControl.java.

103  {
104  return readOnly;
105  }

◆ setContact()

void org.turro.contacts.util.ContactControl.setContact ( Contact  contact)

Definition at line 79 of file ContactControl.java.

79  {
80  this.contact = contact;
81  updateControls();
82  }

◆ setEnterprise()

void org.turro.contacts.util.ContactControl.setEnterprise ( boolean  enterprise)

Definition at line 71 of file ContactControl.java.

71  {
72  this.enterprise = enterprise;
73  }

◆ setIContact()

void org.turro.contacts.util.ContactControl.setIContact ( IContact  contact)

Definition at line 88 of file ContactControl.java.

88  {
89  this.contact = (Contact) contact.getContact();
90  updateControls();
91  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setIdContact()

void org.turro.contacts.util.ContactControl.setIdContact ( String  idContact)

Definition at line 97 of file ContactControl.java.

97  {
98  this.contact = Strings.isBlank(idContact) ? null :
99  new ContactsPU().find(Contact.class, idContact);
100  updateControls();
101  }

◆ setReadOnly()

void org.turro.contacts.util.ContactControl.setReadOnly ( boolean  readOnly)

Definition at line 107 of file ContactControl.java.

107  {
108  this.readOnly = readOnly;
109  }
Here is the caller graph for this function:

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