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

Public Member Functions

void setRole (String role)
 
void setOnlyUsers (boolean onlyUsers)
 
Contact getContact ()
 
void setContact (Contact contact)
 
IContact getIContact ()
 
void setIContact (IContact iContact)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (Contact value)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericCombobox< V >
 GenericCombobox ()
 
getObjectValue ()
 
void setObjectValue (V value)
 
boolean isAllowNotInModelValues ()
 
void setAllowNotInModelValues (boolean allowNotInModelValues)
 
void refreshModel ()
 
abstract String getTextFromObject (V value)
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 
void render (Comboitem item, Object data, int index) throws Exception
 

Detailed Description

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

Definition at line 37 of file ContactCombobox.java.

Member Function Documentation

◆ getContact()

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

Definition at line 50 of file ContactCombobox.java.

50  {
51  return getObjectValue();
52  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIContact()

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

Definition at line 58 of file ContactCombobox.java.

58  {
59  Contact contact = getContact();
60  IContact c = Contacts.getEmpty();
61  c.setContact(contact);
62  return c;
63  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIdContact()

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

Definition at line 69 of file ContactCombobox.java.

69  {
70  Contact contact = getContact();
71  if(contact != null) {
72  return contact.getId();
73  }
74  return null;
75  }
Here is the call graph for this function:

◆ getTextFromObject()

String org.turro.contacts.util.ContactCombobox.getTextFromObject ( Contact  value)

Definition at line 93 of file ContactCombobox.java.

93  {
94  return value.getFullName();
95  }
Here is the call graph for this function:

◆ populateList()

void org.turro.contacts.util.ContactCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.

Definition at line 82 of file ContactCombobox.java.

82  {
83  try {
84  KeyValueMap kvm = new KeyValueMap(!Strings.isBlank(role) ? "role=" + role : "");
85  ContactEntities ce = new ContactEntities();
86  list.addAll(ce.getEntitites("contact", value, nRows, kvm));
87  } catch (ParserException ex) {
88  Logger.getLogger(ContactCombobox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
89  }
90  }
Here is the call graph for this function:

◆ setContact()

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

Definition at line 54 of file ContactCombobox.java.

54  {
55  setObjectValue(contact);
56  }
Here is the call graph for this function:

◆ setIContact()

void org.turro.contacts.util.ContactCombobox.setIContact ( IContact  iContact)

Definition at line 65 of file ContactCombobox.java.

65  {
66  setObjectValue(iContact != null ? (Contact) iContact.getContact() : null);
67  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setIdContact()

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

Definition at line 77 of file ContactCombobox.java.

77  {
78  setIContact(Contacts.getContactById(idContact));
79  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnlyUsers()

void org.turro.contacts.util.ContactCombobox.setOnlyUsers ( boolean  onlyUsers)

Definition at line 46 of file ContactCombobox.java.

46  {
47  this.onlyUsers = onlyUsers;
48  }

◆ setRole()

void org.turro.contacts.util.ContactCombobox.setRole ( String  role)

Definition at line 42 of file ContactCombobox.java.

42  {
43  this.role = role;
44  }
Here is the caller graph for this function:

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