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

TPanel represents a component that acts as a container for other component. It is especially useful when you want to generate components programmatically or hide/show a group of components. By default, TPanel displays a <div> element on a page. Children of TPanel are displayed as the body content of the element. The property {@link setWrap Wrap} can be used to set whether the body content should wrap or not. {@link setHorizontalAlign HorizontalAlign} governs how the content is aligned horizontally, and {@link getDirection Direction} indicates the content direction (left to right or right to left). You can set {@link setBackImageUrl BackImageUrl} to give a background image to the panel, and you can ste {@link setGroupingText GroupingText} so that the panel is displayed as a field set with a legend text. Finally, you can specify a default button to be fired when users press 'return' key within the panel by setting the {@link setDefaultButton DefaultButton} property.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TWebControl
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getBackImageUrl ( ) : string
getDefaultButton ( ) : string
getDirection ( ) : string
getGroupingText ( ) : string
getHorizontalAlign ( ) : string
getScrollBars ( ) : string
getWrap ( ) : boolean
render ( $writer )
renderBeginTag ( $writer ) Renders the openning tag for the control (including attributes)
renderEndTag ( $writer ) Renders the closing tag for the control
setBackImageUrl ( $value ) Sets the URL of the background image for the panel component.
setDefaultButton ( $value ) Specifies the default button for the panel.
setDirection ( $value )
setGroupingText ( $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.

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

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

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

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

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

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

This method overrides the parent impementation by creating a TPanelStyle object.
protected createStyle ( ) : TPanelStyle
Результат TPanelStyle the style used by TPanel.

getBackImageUrl() публичный метод

public getBackImageUrl ( ) : string
Результат string the URL of the background image for the panel component.

getDefaultButton() публичный метод

public getDefaultButton ( ) : string
Результат string the ID path to the default button. Defaults to empty.

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

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

getGroupingText() публичный метод

public getGroupingText ( ) : string
Результат string the legend text when the panel is used as a fieldset. Defaults to empty.

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

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

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

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

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

protected getTagName ( ) : string
Результат string tag name of the panel

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

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

render() публичный метод

public render ( $writer )

renderBeginTag() публичный метод

Renders the openning tag for the control (including attributes)
public renderBeginTag ( $writer )

renderEndTag() публичный метод

Renders the closing tag for the control
public renderEndTag ( $writer )

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

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

setDefaultButton() публичный метод

The default button will be fired (clicked) whenever a user enters 'return' key within the panel. The button must be locatable via the function call {@link TControl::findControl findControl}.
public setDefaultButton ( $value )

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

public setDirection ( $value )

setGroupingText() публичный метод

public setGroupingText ( $value )

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

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

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

public setScrollBars ( $value )

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

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