BrightSide Workbench Full Report + Source Code
org.turro.jpa.input.JpaLabelCombobox< V > Class Template Referenceabstract
Inheritance diagram for org.turro.jpa.input.JpaLabelCombobox< V >:
Collaboration diagram for org.turro.jpa.input.JpaLabelCombobox< V >:

Public Member Functions

 JpaLabelCombobox (Dao dao, WhereClause wc, List< String > defaultValues)
 
void setParameters (Object[] parameters)
 
void setDefaultValues (List< String > defaultValues)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (V value)
 
- Public Member Functions inherited from org.turro.jpa.input.JpaCombobox< V >
 JpaCombobox ()
 
 JpaCombobox (Dao dao, String query)
 
 JpaCombobox (Dao dao, WhereClause wc)
 
Dao getDao ()
 
void setDao (Dao dao)
 
String getQuery ()
 
void setQuery (String query)
 
- 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 ()
 
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 32 of file JpaLabelCombobox.java.

Constructor & Destructor Documentation

◆ JpaLabelCombobox()

org.turro.jpa.input.JpaLabelCombobox< V >.JpaLabelCombobox ( Dao  dao,
WhereClause  wc,
List< String >  defaultValues 
)

Definition at line 37 of file JpaLabelCombobox.java.

37  {
38  super(dao, wc);
39  this.defaultValues = defaultValues;
40  }

Member Function Documentation

◆ getTextFromObject()

String org.turro.jpa.input.JpaLabelCombobox< V >.getTextFromObject ( value)

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

Definition at line 60 of file JpaLabelCombobox.java.

60  {
61  if(parameters != null) {
62  return I_.format((String) value, parameters);
63  } else {
64  return I_.get((String) value);
65  }
66  }
Here is the call graph for this function:

◆ populateList()

void org.turro.jpa.input.JpaLabelCombobox< V >.populateList ( String  value,
LinkedList  list,
int  nRows 
)

Reimplemented from org.turro.jpa.input.JpaCombobox< V >.

Definition at line 51 of file JpaLabelCombobox.java.

51  {
52  if(Strings.isBlank(value)) value = "";
53  addValues(list, defaultValues, value);
54  LinkedList tmp = new LinkedList();
55  super.populateList(value, tmp, nRows);
56  addValues(list, tmp, value);
57  }

◆ setDefaultValues()

void org.turro.jpa.input.JpaLabelCombobox< V >.setDefaultValues ( List< String >  defaultValues)

Definition at line 46 of file JpaLabelCombobox.java.

46  {
47  this.defaultValues = defaultValues;
48  }

◆ setParameters()

void org.turro.jpa.input.JpaLabelCombobox< V >.setParameters ( Object[]  parameters)

Definition at line 42 of file JpaLabelCombobox.java.

42  {
43  this.parameters = parameters;
44  }

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