[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TLiteralColumn.php (sommaire)

TLiteralColumn class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TLiteralColumn.php 1397 2006-09-07 07:55:53Z wei $
Poids: 154 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TLiteralColumn:: (10 méthodes):
  getDataField()
  setDataField()
  getDataFormatString()
  setDataFormatString()
  getText()
  setText()
  getEncode()
  setEncode()
  initializeCell()
  dataBindColumn()


Classe: TLiteralColumn  - X-Ref

TLiteralColumn class

TLiteralColumn represents a static text column that is bound to a field in a data source.
The cells in the column will be displayed with static texts using the data indexed by
{@link setDataField DataField}. You can customize the display by
setting {@link setDataFormatString DataFormatString}.

If {@link setDataField DataField} is not specified, the cells will be filled
with {@link setText Text}.

If {@link setEncode Encode} is true, the static texts will be HTML-encoded.

getDataField()   X-Ref

return: string the field name from the data source to bind to the column

setDataField($value)   X-Ref

param: string the field name from the data source to bind to the column

getDataFormatString()   X-Ref

return: string the formatting string used to control how the bound data will be displayed.

setDataFormatString($value)   X-Ref

param: string the formatting string used to control how the bound data will be displayed.

getText()   X-Ref

return: string static text to be displayed in the column. Defaults to empty.

setText($value)   X-Ref

param: string static text to be displayed in the column.

getEncode()   X-Ref

return: boolean whether the rendered text should be HTML-encoded. Defaults to false.

setEncode($value)   X-Ref

param: boolean  whether the rendered text should be HTML-encoded.

initializeCell($cell,$columnIndex,$itemType)   X-Ref
Initializes the specified cell to its initial values.
This method overrides the parent implementation.

param: TTableCell the cell to be initialized.
param: integer the index to the Columns property that the cell resides in.
param: string the type of cell (Header,Footer,Item,AlternatingItem,EditItem,SelectedItem)

dataBindColumn($sender,$param)   X-Ref
Databinds a cell in the column.
This method is invoked when datagrid performs databinding.
It populates the content of the cell with the relevant data from data source.




Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7