PHP Class Prado\Web\UI\WebControls\TTableItemStyle

TTableItemStyle represents the CSS style specific for HTML table item.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TStyle
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
copyFrom ( $style ) Copies the fields in a new style to this style.
getHorizontalAlign ( ) : THorizontalAlign
getVerticalAlign ( ) : TVerticalAlign
getWrap ( ) : boolean
mergeWith ( $style ) Merges the style with a new one.
reset ( ) Sets the style attributes to default values.
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the table item.
setVerticalAlign ( $value ) Sets the vertical alignment of the contents within the table item.
setWrap ( $value ) Sets the value indicating whether the content wraps within the table item.

Méthodes protégées

Méthode Description
_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.

Method Details

_getZappableSleepProps() protected méthode

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

addAttributesToRender() public méthode

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

copyFrom() public méthode

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

getHorizontalAlign() public méthode

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

getVerticalAlign() public méthode

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

getWrap() public méthode

public getWrap ( ) : boolean
Résultat boolean whether the content wraps within the table item. Defaults to true.

mergeWith() public méthode

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

reset() public méthode

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

setHorizontalAlign() public méthode

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

setVerticalAlign() public méthode

Sets the vertical alignment of the contents within the table item.
public setVerticalAlign ( $value )

setWrap() public méthode

Sets the value indicating whether the content wraps within the table item.
public setWrap ( $value )