Wt::WLabel Class Reference

WLabel acts as a label for a WFormWidget. More...

#include <WLabel>

Inherits Wt::WInteractWidget.

Inheritance diagram for Wt::WLabel:

Inheritance graph
[legend]
List of all members.

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.
WFormWidgetbuddy () const
 Return the buddy of this label.
void setBuddy (WFormWidget *buddy)
 Set the buddy of this label.
void setText (const WString &text)
 Set the label text.
const WStringtext () const
 Get the label text.
void setImage (WImage *image)
 Set the image.
WImageimage () const
 Get the image.

Detailed Description

WLabel acts as a label for a WFormWidget.

WLabel is an inline widget.

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.


Member Function Documentation

WFormWidget* Wt::WLabel::buddy (  )  const [inline]

Return the buddy of this label.

See also:
setBuddy(WFormWidget *)

void Wt::WLabel::setBuddy ( WFormWidget buddy  ) 

Set the buddy of this label.

Sets the buddy FormWidget for which this label acts as a proxy.

See also:
WFormWidget::label()


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