System.Web.UI
[ class tree: System.Web.UI ] [ index: System.Web.UI ] [ all elements ]

Class: TBodyCollection

Source Location: /Web/UI/TControl.php

Class Overview

TCollection
   |
   --TBodyCollection

TBodyCollection class.

Class Details

[line 749]
TBodyCollection class.

Represents a list of body controls and texts.




version:  v1.0, last update on 2004/08/13 21:44:52
author:  Qiang Xue <qiang.xue@gmail.com>


[ Top ]

Variables

Methods


Inherited Variables

Inherited Methods

Class: TCollection

TCollection::__construct()
Constructor.
TCollection::add()
Appends an item at the end of the collection.
TCollection::addAt()
Inserts an item at the specified position.
TCollection::clear()
Removes all items in the collection.
TCollection::contains()
TCollection::current()
Returns the current array element.
TCollection::getArray()
TCollection::indexOf()
TCollection::isReadOnly()
TCollection::key()
Returns the key of the current array element.
TCollection::length()
TCollection::next()
Moves the internal pointer to the next array element.
TCollection::offsetExists()
Returns whether there is an element at the specified offset.
TCollection::offsetGet()
Returns the element at the specified offset.
TCollection::offsetSet()
Required by interface.
TCollection::offsetUnset()
Required by interface.
TCollection::onAddItem()
This method will be invoked when an item is being added to the collection.
TCollection::onRemoveItem()
This method will be invoked when an item is being removed from the collection.
TCollection::remove()
Removes an item from the collection.
TCollection::removeAt()
Removes an item at the specified position.
TCollection::rewind()
Rewinds internal array pointer.
TCollection::valid()
Returns whether there is an element at current position.

Class Variables

$control = null

[line 755]

The container of the body content



access:  protected

Type:   TControl


[ Top ]



Class Methods


constructor __construct [line 761]

TBodyCollection __construct( mixed $control)

Constructor.

Initializes the body container.




access:  public


Overrides TCollection::__construct() (Constructor.)

[ Top ]

method onAddItem [line 772]

void onAddItem( mixed $item, boolean 1)

Checks if an item can be added into body collection.



access:  protected


Overrides TCollection::onAddItem() (This method will be invoked when an item is being added to the collection.)

Parameters:

boolean   1   whether the item should be added into the colleciton.
mixed   $item   the item to be added

[ Top ]


© 2004-2005 PRADO Software Group. All Rights Reserved.