Class Widget

Description

This class is the superclass of all user interface objects. Widgets are created, disposed and issue notification to listeners when events occur which affect them.



			
Direct descendents
Class Description
Control Control is the superclass of all web user interface classes.
Item 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.
Method Summary
Widget Widget ()
void dispose ()
string get_attribute (string $attribute)
string get_attributes ()
string get_style (string $style)
boolean is_disposed ()
void paint ()
void set_attribute (string $attribute, string $value)
void set_style (string $style, string $value)
void show ()
void update ()
Methods
Constructor Widget

Object's constructor.
Builds the unique id for this object.

Widget Widget ()
dispose

Disposes of the resources associated with the receiver and all its descendents.

void dispose ()
get_attribute

Return the html-defined attribute of the receiver's object with the specified name, or an empty string if it has not been set.

  • return: the html attribute
string get_attribute (string $attribute)
  • string $attribute: the css attribute name
get_attributes

Builds a string with the additional attributes, CSS class and styles.

  • return: the additional attributes
string get_attributes ()
get_style

Return the css style attribute of the receiver's object with the specified name, or an empty string if it has not been set.

  • return: the css attribute
string get_style (string $style)
  • string $style: the css attribute name
is_disposed

Returns true if the widget has been disposed, and false otherwise.

  • return: true when the widget is disposed and false otherwise
boolean is_disposed ()
paint

Draw the receiver's control to the output page.

Subclasses must override this method.

void paint ()
set_attribute

Sets the html-defined attribute of the receiver's object with the specified name to the given value.

void set_attribute (string $attribute, string $value)
  • string $attribute: the attribute name
  • string $value: the value to set
set_style

Sets the css style attribute of the receiver's object with the specified name to the given value.

void set_style (string $style, string $value)
  • string $style: the css attribute name
  • string $value: the value to set
show

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

void show ()
update

Updates the receiver's control.

void update ()

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