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

THyperLinkColumn class file

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

Définit 1 class

THyperLinkColumn:: (16 méthodes):
  getText()
  setText()
  getDataTextField()
  setDataTextField()
  getDataTextFormatString()
  setDataTextFormatString()
  getNavigateUrl()
  setNavigateUrl()
  getDataNavigateUrlField()
  setDataNavigateUrlField()
  getDataNavigateUrlFormatString()
  setDataNavigateUrlFormatString()
  getTarget()
  setTarget()
  initializeCell()
  dataBindColumn()


Classe: THyperLinkColumn  - X-Ref

THyperLinkColumn class

THyperLinkColumn contains a hyperlink for each item in the column.
You can set the text and the url of the hyperlink by {@link setText Text}
and {@link setNavigateUrl NavigateUrl} properties, respectively.
You can also bind the text and url to specific data field in datasource
by setting {@link setDataTextField DataTextField} and
{@link setDataNavigateUrlField DataNavigateUrlField}.
Both can be formatted before rendering according to the
{@link setDataTextFormatString DataTextFormatString} and
and {@link setDataNavigateUrlFormatString DataNavigateUrlFormatString}
properties, respectively. If both {@link setText Text} and {@link setDataTextField DataTextField}
are present, the latter takes precedence.
The same rule applies to {@link setNavigateUrl NavigateUrl} and
{@link setDataNavigateUrlField DataNavigateUrlField} properties.

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

getText()   X-Ref

return: string the text caption of the hyperlink

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

param: string the text caption to be set

getDataTextField()   X-Ref

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

setDataTextField($value)   X-Ref

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

getDataTextFormatString()   X-Ref

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

setDataTextFormatString($value)   X-Ref

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

getNavigateUrl()   X-Ref

return: string the URL to link to when the hyperlink is clicked.

setNavigateUrl($value)   X-Ref
Sets the URL to link to when the hyperlink is clicked.

param: string the URL

getDataNavigateUrlField()   X-Ref

return: string the field name from the data source to bind to the navigate url of hyperlink

setDataNavigateUrlField($value)   X-Ref

param: string the field name from the data source to bind to the navigate url of hyperlink

getDataNavigateUrlFormatString()   X-Ref

return: string the formatting string used to control how the navigate url of hyperlink will be displayed.

setDataNavigateUrlFormatString($value)   X-Ref

param: string the formatting string used to control how the navigate url of hyperlink will be displayed.

getTarget()   X-Ref

return: string the target window or frame to display the Web page content linked to when the hyperlink is clicked.

setTarget($value)   X-Ref
Sets the target window or frame to display the Web page content linked to when the hyperlink is clicked.

param: string the target window, valid values include '_blank', '_parent', '_self', '_top' and empty string.

initializeCell($cell,$columnIndex,$itemType)   X-Ref
Initializes the specified cell to its initial values.
This method overrides the parent implementation.
It creates a hyperlink 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