PHP Класс Prado\Web\UI\WebControls\TTableCell

TTableCell displays a table cell on a Web page. Content of the table cell is specified by the {@link setText Text} property. If {@link setText Text} is empty, the body contents enclosed by the table cell component tag are rendered. Note, {@link setText Text} is not HTML-encoded when displayed. So make sure it does not contain dangerous characters. The horizontal and vertical alignments of the contents in the cell are specified via {@link setHorizontalAlign HorizontalAlign} and {@link setVerticalAlign VerticalAlign} properties, respectively. The colspan and rowspan of the cell are specified via {@link setColumnSpan ColumnSpan} and {@link setRowSpan RowSpan} properties. And the {@link setWrap Wrap} property indicates whether the contents in the cell should be wrapped.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TWebControl, implements Prado\IDataRenderer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getColumnSpan ( ) : integer
getData ( ) : string Returns the text content of the table cell.
getHorizontalAlign ( ) : string
getRowSpan ( ) : integer
getText ( ) : string
getVerticalAlign ( ) : string
getWrap ( ) : boolean
renderContents ( $writer ) Renders body contents of the table cell.
setColumnSpan ( $value ) Sets the columnspan for the table cell.
setData ( $value ) Sets the text content of the table cell.
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the table item.
setRowSpan ( $value ) Sets the rowspan for the table cell.
setText ( $value ) Sets the text content of the table cell.
setVerticalAlign ( $value ) Sets the vertical alignment of the contents within the table item.
setWrap ( $value ) Sets the value indicating whether the text content wraps within a table cell.

Защищенные методы

Метод Описание
addAttributesToRender ( $writer ) Adds attributes to renderer.
createStyle ( ) : TStyle Creates a style object for the control.
getTagName ( ) : string

Описание методов

addAttributesToRender() защищенный Метод

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

createStyle() защищенный Метод

This method creates a {@link TTableItemStyle} to be used by the table cell.
protected createStyle ( ) : TStyle
Результат TStyle control style to be used

getColumnSpan() публичный Метод

public getColumnSpan ( ) : integer
Результат integer the columnspan for the table cell, 0 if not set.

getData() публичный Метод

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link getText()}.
См. также: getText
С версии: 3.1.0
public getData ( ) : string
Результат string the text content of the table cell.

getHorizontalAlign() публичный Метод

public getHorizontalAlign ( ) : string
Результат string the horizontal alignment of the contents within the table item, defaults to 'NotSet'.

getRowSpan() публичный Метод

public getRowSpan ( ) : integer
Результат integer the rowspan for the table cell, 0 if not set.

getTagName() защищенный Метод

protected getTagName ( ) : string
Результат string tag name for the table cell

getText() публичный Метод

public getText ( ) : string
Результат string the text content of the table cell.

getVerticalAlign() публичный Метод

public getVerticalAlign ( ) : string
Результат string the vertical alignment of the contents within the table item, defaults to 'NotSet'.

getWrap() публичный Метод

public getWrap ( ) : boolean
Результат boolean whether the text content wraps within a table cell. Defaults to true.

renderContents() публичный Метод

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

setColumnSpan() публичный Метод

Sets the columnspan for the table cell.
public setColumnSpan ( $value )

setData() публичный Метод

This method is required by {@link \Prado\IDataRenderer}. It is the same as {@link setText()}.
См. также: setText
С версии: 3.1.0
public setData ( $value )

setHorizontalAlign() публичный Метод

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

setRowSpan() публичный Метод

Sets the rowspan for the table cell.
public setRowSpan ( $value )

setText() публичный Метод

If the text content is empty, body content (child controls) of the cell will be rendered.
public setText ( $value )

setVerticalAlign() публичный Метод

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

setWrap() публичный Метод

Sets the value indicating whether the text content wraps within a table cell.
public setWrap ( $value )