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

Public Member Functions

void setType (String type)
 
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 32 of file PositionCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.contacts.profile.PositionCombobox.getTextFromObject ( String  value)

Definition at line 55 of file PositionCombobox.java.

55  {
56  return value;
57  }

◆ populateList()

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

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

Definition at line 41 of file PositionCombobox.java.

41  {
42  Dao dao = new ContactsPU();
43  WhereClause wc = new WhereClause();
44  wc.addClause("select r.description from BusinessRelation r");
45  wc.addClause("where r.business.type = :type");
46  wc.addNamedValue("type", ContactType.valueOf(type));
47  wc.addLikeFields(new String[] {"r.description"}, value);
48  wc.addClause("order by r.description");
49  for(String desc : dao.getResultList(String.class, wc, nRows)) {
50  list.add(desc);
51  }
52  }
Here is the call graph for this function:

◆ setType()

void org.turro.contacts.profile.PositionCombobox.setType ( String  type)

Definition at line 36 of file PositionCombobox.java.

36  {
37  this.type = type;
38  }

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