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

TDataGridColumn class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TDataGridColumn.php 1486 2006-11-03 13:22:08Z xue $
Poids: 413 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TButtonColumnType:: (0 méthodes):

Définit 0 fonctions

  getID()
  setID()
  getHeaderText()
  setHeaderText()
  getHeaderImageUrl()
  setHeaderImageUrl()
  getHeaderStyle()
  getFooterText()
  setFooterText()
  getFooterStyle()
  getItemStyle()
  getSortExpression()
  setSortExpression()
  getVisible()
  setVisible()
  getViewState()
  setViewState()
  loadState()
  saveState()
  getOwner()
  setOwner()
  initialize()
  getDataFieldValue()
  initializeCell()
  formatDataValue()

Classe: TButtonColumnType  - X-Ref

TButtonColumnType class.
TButtonColumnType defines the enumerable type for the possible types of buttons
that can be used in a {@link TButtonColumn}.

The following enumerable values are defined:
- LinkButton: link buttons
- PushButton: form buttons
- ImageButton: image buttons

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getID()   X-Ref

return: string the ID of the column.

setID($value)   X-Ref
Sets the ID of the column.
By explicitly specifying the column ID, one can access the column
by $templateControl->ColumnID.

param: string the ID of the column.

getHeaderText()   X-Ref

return: string the text to be displayed in the header of this column

setHeaderText($value)   X-Ref

param: string text to be displayed in the header of this column

getHeaderImageUrl()   X-Ref

return: string the url of the image to be displayed in header

setHeaderImageUrl($value)   X-Ref

param: string the url of the image to be displayed in header

getHeaderStyle($createStyle=true)   X-Ref

param: boolean whether to create a style if previously not existing
return: TTableItemStyle the style for header

getFooterText()   X-Ref

return: string the text to be displayed in the footer of this column

setFooterText($value)   X-Ref

param: string text to be displayed in the footer of this column

getFooterStyle($createStyle=true)   X-Ref

param: boolean whether to create a style if previously not existing
return: TTableItemStyle the style for footer

getItemStyle($createStyle=true)   X-Ref

param: boolean whether to create a style if previously not existing
return: TTableItemStyle the style for item

getSortExpression()   X-Ref

return: string the name of the field or expression for sorting

setSortExpression($value)   X-Ref

param: string the name of the field or expression for sorting

getVisible($checkParents=true)   X-Ref

return: boolean whether the column is visible. Defaults to true.

setVisible($value)   X-Ref

param: boolean whether the column is visible

getViewState($key,$defaultValue=null)   X-Ref
Returns a viewstate value.

param: string the name of the viewstate value to be returned
param: mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
return: mixed the viewstate value corresponding to $key

setViewState($key,$value,$defaultValue=null)   X-Ref
Sets a viewstate value.

Make sure that the viewstate value must be serializable and unserializable.
param: string the name of the viewstate value
param: mixed the viewstate value to be set
param: mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.

loadState($state)   X-Ref
Loads persistent state values.

param: mixed state values

saveState()   X-Ref
Saves persistent state values.

return: mixed values to be saved

getOwner()   X-Ref

return: TDataGrid datagrid that owns this column

setOwner(TDataGrid $value)   X-Ref

param: TDataGrid datagrid object that owns this column

initialize()   X-Ref
Initializes the column.
This method is invoked by {@link TDataGrid} when the column
is about to be used to initialize datagrid items.
Derived classes may override this method to do additional initialization.


getDataFieldValue($data,$field)   X-Ref
Fetches the value of the data at the specified field.
If the data is an array, the field is used as an array key.
If the data is an of {@link TMap}, {@link TList} or their derived class,
the field is used as a key value.
If the data is a component, the field is used as the name of a property.

param: mixed data containing the field of value
param: string the data field
return: mixed data value at the specified field

initializeCell($cell,$columnIndex,$itemType)   X-Ref
Initializes the specified cell to its initial values.
The default implementation sets the content of header and footer cells.
If sorting is enabled by the grid and sort expression is specified in the column,
the header cell will show a link/image button. Otherwise, the header/footer cell
will only show static text/image.
This method can be overriden to provide customized intialization to column cells.

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)

formatDataValue($formatString,$value)   X-Ref
Formats the text value according to a format string.
If the format string is empty, the original value is converted into
a string and returned.
If the format string starts with '#', the string is treated as a PHP expression
within which the token '{0}' is translated with the data value to be formated.
Otherwise, the format string and the data value are passed
as the first and second parameters in {@link sprintf}.

param: string format string
param: mixed the data to be formatted
return: string the formatted result



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