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

Public Member Functions

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

Member Function Documentation

◆ getTextFromObject()

String org.turro.financials.linetype.LineTypeCombobox.getTextFromObject ( LineType  value)

Definition at line 45 of file LineTypeCombobox.java.

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

◆ populateList()

void org.turro.financials.linetype.LineTypeCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 34 of file LineTypeCombobox.java.

34  {
35  Dao dao = new FinancialsPU();
36  WhereClause wc = new WhereClause();
37  wc.addClause("select lineType from LineType as lineType");
38  wc.addClause("where 1=1");
39  wc.addLikeFields(new String[] { "lineType.name" }, value);
40  wc.addClause("order by lineType.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: