## Interface IItemDataRenderer

Description

IItemDataRenderer interface.

IItemDataRenderer defines the interface that an item renderer needs to implement. Besides the Data property, a list item renderer also needs to provide ItemIndex and ItemType property.

- since: 3.1.0
- version: $Id: TDataBoundControl.php 2492 2008-08-09 01:30:05Z knut $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/WebControls/TDataBoundControl.php (line 560)

    IDataRenderer
       |
       --IItemDataRenderer

Method Summary
integer getItemIndex ()
TListItemType getItemType ()
void setItemIndex (integer $value)
void setItemType (TListItemType $value)
Methods
getItemIndex (line 567)

Returns a value indicating the zero-based index of the item in the corresponding data control's item collection.

If the item is not in the collection (e.g. it is a header item), it returns -1.

- return: zero-based index of the item.
- access: public

integer getItemIndex ()
getItemType (line 579)

- return: the item type.
- access: public

TListItemType getItemType ()
setItemIndex (line 574)

Sets the zero-based index for the item.

If the item is not in the item collection (e.g. it is a header item), -1 should be used.

- access: public

void setItemIndex (integer $value)

- integer $value: zero-based index of the item.

setItemType (line 584)

- access: public

void setItemType (TListItemType $value)

- TListItemType $value: the item type.

#### Inherited Methods

Inherited From IDataRenderer

> IDataRenderer::getData()
> IDataRenderer::setData()

Documentation generated on Sun, 11 Jan 2009 20:21:36 -0500 by phpDocumentor 1.3.0RC4