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

Class: TDataGridItemCollection

Source Location: /Web/UI/WebControls/TDataGrid.php

Class Overview

TCollection
   |
   --TDataGridItemCollection

TDataGridItemCollection class

Class Details

[line 1400]
TDataGridItemCollection class

TDataGridItemCollection is used to maintain the data items in TDataGrid.




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

$grid = null

[line 1406]

TDataGrid object



access:  protected

Type:   TDataGrid


[ Top ]



Class Methods


constructor __construct [line 1412]

TDataGridItemCollection __construct( mixed $grid)

Constructor.

Sets up the datagrid object.




access:  public


Overrides TCollection::__construct() (Constructor.)

[ Top ]

method onAddItem [line 1424]

boolean onAddItem( mixed $item)

Adds TDataGridItem object to the body collection.

This method will be invoked when adding an item to the collection.




return:  whether the item should be added.
access:  protected


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

Parameters:

mixed   $item   the item to be added.

[ Top ]

method onRemoveItem [line 1440]

void onRemoveItem( mixed $item)

Removes the item from the body collection.

This method will be invoked when an item is to be removed from the collection.




access:  protected


Overrides TCollection::onRemoveItem() (This method will be invoked when an item is being removed from the collection.)

Parameters:

mixed   $item   the item to be removed.

[ Top ]


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