|
Wt examples
3.3.4
|
A suggestion popup suggesting contacts from an addressbook. More...
#include <ContactSuggestions.h>

Public Member Functions | |
| ContactSuggestions (WObject *parent=0) | |
| Create a new ContactSuggestions popup. More... | |
| void | setAddressBook (const std::vector< Contact > &contacts) |
| Set the address book. More... | |
Public Member Functions inherited from Wt::WSuggestionPopup | |
| WSuggestionPopup (const Options &options, WObject *parent=0) | |
| WSuggestionPopup (const std::string &matcherJS, const std::string &replacerJS, WObject *parent=0) | |
| void | forEdit (WFormWidget *edit, WFlags< PopupTrigger > popupTriggers=Editing) |
| void | removeEdit (WFormWidget *edit) |
| void | showAt (WFormWidget *edit) |
| void | clearSuggestions () |
| void | addSuggestion (const WString &suggestionText, const WString &suggestionValue=WString::Empty) |
| void | setModel (WAbstractItemModel *model) |
| WAbstractItemModel * | model () const |
| void | setModelColumn (int index) |
| void | setDefaultIndex (int row) |
| int | defaultIndex () const |
| void | setFilterLength (int count) |
| int | filterLength () const |
| Signal< WString > & | filterModel () |
| Signal< int, WFormWidget * > & | activated () |
| void | setGlobalPopup (bool global) |
| void | setDropDownIconUnfiltered (bool isUnfiltered) |
| int | currentItem () const |
Public Member Functions inherited from Wt::WPopupWidget | |
| virtual void | setHidden (bool hidden, const WAnimation &animation=WAnimation()) |
Public Member Functions inherited from Wt::WWidget | |
| 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 WString | toolTip () const =0 |
| virtual void | setDeferredToolTip (bool enable, TextFormat textFormat=PlainText)=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 | setCanReceiveFocus (bool enabled)=0 |
| virtual bool | canReceiveFocus () const =0 |
| virtual void | setFocus (bool focus)=0 |
| virtual bool | setFirstFocus ()=0 |
| virtual bool | hasFocus () 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 WWidget * | findById (const std::string &id)=0 |
| virtual void | setSelectable (bool selectable)=0 |
| virtual void | doJavaScript (const std::string &js)=0 |
Additional Inherited Members | |
Public Types inherited from Wt::WSuggestionPopup | |
| enum | PopupTrigger |
Static Public Member Functions inherited from Wt::WSuggestionPopup | |
| static std::string | generateMatcherJS (const Options &options) |
| static std::string | generateReplacerJS (const Options &options) |
Protected Member Functions inherited from Wt::WSuggestionPopup | |
| virtual void | render (WFlags< RenderFlag > flags) |
Protected Member Functions inherited from Wt::WWidget | |
| virtual void | enableAjax ()=0 |
| virtual void | propagateSetEnabled (bool enabled)=0 |
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.
| ContactSuggestions::ContactSuggestions | ( | WObject * | parent = 0 | ) |
Create a new ContactSuggestions popup.
Definition at line 26 of file ContactSuggestions.C.
| void ContactSuggestions::setAddressBook | ( | const std::vector< Contact > & | contacts | ) |
Set the address book.
Definition at line 32 of file ContactSuggestions.C.
1.8.11