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

TPanelStyle represents the CSS style specific for panel HTML tag.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TStyle
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
copyFrom ( $style ) Copies the fields in a new style to this style.
getBackImageUrl ( ) : string
getDirection ( ) : TContentDirection
getHorizontalAlign ( ) : THorizontalAlign
getScrollBars ( ) : TScrollBars
getWrap ( ) : boolean
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 panel component.
setDirection ( $value )
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the panel.
setScrollBars ( $value )
setWrap ( $value ) Sets the value indicating whether the content wraps within the panel.

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

Метод Описание
_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 panel component.

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

public getDirection ( ) : TContentDirection
Результат TContentDirection alignment of the content in the panel. Defaults to TContentDirection::NotSet.

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

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

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

public getScrollBars ( ) : TScrollBars
Результат TScrollBars the visibility and position of scroll bars in a panel control, defaults to TScrollBars::None.

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

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

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 TPanelStyle specific attributes.
public reset ( )

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

Sets the URL of the background image for the panel component.
public setBackImageUrl ( $value )

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

public setDirection ( $value )

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

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

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

public setScrollBars ( $value )

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

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