Wt::WTextArea Class Reference

WTextArea provides a multi-line edit. More...

#include <WTextArea>

Inherits Wt::WFormWidget.

Inheritance diagram for Wt::WTextArea:

Inheritance graph
[legend]
List of all members.

Public Slots

void setText (const WString &text)
 Change the content of the text area.

Public Member Functions

 WTextArea (WContainerWidget *parent=0)
 Construct a text area with empty content and optional parent.
 WTextArea (const WString &content, WContainerWidget *parent=0)
 Construct a text area with given content and optional parent.
void setColumns (int cols)
 Specify the number of columns.
void setRows (int rows)
 Specify the number of rows.
int columns () const
 Get the number of columns.
int rows () const
 Get the number of rows.
const WStringtext () const
 Get the current content.
WValidator::State validate ()
 Validate the field.

Detailed Description

WTextArea provides a multi-line edit.

WTextArea is an inline widget.

To act upon text changes, connect a slot to the changed() signal. This signal is emitted when the user changed the content, and subsequently removes the focus from the line edit.

To act upon editing, connect a slot to the WInteractWidget::keyWentUp signal.

At all times, the current content may be accessed with the text() method.


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