|
Wt examples
3.3.0
|
A clickable option. More...
#include <Option.h>

Public Member Functions | |
| Option (const WString &text, WContainerWidget *parent=0) | |
| Create an Option with the given text. More... | |
| void | setText (const WString &text) |
| Change the text. More... | |
| WInteractWidget * | item () |
| Returns the clickable part. More... | |
| virtual void | setHidden (bool) |
Private Member Functions | |
| void | setOptionList (OptionList *l) |
| void | addSeparator () |
| Create and show the separator. More... | |
| void | showSeparator () |
| Show the separator. More... | |
| void | hideSeparator () |
| Hide the separator. More... | |
Private Attributes | |
| WText * | option_ |
| The option command text. More... | |
| WText * | sep_ |
| The separator '|'. More... | |
| OptionList * | list_ |
| The list in which this option is managed, if managed. More... | |
Friends | |
| class | OptionList |
Additional Inherited Members | |
Protected Member Functions inherited from Wt::WWidget | |
| virtual void | enableAjax ()=0 |
| virtual void | propagateSetEnabled (bool enabled)=0 |
| virtual void | render (WFlags< RenderFlag > flags) |
A clickable option.
This widget is part of the Wt composer example.
On its own, an option is a text which is style "option". An Option may also be used as items in an OptionList.
| Option::Option | ( | const WString & | text, |
| WContainerWidget * | parent = 0 |
||
| ) |
|
private |
|
private |
|
inline |
|
private |
| void Option::setText | ( | const WString & | text) |
|
private |
|
friend |
|
private |
1.8.4