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

Public Member Functions

void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (String 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 33 of file ContactGroupingCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.contacts.zul.contact.ContactGroupingCombobox.getTextFromObject ( String  value)

Definition at line 50 of file ContactGroupingCombobox.java.

50  {
51  return value;
52  }

◆ populateList()

void org.turro.contacts.zul.contact.ContactGroupingCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 36 of file ContactGroupingCombobox.java.

36  {
37  Dao dao = new ContactsPU();
38  WhereClause wc = new WhereClause();
39  wc.addClause("select distinct i.grouping from Contact i");
40  wc.setPrefix("where");
41  wc.addLikeFields(new String[] { "i.grouping" }, value);
42  for(String s : (List<String>) dao.getResultList(wc)) {
43  if(!Strings.isBlank(s)) {
44  list.add(s);
45  }
46  }
47  }
Here is the call graph for this function:

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