Class Table

Description

Instances of this class implement a selectable user interface object that displays a list of strings and issue notification when selected.

The item children that may be added to instances of this class must be of type TableItem.

Widget
   |
   --Control
      |
      --Scrollable
         |
         --Table
Method Summary
Table Table (mixed &$parent)
void clear (integer $index)
TableColumn &get_column (integer $index)
TablceColumn[] &get_columns ()
integer get_column_count ()
void &get_item (integer $index)
void &get_selection ()
void remove_all ()
void set_item_count (integer $count)
Methods
Constructor Table

Constructs a new instance of this class.

Table Table (mixed &$parent)
clear

Clears the item at the given zero-relative index in the receiver.

void clear (integer $index)
  • integer $index: the index of the item to clear
get_column

Returns the column at the given, zero-relative index in the receiver.

  • return: the column at the given index
TableColumn &get_column (integer $index)
  • integer $index: the index of the column to return
get_columns

Returns an array of TableColumns which are the columns in the receiver. If no TableColumns were created by the programmer, the array is empty.

  • return: the items in the receiver
TablceColumn[] &get_columns ()
get_column_count

Returns the number of columns contained in the receiver.

If no TableColumns were created by the programmer, this value is zero.

  • return: the number of columns
integer get_column_count ()
get_item

Returns the item at the given, zero-relative index in the receiver.

void &get_item (integer $index)
  • integer $index: the index of the item to return
get_selected_item

Returns the item selected in the receiver.

void &get_selected_item ()
get_selection

Returns an array of TableItems that are currently selected in the receiver. An empty array indicates that no items are selected.

void &get_selection ()
remove_all

Removes all of the items from the receiver.

void remove_all ()
set_item_count

Sets the number of items contained in the receiver.

void set_item_count (integer $count)
  • integer $count: the number of items

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