#include <Wt/WPushButton>

Public Member Functions | |
| WPushButton (WContainerWidget *parent=0) | |
| Create a push button with empty label. | |
| WPushButton (const WString &text, WContainerWidget *parent=0) | |
| Create a push button with given label. | |
| void | setText (const WString &text) |
| Set the button text. | |
| const WString & | text () const |
| Get the button text. | |
| virtual void | refresh () |
| Refresh the widget. | |
WPushButton is an inline widget.
To act on a button click, connect a slot to the WInteractWidget::clicked signal.
| void Wt::WPushButton::refresh | ( | ) | [virtual] |
Refresh the widget.
The refresh method is invoked when the locale is changed using WApplication::setLocale() or when the user hit the refresh button.
The widget must actualize its contents in response.
Reimplemented from Wt::WWebWidget.
1.5.6