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.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TDataBoundControl.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.1.0

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

IDataRenderer
   |
   --IItemDataRenderer
Method Summary
integer getItemIndex ()
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)

Inherited Methods

Inherited From IDataRenderer

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

Documentation generated on Mon, 25 Jun 2012 14:37:43 +0200 by phpDocumentor 1.4.3