|
Wt examples
4.10.0
|
A clickable option. More...
#include <Option.h>
Public Member Functions | |
| Option (const WString &text) | |
| Create an Option with the given text. | |
| void | setText (const WString &text) |
| Change the text. | |
| WInteractWidget * | item () |
| Returns the clickable part. | |
| virtual void | setHidden (bool hidden, const WAnimation &animation=WAnimation()) |
Private Member Functions | |
| void | setOptionList (OptionList *l) |
| void | addSeparator () |
| Create and show the separator. | |
| void | showSeparator () |
| Show the separator. | |
| void | hideSeparator () |
| Hide the separator. | |
Private Attributes | |
| WText * | option_ |
| The option command text. | |
| WText * | sep_ |
| The separator '|'. | |
| OptionList * | list_ |
| The list in which this option is managed, if managed. | |
Friends | |
| class | OptionList |
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 | ) |
Create an Option with the given text.
Definition at line 12 of file Option.C.
|
private |
|
private |
|
inline |
|
virtual |
Definition at line 49 of file Option.C.
|
private |
| void Option::setText | ( | const WString & | text | ) |
|
private |
|
friend |
|
private |