PHP Class Prado\Web\UI\WebControls\TTableRow

TTableRow displays a table row. The table cells in the row can be accessed via {@link getCells Cells}. The horizontal and vertical alignments of the row are specified via {@link setHorizontalAlign HorizontalAlign} and {@link setVerticalAlign VerticalAlign} properties, respectively.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TWebControl
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
addParsedObject ( $object ) Adds object parsed from template to the control.
getCells ( ) : TTableCellCollection
getHorizontalAlign ( ) : string
getTableSection ( ) : TTableRowSection
getVerticalAlign ( ) : string
renderContents ( $writer ) Renders body contents of the table row
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the table item.
setTableSection ( $value )
setVerticalAlign ( $value ) Sets the vertical alignment of the contents within the table item.

Méthodes protégées

Méthode Description
createControlCollection ( ) : TTableCellCollection Creates a control collection object that is to be used to hold child controls
createStyle ( ) : TStyle Creates a style object for the control.
getTagName ( ) : string

Method Details

addParsedObject() public méthode

This method adds only {@link TTableCell} objects into the {@link getCells Cells} collection. All other objects are ignored.
public addParsedObject ( $object )

createControlCollection() protected méthode

Creates a control collection object that is to be used to hold child controls
See also: getControls
protected createControlCollection ( ) : TTableCellCollection
Résultat TTableCellCollection control collection

createStyle() protected méthode

This method creates a {@link TTableItemStyle} to be used by the table row.
protected createStyle ( ) : TStyle
Résultat TStyle control style to be used

getCells() public méthode

public getCells ( ) : TTableCellCollection
Résultat TTableCellCollection list of {@link TTableCell} controls

getHorizontalAlign() public méthode

public getHorizontalAlign ( ) : string
Résultat string the horizontal alignment of the contents within the table item, defaults to 'NotSet'.

getTableSection() public méthode

public getTableSection ( ) : TTableRowSection
Résultat TTableRowSection location of a row in a table. Defaults to TTableRowSection::Body.

getTagName() protected méthode

protected getTagName ( ) : string
Résultat string tag name for the table

getVerticalAlign() public méthode

public getVerticalAlign ( ) : string
Résultat string the vertical alignment of the contents within the table item, defaults to 'NotSet'.

renderContents() public méthode

Renders body contents of the table row
public renderContents ( $writer )

setHorizontalAlign() public méthode

Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center'
public setHorizontalAlign ( $value )

setTableSection() public méthode

public setTableSection ( $value )

setVerticalAlign() public méthode

Valid values include 'NotSet','Top','Bottom','Middle'
public setVerticalAlign ( $value )