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

Public Member Functions

Category getCategory ()
 
void setCategory (Category category)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (Category 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

Member Function Documentation

◆ getCategory()

Category org.turro.dossier.dossier.CategoryCombobox.getCategory ( )

Definition at line 34 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/dossier/CategoryCombobox.java.

34  {
35  return getObjectValue();
36  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTextFromObject()

String org.turro.dossier.dossier.CategoryCombobox.getTextFromObject ( Category  value)

Definition at line 59 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/dossier/CategoryCombobox.java.

59  {
60  return value.getFullDescription();
61  }
Here is the call graph for this function:

◆ populateList()

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

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

Definition at line 43 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/dossier/CategoryCombobox.java.

43  {
44  boolean all = Application.getApplication().isInRole("dossier:all");
45  Dao dao = new DossierPU();
46  WhereClause wc = new WhereClause();
47  wc.addClause("select category from Category as category");
48  wc.addClause("where 1=1");
49  wc.addLikeFields(new String[] {"category.fullDescription"}, value);
50  wc.addClause("order by category.fullDescription");
51  for(Object o : dao.getResultList(wc, nRows)) {
52  if(all || new CategoryWrapper((Category) (o)).isParticipant()) {
53  list.add((Category) o);
54  }
55  }
56  }
Here is the call graph for this function:

◆ setCategory()

void org.turro.dossier.dossier.CategoryCombobox.setCategory ( Category  category)

Definition at line 38 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/dossier/CategoryCombobox.java.

38  {
39  setObjectValue(category);
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

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