#include <Wt/WLabel>

Public Member Functions | |
| WLabel (WContainerWidget *parent=0) | |
| Construct a WLabel with empty text and optional parent. | |
| WLabel (const WString &text, WContainerWidget *parent=0) | |
| Construct a WLabel with a given text. | |
| WLabel (WImage *image, WContainerWidget *parent=0) | |
| Construct a WLabel with an image. | |
| WFormWidget * | buddy () const |
| Return the buddy of this label. | |
| void | setBuddy (WFormWidget *buddy) |
| Set the buddy of this label. | |
| void | setBuddy (Ext::FormField *buddy) |
| Set the buddy of this label. | |
| void | setText (const WString &text) |
| Set the label text. | |
| const WString & | text () const |
| Get the label text. | |
| void | setImage (WImage *image) |
| Set the image. | |
| WImage * | image () const |
| Get the image. | |
A WLabel may contain an image and/or text that acts like a proxy for giving focus to a WFormWidget. When both an image and text are specified, the image is put at the left of the text.
| WFormWidget* Wt::WLabel::buddy | ( | ) | const [inline] |
| void Wt::WLabel::setBuddy | ( | WFormWidget * | buddy | ) |
Set the buddy of this label.
Sets the buddy FormWidget for which this label acts as a proxy.
| void Wt::WLabel::setBuddy | ( | Ext::FormField * | buddy | ) |
Set the buddy of this label.
Sets the buddy Ext::FormField for which this label acts as a proxy. When using this method, the result of buddy() is not defined.
1.5.3