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

TTableStyle represents the CSS style specific for HTML table.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TStyle
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
copyFrom ( $style ) Copies the fields in a new style to this style.
getBackImageUrl ( ) : string
getBorderCollapse ( ) : boolean
getCellPadding ( ) : integer
getCellSpacing ( ) : integer
getGridLines ( ) : TTableGridLines
getHorizontalAlign ( ) : THorizontalAlign
mergeWith ( $style ) Merges the style with a new one.
reset ( ) Sets the style attributes to default values.
setBackImageUrl ( $value ) Sets the URL of the background image for the table
setBorderCollapse ( $value )
setCellPadding ( $value )
setCellSpacing ( $value )
setGridLines ( $value ) Sets the grid line style of the table.
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the table.

보호된 메소드들

메소드 설명
_getZappableSleepProps ( &$exprops ) Returns an array with the names of all variables of this object that should NOT be serialized because their value is the default one or useless to be cached for the next page loads.

메소드 상세

_getZappableSleepProps() 보호된 메소드

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )

addAttributesToRender() 공개 메소드

This method overrides the parent implementation.
public addAttributesToRender ( $writer )

copyFrom() 공개 메소드

If a style field is set in the new style, the corresponding field in this style will be overwritten.
public copyFrom ( $style )

getBackImageUrl() 공개 메소드

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

getBorderCollapse() 공개 메소드

public getBorderCollapse ( ) : boolean
리턴 boolean whether the table borders should be collapsed. Defaults to false.

getCellPadding() 공개 메소드

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

getCellSpacing() 공개 메소드

public getCellSpacing ( ) : integer
리턴 integer cellspacing of 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 contents within the table, defaults to THorizontalAlign::NotSet.

mergeWith() 공개 메소드

If a style field is not set in this style, it will be overwritten by the new one.
public mergeWith ( $style )

reset() 공개 메소드

This method overrides the parent implementation by resetting additional TTableStyle specific attributes.
public reset ( )

setBackImageUrl() 공개 메소드

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

setBorderCollapse() 공개 메소드

public setBorderCollapse ( $value )

setCellPadding() 공개 메소드

public setCellPadding ( $value )

setCellSpacing() 공개 메소드

public setCellSpacing ( $value )

setGridLines() 공개 메소드

Sets the grid line style of the table.
public setGridLines ( $value )

setHorizontalAlign() 공개 메소드

Sets the horizontal alignment of the contents within the table.
public setHorizontalAlign ( $value )