[ 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/ -> TCheckBoxColumn.php (sommaire)

TCheckBoxColumn class file

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

Définit 1 class

TCheckBoxColumn:: (6 méthodes):
  getDataField()
  setDataField()
  getReadOnly()
  setReadOnly()
  initializeCell()
  dataBindColumn()


Classe: TCheckBoxColumn  - X-Ref

TCheckBoxColumn class

TCheckBoxColumn represents a checkbox column that is bound to a field in a data source.
The checked state of the checkboxes are determiend by the bound data at
{@link setDataField DataField}. If {@link setReadOnly ReadOnly} is false,
TCheckBoxColumn will display an enabled checkbox provided the cells are
in edit mode. Otherwise, the checkboxes will be disabled to prevent from editting.

The checkbox control in the TCheckBoxColumn can be accessed by one of
the following two methods:
<code>
$datagridItem->CheckBoxColumnID->CheckBox
$datagridItem->CheckBoxColumnID->Controls[0]
</code>
The second method is possible because the checkbox control created within the
datagrid cell is the first child.

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

getReadOnly()   X-Ref

return: boolean whether the items in the column can be edited. Defaults to false.

setReadOnly($value)   X-Ref

param: boolean whether the items in the column can be edited

initializeCell($cell,$columnIndex,$itemType)   X-Ref
Initializes the specified cell to its initial values.
This method overrides the parent implementation.
It creates a checkbox inside the cell.
If the column is read-only or if the item is not in edit mode,
the checkbox will be set disabled.

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