PHP 클래스 Prado\Web\UI\WebControls\TCheckBoxColumn

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: $datagridItem->CheckBoxColumnID->CheckBox $datagridItem->CheckBoxColumnID->Controls[0] The second method is possible because the checkbox control created within the datagrid cell is the first child.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TDataGridColumn
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
dataBindColumn ( $sender, $param ) Databinds a cell in the column.
getDataField ( ) : string
getReadOnly ( ) : boolean
initializeCell ( $cell, $columnIndex, $itemType ) Initializes the specified cell to its initial values.
setDataField ( $value )
setReadOnly ( $value )

메소드 상세

dataBindColumn() 공개 메소드

This method is invoked when datagrid performs databinding. It populates the content of the cell with the relevant data from data source.
public dataBindColumn ( $sender, $param )

getDataField() 공개 메소드

public getDataField ( ) : string
리턴 string the field name from the data source to bind to the column

getReadOnly() 공개 메소드

public getReadOnly ( ) : boolean
리턴 boolean whether the items in the column can be edited. Defaults to false.

initializeCell() 공개 메소드

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.
public initializeCell ( $cell, $columnIndex, $itemType )

setDataField() 공개 메소드

public setDataField ( $value )

setReadOnly() 공개 메소드

public setReadOnly ( $value )