Class Item

Description

This class is the superclass of all non-web user interface objects that occur within specific controls. For example, a tree will contain tree items.

Widget
   |
   --Item
Direct descendents
Class Description
TabItem Instances of this class represent a selectable user interface object corresponding to a tab for a page in a tab folder.
TableColumn Instances of this class represent a column in a table widget.
TableItem Instances of this class represent a selectable user interface object that represents an item in a table.
Method Summary
Item Item ()
string get_text ()
void set_image (Image &$image)
void set_text (string $text)
Methods
Constructor Item

Constructs a new instance of this class.

Item Item ()
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
set_text

Set the receiver's text.

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

Inherited Methods

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