BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.dossier.DiscriminatorCombobox Class Reference
Inheritance diagram for org.turro.dossier.zul.dossier.DiscriminatorCombobox:
Collaboration diagram for org.turro.dossier.zul.dossier.DiscriminatorCombobox:

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

Member Function Documentation

◆ getTextFromObject()

String org.turro.dossier.zul.dossier.DiscriminatorCombobox.getTextFromObject ( String  value)

Definition at line 59 of file DiscriminatorCombobox.java.

59  {
60  return value;
61  }

◆ populateList()

void org.turro.dossier.zul.dossier.DiscriminatorCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 36 of file DiscriminatorCombobox.java.

36  {
37  Dao dao = new DossierPU();
38  WhereClause wc = new WhereClause();
39  wc.addClause("select distinct p.discriminator from Participant p");
40  wc.setPrefix("where");
41  wc.addLikeFields(new String[] { "p.discriminator" }, value);
42  for(String s : (List<String>) dao.getResultList(wc)) {
43  if(!Strings.isBlank(s)) {
44  list.add(s);
45  }
46  }
47  wc = new WhereClause();
48  wc.addClause("select distinct p.discriminator from CategoryParticipant p");
49  wc.setPrefix("where");
50  wc.addLikeFields(new String[] { "p.discriminator" }, value);
51  for(String s : (List<String>) dao.getResultList(wc)) {
52  if(!Strings.isBlank(s) && !list.contains(s)) {
53  list.add(s);
54  }
55  }
56  }
Here is the call graph for this function:

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