Wt::WPushButton Class Reference

A widget that represents a push button. More...

#include <WPushButton>

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 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 WStringtext () const
 Get the button text.
virtual void refresh ()
 Refresh the widget.


Detailed Description

A widget that 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 Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3