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
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
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 )