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

Public Member Functions

IContact getContact ()
 
void setContact (IContact contact)
 
boolean isAllowSelf ()
 
void setAllowSelf (boolean allowSelf)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (IContact 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 29 of file BusinessCombobox.java.

Member Function Documentation

◆ getContact()

IContact org.turro.contacts.BusinessCombobox.getContact ( )

Definition at line 34 of file BusinessCombobox.java.

34  {
35  return contact;
36  }

◆ getTextFromObject()

String org.turro.contacts.BusinessCombobox.getTextFromObject ( IContact  value)

Definition at line 62 of file BusinessCombobox.java.

62  {
63  return value.getName();
64  }
Here is the call graph for this function:

◆ isAllowSelf()

boolean org.turro.contacts.BusinessCombobox.isAllowSelf ( )

Definition at line 43 of file BusinessCombobox.java.

43  {
44  return allowSelf;
45  }

◆ populateList()

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

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

Definition at line 52 of file BusinessCombobox.java.

52  {
53  if(contact != null) {
54  list.addAll(contact.getBusinessList());
55  if(allowSelf && !list.contains(contact)) {
56  list.add(contact);
57  }
58  }
59  }
List< IContact > getBusinessList()
Here is the call graph for this function:

◆ setAllowSelf()

void org.turro.contacts.BusinessCombobox.setAllowSelf ( boolean  allowSelf)

Definition at line 47 of file BusinessCombobox.java.

47  {
48  this.allowSelf = allowSelf;
49  }

◆ setContact()

void org.turro.contacts.BusinessCombobox.setContact ( IContact  contact)

Definition at line 38 of file BusinessCombobox.java.

38  {
39  this.contact = contact;
40  refreshModel();
41  }
Here is the call graph for this function:

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