PHP 클래스 Prado\Web\UI\WebControls\TTable

TTable displays an HTML table on a Web page. A table may have {@link setCaption Caption}, whose alignment is specified via {@link setCaptionAlign CaptionAlign}. The table cellpadding and cellspacing are specified via {@link setCellPadding CellPadding} and {@link setCellSpacing CellSpacing} properties, respectively. The {@link setGridLines GridLines} specifies how the table should display its borders. The horizontal alignment of the table content can be specified via {@link setHorizontalAlign HorizontalAlign}, and {@link setBackImageUrl BackImageUrl} can assign a background image to the table. A TTable maintains a list of {@link TTableRow} controls in its {@link getRows Rows} property. Each {@link TTableRow} represents an HTML table row. To populate the table {@link getRows Rows}, you may either use control template or dynamically create {@link TTableRow} in code. In template, do as follows to create the table rows and cells, The above can also be accomplished in code as follows, $table=new TTable; $row=new TTableRow; $cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell); $cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell); $table->Rows->add($row); $row=new TTableRow; $cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell); $cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell); $table->Rows->add($row);
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TWebControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
addParsedObject ( $object ) Adds object parsed from template to the control.
getBackImageUrl ( ) : string
getCaption ( ) : string
getCaptionAlign ( ) : TTableCaptionAlign
getCellPadding ( ) : integer
getCellSpacing ( ) : integer
getGridLines ( ) : TTableGridLines
getHorizontalAlign ( ) : THorizontalAlign
getRows ( ) : TTableRowCollection
renderBeginTag ( $writer ) Renders the openning tag for the table control which will render table caption if present.
renderContents ( $writer ) Renders body contents of the table.
setBackImageUrl ( $value ) Sets the URL of the background image for the table
setCaption ( $value )
setCaptionAlign ( $value )
setCellPadding ( $value )
setCellSpacing ( $value )
setGridLines ( $value )
setHorizontalAlign ( $value )

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes to renderer.
createControlCollection ( ) : TTableRowCollection Creates a control collection object that is to be used to hold child controls
createStyle ( ) : TTableStyle Creates a style object for the control.
getTagName ( ) : string

메소드 상세

addAttributesToRender() 보호된 메소드

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

addParsedObject() 공개 메소드

This method adds only {@link TTableRow} objects into the {@link getRows Rows} collection. All other objects are ignored.
public addParsedObject ( $object )

createControlCollection() 보호된 메소드

Creates a control collection object that is to be used to hold child controls
또한 보기: getControls
protected createControlCollection ( ) : TTableRowCollection
리턴 TTableRowCollection control collection

createStyle() 보호된 메소드

This method creates a {@link TTableStyle} to be used by the table.
protected createStyle ( ) : TTableStyle
리턴 TTableStyle control style to be used

getBackImageUrl() 공개 메소드

public getBackImageUrl ( ) : string
리턴 string the URL of the background image for the table

getCaption() 공개 메소드

public getCaption ( ) : string
리턴 string table caption

getCaptionAlign() 공개 메소드

public getCaptionAlign ( ) : TTableCaptionAlign
리턴 TTableCaptionAlign table caption alignment. Defaults to TTableCaptionAlign::NotSet.

getCellPadding() 공개 메소드

public getCellPadding ( ) : integer
리턴 integer the cellpadding for the table. Defaults to -1, meaning not set.

getCellSpacing() 공개 메소드

public getCellSpacing ( ) : integer
리턴 integer the cellspacing for the table. Defaults to -1, meaning not set.

getGridLines() 공개 메소드

public getGridLines ( ) : TTableGridLines
리턴 TTableGridLines the grid line setting of the table. Defaults to TTableGridLines::None.

getHorizontalAlign() 공개 메소드

public getHorizontalAlign ( ) : THorizontalAlign
리턴 THorizontalAlign the horizontal alignment of the table content. Defaults to THorizontalAlign::NotSet.

getRows() 공개 메소드

public getRows ( ) : TTableRowCollection
리턴 TTableRowCollection list of {@link TTableRow} controls

getTagName() 보호된 메소드

protected getTagName ( ) : string
리턴 string tag name for the table

renderBeginTag() 공개 메소드

Renders the openning tag for the table control which will render table caption if present.
public renderBeginTag ( $writer )

renderContents() 공개 메소드

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

setBackImageUrl() 공개 메소드

Sets the URL of the background image for the table
public setBackImageUrl ( $value )

setCaption() 공개 메소드

public setCaption ( $value )

setCaptionAlign() 공개 메소드

public setCaptionAlign ( $value )

setCellPadding() 공개 메소드

public setCellPadding ( $value )

setCellSpacing() 공개 메소드

public setCellSpacing ( $value )

setGridLines() 공개 메소드

public setGridLines ( $value )

setHorizontalAlign() 공개 메소드

public setHorizontalAlign ( $value )