ContactSuggestions Class Reference
[Composer example]

A suggestion popup suggesting contacts from an addressbook. More...

#include <ContactSuggestions.h>

Inherits Wt::WSuggestionPopup.

List of all members.

Public Member Functions

 ContactSuggestions (WContainerWidget *parent=0)
 Create a new ContactSuggestions popup.
void setAddressBook (const std::vector< Contact > &contacts)
 Set the address book.

Detailed Description

A suggestion popup suggesting contacts from an addressbook.

This popup provides suggestions from a list of contact, by matching parts of the name or email adress with the current value being edited. It also supports editing a list of email addresses.

The popup is only available when JavaScript is available, and is implemented entirely on the client-side.

Definition at line 32 of file ContactSuggestions.h.


Constructor & Destructor Documentation

ContactSuggestions::ContactSuggestions ( WContainerWidget parent = 0  ) 

Create a new ContactSuggestions popup.

Definition at line 24 of file ContactSuggestions.C.

00025   : WSuggestionPopup(WSuggestionPopup::generateMatcherJS(contactOptions),
00026                      WSuggestionPopup::generateReplacerJS(contactOptions),
00027                      parent)
00028 { }


Member Function Documentation

void ContactSuggestions::setAddressBook ( const std::vector< Contact > &  contacts  ) 

Set the address book.

Definition at line 30 of file ContactSuggestions.C.

00031 {
00032   clearSuggestions();
00033 
00034   for (unsigned i = 0; i < contacts.size(); ++i)
00035     addSuggestion(contacts[i].formatted(), contacts[i].formatted());
00036 }


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

Generated on Thu May 13 05:16:01 2010 for Wt by doxygen 1.6.3