BrightSide Workbench Full Report + Source Code
org.turro.zkoss.contact.IContactCombobox Class Reference
Inheritance diagram for org.turro.zkoss.contact.IContactCombobox:
Collaboration diagram for org.turro.zkoss.contact.IContactCombobox:

Public Member Functions

void setRole (String role)
 
void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (IContact 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 36 of file IContactCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.zkoss.contact.IContactCombobox.getTextFromObject ( IContact  value)

Definition at line 56 of file IContactCombobox.java.

56  {
57  return value.getFullName();
58  }
Here is the call graph for this function:

◆ populateList()

void org.turro.zkoss.contact.IContactCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

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

Definition at line 46 of file IContactCombobox.java.

46  {
47  try {
48  KeyValueMap kvm = new KeyValueMap(!Strings.isBlank(role) ? "role=" + role : "");
49  list.addAll(manager.loadByPartialName(value, kvm));
50  } catch (ParserException ex) {
51  Logger.getLogger(IContactCombobox.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
52  }
53  }
List< IContact > loadByPartialName(String name)
Here is the call graph for this function:

◆ setRole()

void org.turro.zkoss.contact.IContactCombobox.setRole ( String  role)

Definition at line 41 of file IContactCombobox.java.

41  {
42  this.role = role;
43  }

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