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

Public Member Functions

void setEntityPath (String entityPath)
 
void setIncludeBusiness (boolean includeBusiness)
 
void setWebUsers (boolean webUsers)
 
void setDeep (boolean deep)
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericListbox< V >
 GenericListbox ()
 
void setDisabled (boolean value)
 
void afterCompose ()
 
void clearItems ()
 
void setObjectValue (V value)
 
void setObjectValues (Collection< V > collection)
 
getObjectValue ()
 
Collection< V > getObjectValues ()
 
Collection< V > getDeselectedObjectValues ()
 
boolean isSelectFirst ()
 
void setSelectFirst (boolean selectFirst)
 
Set getDeselectedItems ()
 
void sort ()
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 

Protected Member Functions

String convertToString (IContact v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< V >
static final String ITEM_SEPARATOR = "|||"
 
- Protected Attributes inherited from org.turro.zkoss.input.GenericListbox< V >
boolean populated = false
 

Detailed Description

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

Definition at line 29 of file AssistantListbox.java.

Member Function Documentation

◆ convertToString()

String org.turro.assistant.AssistantListbox.convertToString ( IContact  v)
protected

Definition at line 61 of file AssistantListbox.java.

61  {
62  return v.getFullName();
63  }
Here is the call graph for this function:

◆ setDeep()

void org.turro.assistant.AssistantListbox.setDeep ( boolean  deep)

Definition at line 56 of file AssistantListbox.java.

56  {
57  this.deep = deep;
58  }

◆ setEntityPath()

void org.turro.assistant.AssistantListbox.setEntityPath ( String  entityPath)

Definition at line 34 of file AssistantListbox.java.

34  {
35  AssistantSet list = new AssistantSet();
36  Assistants.addAssistants(entityPath, deep, list, null);
37  list.forEach(assistant -> {
38  if(!webUsers || assistant.getContact().isWebUser()) {
39  contacts.add(assistant.getContact());
40  }
41  if(includeBusiness) {
42  contacts.addAll(contacts.getBusiness());
43  }
44  });
45  updateCollection(contacts);
46  }
Here is the call graph for this function:

◆ setIncludeBusiness()

void org.turro.assistant.AssistantListbox.setIncludeBusiness ( boolean  includeBusiness)

Definition at line 48 of file AssistantListbox.java.

48  {
49  this.includeBusiness = includeBusiness;
50  }

◆ setWebUsers()

void org.turro.assistant.AssistantListbox.setWebUsers ( boolean  webUsers)

Definition at line 52 of file AssistantListbox.java.

52  {
53  this.webUsers = webUsers;
54  }

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