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

Public Member Functions

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

Member Function Documentation

◆ getTextFromObject()

String org.turro.agreements.AgreementCombobox.getTextFromObject ( Agreement  value)

Definition at line 42 of file AgreementCombobox.java.

42  {
43  return value.getTitle();
44  }
Here is the call graph for this function:

◆ populateList()

void org.turro.agreements.AgreementCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 33 of file AgreementCombobox.java.

33  {
34  for(Agreement agreement : AgreementsUtil.getAgreements()) {
35  if(!Strings.isBlank(agreement.getTitle()) && (agreement.getTitle().contains(value) || Strings.isBlank(agreement.getTitle()))) {
36  list.add(agreement);
37  }
38  }
39  }
Here is the call graph for this function:

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