#include <AddresseeEdit.h>
Public Member Functions | |
AddresseeEdit (const WString &label, WContainerWidget *parent, WContainerWidget *labelParent) | |
Create a new addressee edit with the given label. | |
void | setAddressees (const std::vector< Contact > &contacts) |
Set a list of addressees. | |
std::vector< Contact > | addressees () const |
Get a list of addressees. | |
virtual void | setHidden (bool) |
Reimplement hide() and show() to also hide() and show() the label. | |
Private Member Functions | |
bool | parse (std::vector< Contact > &contacts) const |
Parse the addressees into a list of contacts. | |
Private Attributes | |
Label * | label_ |
The label associated with this edit. |
This widget is part of the Wt composer example.
Definition at line 29 of file AddresseeEdit.h.
AddresseeEdit::AddresseeEdit | ( | const WString & | label, | |
WContainerWidget * | parent, | |||
WContainerWidget * | labelParent | |||
) |
Create a new addressee edit with the given label.
Constructs also a widget to hold the label in the labelParent. The label will be hidden and shown together with this field.
Definition at line 15 of file AddresseeEdit.C.
void AddresseeEdit::setAddressees | ( | const std::vector< Contact > & | contacts | ) |
std::vector< Contact > AddresseeEdit::addressees | ( | ) | const |
void AddresseeEdit::setHidden | ( | bool | how | ) | [virtual] |
Reimplement hide() and show() to also hide() and show() the label.
Reimplemented from Wt::WFormWidget.
Definition at line 82 of file AddresseeEdit.C.
bool AddresseeEdit::parse | ( | std::vector< Contact > & | contacts | ) | const [private] |
Label* AddresseeEdit::label_ [private] |