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

TListBox displays a list box on a Web page that allows single or multiple selection. The list box allows multiple selections if {@link setSelectionMode SelectionMode} is TListSelectionMode::Multiple. It takes single selection only if Single. The property {@link setRows Rows} specifies how many rows of options are visible at a time. See {@link TListControl} for inherited properties. Since v3.0.3, TListBox starts to support optgroup. To specify an option group for a list item, set a Group attribute with it, $listitem->Attributes->Group="Group Name"; or in template
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TListControl, implements Prado\Web\UI\IPostBackDataHandler, implements Prado\Web\UI\IValidatable
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getDataChanged ( ) : boolean Returns a value indicating whether postback has caused the control data change.
getIsValid ( ) : boolean Returns true if this control validated successfully.
getRows ( ) : integer
getSelectionMode ( ) : TListSelectionMode
getValidationPropertyValue ( ) : mixed Returns the value to be validated.
loadPostData ( $key, $values ) : boolean Loads user input data.
onPreRender ( $param ) Registers the list control to load post data on postback.
raisePostDataChangedEvent ( ) Raises postdata changed event.
setIsValid ( $value )
setRows ( $value )
setSelectionMode ( $value )

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attribute name-value pairs to renderer.
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.
getIsMultiSelect ( ) : boolean

메소드 상세

addAttributesToRender() 보호된 메소드

This method overrides the parent implementation with additional list box specific attributes.
protected addAttributesToRender ( $writer )

getClientClassName() 보호된 메소드

This method overrides the parent implementation.
protected getClientClassName ( ) : string
리턴 string the javascript class name

getDataChanged() 공개 메소드

This method is required by the \Prado\Web\UI\IPostBackDataHandler interface.
public getDataChanged ( ) : boolean
리턴 boolean whether postback has caused the control data change. False if the page is not in postback mode.

getIsMultiSelect() 보호된 메소드

protected getIsMultiSelect ( ) : boolean
리턴 boolean whether this control allows multiple selection

getIsValid() 공개 메소드

Defaults to true.
public getIsValid ( ) : boolean
리턴 boolean wether this control validated successfully.

getRows() 공개 메소드

public getRows ( ) : integer
리턴 integer the number of rows to be displayed in the list control

getSelectionMode() 공개 메소드

public getSelectionMode ( ) : TListSelectionMode
리턴 TListSelectionMode the selection mode (Single, Multiple). Defaults to TListSelectionMode::Single.

getValidationPropertyValue() 공개 메소드

This methid is required by \Prado\Web\UI\IValidatable interface.
public getValidationPropertyValue ( ) : mixed
리턴 mixed the value of the property to be validated.

loadPostData() 공개 메소드

This method is primarly used by framework developers.
public loadPostData ( $key, $values ) : boolean
리턴 boolean whether the data of the component has been changed

onPreRender() 공개 메소드

This method overrides the parent implementation.
public onPreRender ( $param )

raisePostDataChangedEvent() 공개 메소드

This method is required by {@link \Prado\Web\UI\IPostBackDataHandler} interface. It is invoked by the framework when {@link getSelectedIndices SelectedIndices} property is changed on postback. This method is primarly used by framework developers.

setIsValid() 공개 메소드

public setIsValid ( $value )

setRows() 공개 메소드

public setRows ( $value )

setSelectionMode() 공개 메소드

public setSelectionMode ( $value )