AddresseeEdit Class Reference
[Composer example]

An edit field for an email addressee. More...

#include <AddresseeEdit.h>

Inheritance diagram for AddresseeEdit:

Inheritance graph
[legend]

List of all members.

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< Contactaddressees () 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

Labellabel_
 The label associated with this edit.


Detailed Description

An edit field for an email addressee.

This widget is part of the Wt composer example.

Definition at line 29 of file AddresseeEdit.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void AddresseeEdit::setAddressees ( const std::vector< Contact > &  contacts  ) 

Set a list of addressees.

Definition at line 27 of file AddresseeEdit.C.

std::vector< Contact > AddresseeEdit::addressees (  )  const

Get a list of addressees.

Definition at line 74 of file AddresseeEdit.C.

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]

Parse the addressees into a list of contacts.

Definition at line 40 of file AddresseeEdit.C.


Member Data Documentation

Label* AddresseeEdit::label_ [private]

The label associated with this edit.

Definition at line 53 of file AddresseeEdit.h.


The documentation for this class was generated from the following files:
Generated on Fri Jul 25 17:05:59 2008 for Wt by doxygen 1.5.3