BrightSide Workbench Full Report + Source Code
org.turro.crm.zul.customer.CustomerCombobox Class Reference
Inheritance diagram for org.turro.crm.zul.customer.CustomerCombobox:
Collaboration diagram for org.turro.crm.zul.customer.CustomerCombobox:

Public Member Functions

void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (Customer 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
llturro

Definition at line 15 of file CustomerCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.crm.zul.customer.CustomerCombobox.getTextFromObject ( Customer  value)

Definition at line 32 of file CustomerCombobox.java.

32  {
33  return value.getName();
34  }
Here is the call graph for this function:

◆ populateList()

void org.turro.crm.zul.customer.CustomerCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 18 of file CustomerCombobox.java.

18  {
19  Dao dao = new CrmPU();
20  WhereClause wc = new WhereClause();
21  wc.addClause("select customer from Customer as customer");
22  wc.addClause("where 1=1");
23  wc.addLikeFields(new String[] {"customer.name"}, value);
24  wc.addClause("order by customer.name");
25  List<Customer> l = dao.getResultList(wc, nRows);
26  for(Object o : l) {
27  list.add((Customer) o);
28  }
29  }
Here is the call graph for this function:

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