BrightSide Workbench Full Report + Source Code
org.turro.publication.zul.www.AuthorCombobox Class Reference
Inheritance diagram for org.turro.publication.zul.www.AuthorCombobox:
Collaboration diagram for org.turro.publication.zul.www.AuthorCombobox:

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 30 of file AuthorCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.publication.zul.www.AuthorCombobox.getTextFromObject ( String  value)

Definition at line 44 of file AuthorCombobox.java.

44  {
45  return value;
46  }

◆ populateList()

void org.turro.publication.zul.www.AuthorCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 33 of file AuthorCombobox.java.

33  {
34  Dao dao = new PublicationPU();
35  WhereClause wc = new WhereClause();
36  wc.addClause("select distinct publication.author from Publication as publication");
37  wc.addClause("where 1=1");
38  wc.addLikeFields(new String[] {"publication.author"}, value);
39  wc.addClause("order by publication.author");
40  list.addAll(dao.getResultList(wc, nRows));
41  }
Here is the call graph for this function:

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