Class Text

Description

Instances of this class are selectable user interface objects that allow the user to enter and modify text.

Widget
   |
   --Control
      |
      --Text
Method Summary
Text Text (Composite &$parent, mixed $style)
string get_text ()
void set_editable (boolean $editable)
void set_password (boolean $password)
void set_text (string $text)
void set_text_limit (integer $size, integer $maxlength)
void show ()
Methods
Constructor Text

Constructs a new instance of this class given its parent.

Text Text (Composite &$parent, mixed $style)
  • Composite &$parent: a composite control which will be the parent of the new instance (cannot be null)
get_text

Gets the widget text.

  • return: the widget text
string get_text ()
set_editable

Sets the editable state.

void set_editable (boolean $editable)
  • boolean $editable: the new editable state
set_password

Sets the password state.

void set_password (boolean $password)
  • boolean $password: the new password state
set_text

Sets the contents of the receiver to the given string.

void set_text (string $text)
  • string $text: the new text
set_text_limit

Set the widget text limits which are the size and maxlength html parameters for the input tag.

void set_text_limit (integer $size, integer $maxlength)
  • integer $size: the new text size
  • integer $maxlength: the new maximum text length
show

Makes the receiver's control visible by drawing it to the output page.

void show ()

Inherited Methods

Inherited From Control

Control::Control()
Control::add_selection_listener()
Control::force_focus()
Control::get_layout_data()
Control::remove_selection_listener()
Control::set_background()
Control::set_bounds()
Control::set_foreground()
Control::set_layout_data()
Control::set_size()

Inherited From Widget

Widget::Widget()
Widget::dispose()
Widget::get_attribute()
Widget::get_attributes()
Widget::get_style()
Widget::is_disposed()
Widget::paint()
Widget::set_attribute()
Widget::set_style()
Widget::show()
Widget::update()

Documentation generated on Wed, 2 Feb 2005 09:33:52 +0100 by phpDocumentor 1.3.0RC3