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
ファイルを表示 Open project: pradosoft/prado Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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

createControlCollection() protected method

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

createStyle() protected method

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

getCells() public method

public getCells ( ) : TTableCellCollection
return TTableCellCollection list of {@link TTableCell} controls

getHorizontalAlign() public method

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

getTableSection() public method

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

getTagName() protected method

protected getTagName ( ) : string
return string tag name for the table

getVerticalAlign() public method

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

renderContents() public method

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

setHorizontalAlign() public method

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

setTableSection() public method

public setTableSection ( $value )

setVerticalAlign() public method

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