BrightSide Workbench Full Report + Source Code
org.turro.contacts.util.AddressListbox Class Reference
Inheritance diagram for org.turro.contacts.util.AddressListbox:
Collaboration diagram for org.turro.contacts.util.AddressListbox:

Public Member Functions

void setProvider (IContact provider)
 
void setProvider (Contact provider)
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericListbox< V >
 GenericListbox ()
 
void setDisabled (boolean value)
 
void afterCompose ()
 
void clearItems ()
 
void setObjectValue (V value)
 
void setObjectValues (Collection< V > collection)
 
getObjectValue ()
 
Collection< V > getObjectValues ()
 
Collection< V > getDeselectedObjectValues ()
 
boolean isSelectFirst ()
 
void setSelectFirst (boolean selectFirst)
 
Set getDeselectedItems ()
 
void sort ()
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 

Protected Member Functions

String convertToString (Address v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< V >
static final String ITEM_SEPARATOR = "|||"
 
- Protected Attributes inherited from org.turro.zkoss.input.GenericListbox< V >
boolean populated = false
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file AddressListbox.java.

Member Function Documentation

◆ convertToString()

String org.turro.contacts.util.AddressListbox.convertToString ( Address  v)
protected

Definition at line 47 of file AddressListbox.java.

47  {
48  return (!v.getContact().getId().equals(provider.getId()) ? v.getContact().getName() + Chars.forward().spaced() : "") + v.getFullAddress();
49  }
Here is the call graph for this function:

◆ setProvider() [1/2]

void org.turro.contacts.util.AddressListbox.setProvider ( Contact  provider)

Definition at line 39 of file AddressListbox.java.

39  {
40  this.provider = provider;
41  if(provider != null) {
42  updateCollection(new AddressAdapter(provider));
43  }
44  }
Here is the call graph for this function:

◆ setProvider() [2/2]

void org.turro.contacts.util.AddressListbox.setProvider ( IContact  provider)

Definition at line 35 of file AddressListbox.java.

35  {
36  setProvider((Contact) provider.getContact());
37  }
Here is the call graph for this function:

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