#include <Option.h>

Public Member Functions | |
| Option (const WString &text, WContainerWidget *parent=0) | |
| 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) |
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 |
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.
Definition at line 31 of file Option.h.
| Option::Option | ( | const WString & | text, | |
| WContainerWidget * | parent = 0 | |||
| ) |
| void Option::setText | ( | const WString & | text | ) |
| WInteractWidget* Option::item | ( | ) | [inline] |
| void Option::setHidden | ( | bool | hidden | ) | [virtual] |
Reimplemented from Wt::WWebWidget.
Definition at line 49 of file Option.C.
00050 { 00051 WContainerWidget::setHidden(hidden); 00052 00053 if (list_) 00054 list_->optionVisibilityChanged(this, hidden); 00055 }
| void Option::setOptionList | ( | OptionList * | l | ) | [private] |
| void Option::addSeparator | ( | ) | [private] |
| void Option::showSeparator | ( | ) | [private] |
| void Option::hideSeparator | ( | ) | [private] |
friend class OptionList [friend] |
WText* Option::option_ [private] |
WText* Option::sep_ [private] |
OptionList* Option::list_ [private] |
1.5.6