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

Public Member Functions

void setDossier (Dossier dossier)
 
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 31 of file DossierDescriptionCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.dossier.dossier.DossierDescriptionCombobox.getTextFromObject ( String  value)

Definition at line 60 of file DossierDescriptionCombobox.java.

60  {
61  return value;
62  }

◆ populateList()

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

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

Definition at line 45 of file DossierDescriptionCombobox.java.

45  {
46  Dao dao = new DossierPU();
47  WhereClause wc = new WhereClause();
48  wc.addClause("select distinct dossier.description from Dossier as dossier");
49  wc.addClause("where 1=1");
50  if(dossier != null) {
51  wc.addClause("and dossier.category = :category");
52  wc.addNamedValue("category", dossier.getCategory());
53  }
54  wc.addLikeFields(new String[] {"dossier.description"}, value);
55  wc.addClause("order by dossier.description");
56  list.addAll(dao.getResultList(wc, nRows));
57  }
Here is the call graph for this function:

◆ setDossier()

void org.turro.dossier.dossier.DossierDescriptionCombobox.setDossier ( Dossier  dossier)

Definition at line 35 of file DossierDescriptionCombobox.java.

35  {
36  this.dossier = dossier;
37  //Constraint c = getConstraint();
38  //setConstraint((Constraint) null);
39  setObjectValue(dossier.getDescription());
40  refreshModel();
41  //setConstraint(c);
42  }
Here is the call graph for this function:

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