BrightSide Workbench Full Report + Source Code
org.turro.financials.document.DocumentDefinitionCombobox Class Reference
Inheritance diagram for org.turro.financials.document.DocumentDefinitionCombobox:
Collaboration diagram for org.turro.financials.document.DocumentDefinitionCombobox:

Public Member Functions

void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (DocumentDefinition 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 DocumentDefinitionCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.financials.document.DocumentDefinitionCombobox.getTextFromObject ( DocumentDefinition  value)

Definition at line 45 of file DocumentDefinitionCombobox.java.

45  {
46  return value.getName();
47  }
Here is the call graph for this function:

◆ populateList()

void org.turro.financials.document.DocumentDefinitionCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 34 of file DocumentDefinitionCombobox.java.

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

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