Class Label

Description

Instances of this class represent a non-selectable user interface object that displays a string or image.

Widget
   |
   --Control
      |
      --Label
Method Summary
Label Label (mixed &$parent)
string get_text ()
void set_image (Image &$image)
void set_text (string $text)
Methods
Constructor Label

Constructs a new instance of this class given its parent.

Label Label (mixed &$parent)
get_image

Returns the receiver's image if it has one, or null if it does not.

  • return: the receiver's image.
Image get_image ()
get_text

Returns the receiver's text, which will be an empty string if it has never been set.

  • return: the receiver's text
string get_text ()
set_image

Sets the receiver's image to the argument, which may be null indicating that no image should be displayed.

void set_image (Image &$image)
  • Image &$image: - the image to display on the receiver (may be null)
set_text

This method sets the widget label.

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

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:50 +0100 by phpDocumentor 1.3.0RC3