|
Wt examples
3.3.8
|
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... | |
Public Member Functions inherited from Wt::WTextArea | |
| 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) |
| EventSignal & | textInput () |
Public Member Functions inherited from Wt::WFormWidget | |
| WFormWidget (WContainerWidget *parent=0) | |
| ~WFormWidget () | |
| WLabel * | label () const |
| void | setValidator (WValidator *validator) |
| virtual WValidator * | validator () const |
| virtual WValidator::State | validate () |
| void | setEnabled (bool enabled) |
| virtual void | setReadOnly (bool readOnly) |
| bool | isReadOnly () const |
| void | setEmptyText (const WString &emptyText) |
| const WString & | emptyText () const |
| virtual void | setPlaceholderText (const WString &placeholder) |
| const WString & | placeholderText () const |
| EventSignal & | changed () |
| EventSignal & | selected () |
| Signal< WValidator::Result > & | validated () |
| virtual void | refresh () |
| virtual void | setToolTip (const WString &text, TextFormat textFormat=PlainText) |
| virtual bool | canReceiveFocus () const |
| virtual int | tabIndex () const |
Public Member Functions inherited from Wt::WInteractWidget | |
| WInteractWidget (WContainerWidget *parent=0) | |
| EventSignal< WKeyEvent > & | keyWentDown () |
| EventSignal< WKeyEvent > & | keyPressed () |
| EventSignal< WKeyEvent > & | keyWentUp () |
| EventSignal & | enterPressed () |
| EventSignal & | escapePressed () |
| EventSignal< WMouseEvent > & | clicked () |
| EventSignal< WMouseEvent > & | doubleClicked () |
| EventSignal< WMouseEvent > & | mouseWentDown () |
| EventSignal< WMouseEvent > & | mouseWentUp () |
| EventSignal< WMouseEvent > & | mouseWentOut () |
| EventSignal< WMouseEvent > & | mouseWentOver () |
| EventSignal< WMouseEvent > & | mouseMoved () |
| EventSignal< WMouseEvent > & | mouseDragged () |
| EventSignal< WMouseEvent > & | mouseWheel () |
| EventSignal< WTouchEvent > & | touchStarted () |
| EventSignal< WTouchEvent > & | touchEnded () |
| EventSignal< WTouchEvent > & | touchMoved () |
| EventSignal< WGestureEvent > & | gestureStarted () |
| EventSignal< WGestureEvent > & | gestureChanged () |
| EventSignal< WGestureEvent > & | gestureEnded () |
| void | setDraggable (const std::string &mimeType, WWidget *dragWidget=0, bool isDragWidgetOnly=false, WObject *sourceWidget=0) |
| void | unsetDraggable () |
| void | setMouseOverDelay (int delay) |
| int | mouseOverDelay () const |
| virtual void | setPopup (bool popup) |
| virtual void | load () |
| virtual bool | isEnabled () const |
Public Member Functions inherited from Wt::WWebWidget | |
| WWebWidget (WContainerWidget *parent=0) | |
| virtual void | setPositionScheme (PositionScheme scheme) |
| virtual PositionScheme | positionScheme () const |
| virtual void | setOffsets (const WLength &offset, WFlags< Side > sides=All) |
| virtual WLength | offset (Side s) const |
| virtual void | resize (const WLength &width, const WLength &height) |
| virtual WLength | width () const |
| virtual WLength | height () const |
| virtual void | setMinimumSize (const WLength &width, const WLength &height) |
| virtual WLength | minimumWidth () const |
| virtual WLength | minimumHeight () const |
| virtual void | setMaximumSize (const WLength &width, const WLength &height) |
| virtual WLength | maximumWidth () const |
| virtual WLength | maximumHeight () const |
| virtual void | setLineHeight (const WLength &height) |
| virtual WLength | lineHeight () const |
| virtual void | setFloatSide (Side s) |
| virtual Side | floatSide () const |
| virtual void | setClearSides (WFlags< Side > sides) |
| virtual WFlags< Side > | clearSides () const |
| virtual void | setMargin (const WLength &margin, WFlags< Side > sides=All) |
| virtual WLength | margin (Side side) const |
| virtual void | setHiddenKeepsGeometry (bool enabled) |
| virtual bool | hiddenKeepsGeometry () const |
| virtual bool | isHidden () const |
| virtual bool | isVisible () const |
| virtual void | setDisabled (bool disabled) |
| virtual bool | isDisabled () const |
| virtual bool | isPopup () const |
| virtual void | setInline (bool isInline) |
| virtual bool | isInline () const |
| virtual void | setDecorationStyle (const WCssDecorationStyle &style) |
| virtual WCssDecorationStyle & | decorationStyle () |
| virtual void | setStyleClass (const WString &styleClass) |
| virtual WString | styleClass () const |
| virtual void | addStyleClass (const WString &styleClass, bool force=false) |
| virtual void | removeStyleClass (const WString &styleClass, bool force=false) |
| virtual bool | hasStyleClass (const WString &styleClass) const |
| virtual void | setVerticalAlignment (AlignmentFlag alignment, const WLength &length=WLength()) |
| virtual AlignmentFlag | verticalAlignment () const |
| virtual WLength | verticalAlignmentLength () const |
| virtual void | setDeferredToolTip (bool enable, TextFormat textFormat=PlainText) |
| virtual WString | toolTip () const |
| virtual void | setAttributeValue (const std::string &name, const WString &value) |
| virtual WString | attributeValue (const std::string &name) const |
| virtual void | setJavaScriptMember (const std::string &name, const std::string &value) |
| virtual std::string | javaScriptMember (const std::string &name) const |
| virtual void | callJavaScriptMember (const std::string &name, const std::string &args) |
| virtual bool | loaded () const |
| virtual void | setId (const std::string &id) |
| virtual WWidget * | find (const std::string &name) |
| virtual WWidget * | findById (const std::string &id) |
| virtual void | setSelectable (bool selectable) |
| virtual void | doJavaScript (const std::string &javascript) |
| virtual const std::string | id () const |
| void | setLoadLaterWhenInvisible (bool) |
| std::string | htmlTagName () const |
| void | setHtmlTagName (const std::string &tag) |
| const std::vector< WWidget * > & | children () const |
| Signal & | childrenChanged () |
| virtual void | setCanReceiveFocus (bool enabled) |
| virtual bool | setFirstFocus () |
| virtual void | setFocus (bool focus) |
| virtual bool | hasFocus () const |
| virtual void | setTabIndex (int index) |
| EventSignal & | blurred () |
| EventSignal & | focussed () |
| virtual bool | scrollVisibilityEnabled () const WT_CXX11ONLY(finaloverride) |
| virtual void | setScrollVisibilityEnabled (bool enabled) WT_CXX11ONLY(finaloverride) |
| virtual int | scrollVisibilityMargin () const WT_CXX11ONLY(finaloverride) |
| virtual void | setScrollVisibilityMargin (int margin) WT_CXX11ONLY(finaloverride) |
| virtual Signal< bool > & | scrollVisibilityChanged () WT_CXX11ONLY(finaloverride) |
| virtual bool | isScrollVisible () const WT_CXX11ONLY(finaloverride) |
| virtual void | setThemeStyleEnabled (bool enabled) |
| virtual bool | isThemeStyleEnabled () const |
Public Member Functions inherited from Wt::WWidget | |
| virtual | ~WWidget () |
| WWidget * | parent () const |
| virtual void | removeChild (WObject *child) |
| void | setWidth (const WLength &width) |
| void | setHeight (const WLength &height) |
| virtual void | positionAt (const WWidget *widget, Orientation orientation=Vertical) |
| virtual void | toggleStyleClass (const WString &styleClass, bool add, bool force=false) |
| std::string | jsRef () const |
| void | setFocus () |
| virtual void | acceptDrops (const std::string &mimeType, const WString &hoverStyleClass=WString()) |
| virtual void | stopAcceptDrops (const std::string &mimeType) |
| virtual void | setObjectName (const std::string &name) |
| virtual void | htmlText (std::ostream &out) |
| bool | isRendered () const |
| void | hide () |
| void | animateHide (const WAnimation &animation) |
| void | show () |
| void | animateShow (const WAnimation &animation) |
| void | enable () |
| void | disable () |
| bool | layoutSizeAware () const |
Public Member Functions inherited from Wt::WObject | |
| WObject (WObject *parent=0) | |
| virtual | ~WObject () |
| virtual std::string | objectName () const |
| void | resetLearnedSlots () |
| void | resetLearnedSlot (void(T::*method)()) |
| WStatelessSlot * | implementStateless (void(T::*method)()) |
| WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
| void | isNotStateless () |
| WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
| void | addChild (WObject *child) |
| const std::vector< WObject * > & | children () const |
| WObject * | parent () const |
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 | |
Public Types inherited from Wt::WObject | |
| typedef void(WObject::* | Method) () |
Static Public Member Functions inherited from Wt::WWebWidget | |
| static WString | escapeText (const WString &text, bool newlinesToo=false) |
| static std::string & | escapeText (std::string &text, bool newlinestoo=false) |
| static bool | removeScript (WString &text) |
| static std::string | jsStringLiteral (const std::string &v, char delimiter= '\'') |
Static Public Member Functions inherited from Wt::WWidget | |
| static WString | tr (const char *key) |
Protected Member Functions inherited from Wt::WTextArea | |
| virtual int | boxPadding (Orientation orientation) const |
| virtual int | boxBorder (Orientation orientation) const |
Protected Member Functions inherited from Wt::WFormWidget | |
| virtual void | enableAjax () |
| virtual void | render (WFlags< RenderFlag > flags) |
| virtual void | propagateSetEnabled (bool enabled) |
Protected Member Functions inherited from Wt::WWebWidget | |
| virtual WStatelessSlot * | getStateless (Method method) |
Protected Member Functions inherited from Wt::WWidget | |
| void | setLayoutSizeAware (bool sizeAware) |
| virtual void | layoutSizeChanged (int width, int height) |
| WWidget (WContainerWidget *parent=0) | |
| virtual void | dropEvent (WDropEvent dropEvent) |
| void | scheduleRender (WFlags< RepaintFlag > flags=0) |
Static Protected Member Functions inherited from Wt::WObject | |
| static WObject * | sender () |
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.
Reimplemented from Wt::WFormWidget.
Definition at line 82 of file AddresseeEdit.C.
|
private |
The label associated with this edit.
Definition at line 55 of file AddresseeEdit.h.
1.8.11