CppCMS
Public Member Functions
cppcms::widgets::text Class Reference

This class represents an HTML form input element of type text. More...

#include <cppcms/form.h>

Inheritance diagram for cppcms::widgets::text:
cppcms::widgets::base_html_input cppcms::widgets::base_text cppcms::widgets::base_widget cppcms::widgets::base_widget cppcms::base_form booster::noncopyable cppcms::base_form booster::noncopyable cppcms::form_flags cppcms::form_flags cppcms::widgets::hidden cppcms::widgets::password cppcms::widgets::regex_field cppcms::widgets::email

List of all members.

Public Member Functions

 text ()
 text (std::string const &type)
void size (int n)
int size ()
virtual void render_attributes (form_context &context)
virtual void render_value (form_context &context)

Detailed Description

This class represents an HTML form input element of type text.


Constructor & Destructor Documentation

Create a text field widget.

cppcms::widgets::text::text ( std::string const &  type)

This constructor is provided for use by derived classes where it is required to change the type of the widget, like text, password, etc.


Member Function Documentation

virtual void cppcms::widgets::text::render_attributes ( form_context context) [virtual]

Render standard common attributes like id, name, disabled, etc.

Reimplemented from cppcms::widgets::base_widget.

virtual void cppcms::widgets::text::render_value ( form_context context) [virtual]

Write the actual value of the HTML tag. Derived classes must implement this.

Implements cppcms::widgets::base_html_input.

void cppcms::widgets::text::size ( int  n)

Set the HTML size attribute of the widget.

Get the HTML size attribute size of the widget. It returns -1 if it is undefined.


The documentation for this class was generated from the following file: