Wt examples
3.3.1
|
An edit field for an email addressee. More...
#include <AddresseeEdit.h>
Public Member Functions | |
AddresseeEdit (const WString &label, WContainerWidget *parent, WContainerWidget *labelParent) | |
Create a new addressee edit with the given label. More... | |
void | setAddressees (const std::vector< Contact > &contacts) |
Set a list of addressees. More... | |
std::vector< Contact > | addressees () const |
Get a list of addressees. More... | |
virtual void | setHidden (bool hidden, const WAnimation &animation) |
Reimplement hide() and show() to also hide() and show() the label. More... | |
![]() | |
WTextArea (WContainerWidget *parent=0) | |
WTextArea (const WString &content, WContainerWidget *parent=0) | |
void | setColumns (int cols) |
void | setRows (int rows) |
int | columns () const |
int | rows () const |
const WString & | text () const |
virtual void | setText (const WString &text) |
int | selectionStart () const |
WString | selectedText () const |
bool | hasSelectedText () const |
int | cursorPosition () const |
virtual WString | valueText () const |
virtual void | setValueText (const WString &text) |
![]() | |
virtual void | setPositionScheme (PositionScheme scheme)=0 |
virtual PositionScheme | positionScheme () const =0 |
virtual void | setOffsets (const WLength &offset, WFlags< Side > sides=All)=0 |
virtual WLength | offset (Side side) const =0 |
virtual void | resize (const WLength &width, const WLength &height) |
virtual WLength | width () const =0 |
virtual WLength | height () const =0 |
virtual void | setMinimumSize (const WLength &width, const WLength &height)=0 |
virtual WLength | minimumWidth () const =0 |
virtual WLength | minimumHeight () const =0 |
virtual void | setMaximumSize (const WLength &width, const WLength &height)=0 |
virtual WLength | maximumWidth () const =0 |
virtual WLength | maximumHeight () const =0 |
virtual void | setLineHeight (const WLength &height)=0 |
virtual WLength | lineHeight () const =0 |
virtual void | setFloatSide (Side s)=0 |
virtual Side | floatSide () const =0 |
virtual void | setClearSides (WFlags< Side > sides)=0 |
virtual WFlags< Side > | clearSides () const =0 |
virtual void | setMargin (const WLength &margin, WFlags< Side > sides=All)=0 |
virtual WLength | margin (Side side) const =0 |
virtual void | setHiddenKeepsGeometry (bool enabled)=0 |
virtual bool | hiddenKeepsGeometry () const =0 |
virtual bool | isHidden () const =0 |
virtual bool | isVisible () const =0 |
virtual void | setDisabled (bool disabled)=0 |
virtual bool | isDisabled () const =0 |
virtual bool | isEnabled () const =0 |
virtual void | setPopup (bool popup)=0 |
virtual bool | isPopup () const =0 |
virtual void | setInline (bool inlined)=0 |
virtual bool | isInline () const =0 |
virtual void | setDecorationStyle (const WCssDecorationStyle &style)=0 |
virtual WCssDecorationStyle & | decorationStyle ()=0 |
virtual void | setStyleClass (const WString &styleClass)=0 |
virtual WString | styleClass () const =0 |
virtual void | addStyleClass (const WString &styleClass, bool force=false)=0 |
virtual void | removeStyleClass (const WString &styleClass, bool force=false)=0 |
virtual bool | hasStyleClass (const WString &styleClass) const =0 |
virtual void | setVerticalAlignment (AlignmentFlag alignment, const WLength &length=WLength::Auto)=0 |
virtual AlignmentFlag | verticalAlignment () const =0 |
virtual WLength | verticalAlignmentLength () const =0 |
virtual void | setToolTip (const WString &text, TextFormat textFormat=PlainText)=0 |
virtual const WString & | toolTip () const =0 |
virtual void | refresh () |
virtual void | setAttributeValue (const std::string &name, const WString &value)=0 |
virtual WString | attributeValue (const std::string &name) const =0 |
virtual void | setJavaScriptMember (const std::string &name, const std::string &value)=0 |
virtual std::string | javaScriptMember (const std::string &name) const =0 |
virtual void | callJavaScriptMember (const std::string &name, const std::string &args)=0 |
virtual void | load ()=0 |
virtual bool | loaded () const =0 |
virtual void | setTabIndex (int index)=0 |
virtual int | tabIndex () const =0 |
virtual void | setId (const std::string &id)=0 |
virtual WWidget * | find (const std::string &name)=0 |
virtual void | setSelectable (bool selectable)=0 |
virtual void | doJavaScript (const std::string &js)=0 |
Private Member Functions | |
bool | parse (std::vector< Contact > &contacts) const |
Parse the addressees into a list of contacts. More... | |
Private Attributes | |
Label * | label_ |
The label associated with this edit. More... | |
Additional Inherited Members | |
![]() | |
virtual int | boxPadding (Orientation orientation) const |
virtual int | boxBorder (Orientation orientation) const |
![]() | |
virtual void | enableAjax ()=0 |
virtual void | propagateSetEnabled (bool enabled)=0 |
virtual void | render (WFlags< RenderFlag > flags) |
An edit field for an email addressee.
This widget is part of the Wt composer example.
Definition at line 31 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.
std::vector< Contact > AddresseeEdit::addressees | ( | ) | const |
Get a list of addressees.
Definition at line 74 of file AddresseeEdit.C.
|
private |
Parse the addressees into a list of contacts.
Definition at line 40 of file AddresseeEdit.C.
void AddresseeEdit::setAddressees | ( | const std::vector< Contact > & | contacts | ) |
Set a list of addressees.
Definition at line 27 of file AddresseeEdit.C.
|
virtual |
Reimplement hide() and show() to also hide() and show() the label.
Implements Wt::WWidget.
Definition at line 82 of file AddresseeEdit.C.
|
private |
The label associated with this edit.
Definition at line 55 of file AddresseeEdit.h.