Class Composite

Description

Instances of this class are controls which are capable of containing other controls.

Widget
   |
   --Control
      |
      --Scrollable
         |
         --Composite
Direct descendents
Class Description
Group Instances of this class provide a border with an optional title.
Shell Instances of this class represent the top level browser's window.
TabFolder Instances of this class implement the notebook user interface metaphor.
Method Summary
Composite Composite (Composite &$parent)
Control[] &get_children ()
void layout ()
void set_focus ()
void set_layout (Layout &$layout)
Methods
Constructor Composite

Constructs a new instance of this class giving it's parent.

Composite Composite (Composite &$parent)
  • Composite &$parent: - a widget which will be the parent of the new instance (cannot be null)
get_children

Returns an array containing the receiver's children.

  • return: an array of children
Control[] &get_children ()
get_layout

Returns layout which is associated with the receiver, or null if one has not been set.

  • return: the receiver's layout or null.
Layout get_layout ()
layout

If the receiver has a layout, asks the layout to lay out the receiver's children.

void layout ()
set_focus

Causes the receiver to have the keyboard focus, such that all keyboard events

will be delivered to it.

void set_focus ()
set_layout

Sets the layout which is associated with the receiver to be the argument which may be null.

void set_layout (Layout &$layout)
  • Layout &$layout: - the receiver's new layout or null

Inherited Methods

Inherited From Scrollable

Scrollable::Scrollable()

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