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

TButtonColumn class file

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

Définit 1 class

TButtonColumn:: (22 méthodes):
  getText()
  setText()
  getDataTextField()
  setDataTextField()
  getDataTextFormatString()
  setDataTextFormatString()
  getImageUrl()
  setImageUrl()
  getDataImageUrlField()
  setDataImageUrlField()
  getDataImageUrlFormatString()
  setDataImageUrlFormatString()
  getButtonType()
  setButtonType()
  getCommandName()
  setCommandName()
  getCausesValidation()
  setCausesValidation()
  getValidationGroup()
  setValidationGroup()
  initializeCell()
  dataBindColumn()


Classe: TButtonColumn  - X-Ref

TButtonColumn class

TButtonColumn contains a user-defined command button, such as Add or Remove,
that corresponds with each row in the column.

The caption of the buttons in the column is determined by {@link setText Text}
and {@link setDataTextField DataTextField} properties. If both are present,
the latter takes precedence. The {@link setDataTextField DataTextField} property
refers to the name of the field in datasource whose value will be used as the button caption.
If {@link setDataTextFormatString DataTextFormatString} is not empty,
the value will be formatted before rendering.

The buttons in the column can be set to display as hyperlinks or push buttons
by setting the {@link setButtonType ButtonType} property.
The {@link setCommandName CommandName} will assign its value to
all button's <b>CommandName</b> property. The datagrid will capture
the command event where you can write event handlers based on different command names.
The buttons' <b>CausesValidation</b> and <b>ValidationGroup</b> property values
are determined by the column's corresponding properties.

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

getText()   X-Ref

return: string the text caption of the button

setText($value)   X-Ref
Sets the text caption of the button.

param: string the text caption to be set

getDataTextField()   X-Ref

return: string the field name from the data source to bind to the button caption

setDataTextField($value)   X-Ref

param: string the field name from the data source to bind to the button caption

getDataTextFormatString()   X-Ref

return: string the formatting string used to control how the button caption will be displayed.

setDataTextFormatString($value)   X-Ref

param: string the formatting string used to control how the button caption will be displayed.

getImageUrl()   X-Ref

return: string the URL of the image file for image buttons

setImageUrl($value)   X-Ref

param: string the URL of the image file for image buttons

getDataImageUrlField()   X-Ref

return: string the field name from the data source to bind to the button image url

setDataImageUrlField($value)   X-Ref

param: string the field name from the data source to bind to the button image url

getDataImageUrlFormatString()   X-Ref

return: string the formatting string used to control how the button image url will be displayed.

setDataImageUrlFormatString($value)   X-Ref

param: string the formatting string used to control how the button image url will be displayed.

getButtonType()   X-Ref

return: TButtonColumnType the type of command button. Defaults to TButtonColumnType::LinkButton.

setButtonType($value)   X-Ref

param: TButtonColumnType the type of command button

getCommandName()   X-Ref

return: string the command name associated with the <b>OnCommand</b> event.

setCommandName($value)   X-Ref
Sets the command name associated with the <b>Command</b> event.

param: string the text caption to be set

getCausesValidation()   X-Ref

return: boolean whether postback event trigger by this button will cause input validation, default is true

setCausesValidation($value)   X-Ref

param: boolean whether postback event trigger by this button will cause input validation

getValidationGroup()   X-Ref

return: string the group of validators which the button causes validation upon postback

setValidationGroup($value)   X-Ref

param: string the group of validators which the button causes validation upon postback

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

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