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

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 CoworkerCombobox.java.

Member Function Documentation

◆ getContact()

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

Definition at line 34 of file CoworkerCombobox.java.

34  {
35  return contact;
36  }

◆ getTextFromObject()

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

Definition at line 62 of file CoworkerCombobox.java.

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

◆ isAllowSelf()

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

Definition at line 43 of file CoworkerCombobox.java.

43  {
44  return allowSelf;
45  }

◆ populateList()

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

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

Definition at line 52 of file CoworkerCombobox.java.

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

◆ setAllowSelf()

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

Definition at line 47 of file CoworkerCombobox.java.

47  {
48  this.allowSelf = allowSelf;
49  }

◆ setContact()

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

Definition at line 38 of file CoworkerCombobox.java.

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

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