Wt::WPushButton Class Reference

WPushButton represents a push button. More...

#include <WPushButton>

Inherits Wt::WFormWidget.

Inheritance diagram for Wt::WPushButton:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WPushButton (WContainerWidget *parent=0)
 Create a push button with empty text.
 WPushButton (const WString &text, WContainerWidget *parent=0)
 Create a push button with given message.
void setText (const WString &text)
 Set the button text.
const WStringtext () const
 Get the button text.
virtual void refresh ()
 Refresh the widget.

Detailed Description

WPushButton represents a push button.

WPushButton is an inline widget.

To act on a button click, connect a slot to the WInteractWidget::clicked signal.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7