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

TListItem represents an item in a list control. Each item has a {@link setText Text} property and a {@link setValue Value} property. If either one of them is not set, it will take the value of the other property. An item can be {@link setSelected Selected} or {@link setEnabled Enabled}, and it can have additional {@link getAttributes Attributes} which may be rendered if the list control supports so.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $text = '', $value = '', $enabled = true, $selected = false ) Constructor.
getAttribute ( $name ) : string
getAttributes ( ) : TAttributeCollection
getEnabled ( ) : boolean
getHasAttributes ( ) : boolean
getSelected ( ) : boolean
getText ( ) : string
getValue ( ) : string
hasAttribute ( $name ) : boolean
removeAttribute ( $name ) : string Removes the named attribute.
setAttribute ( $name, $value )
setEnabled ( $value )
setSelected ( $value )
setText ( $value )
setValue ( $value )

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $text = '', $value = '', $enabled = true, $selected = false )

_getZappableSleepProps() 보호된 메소드

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

getAttribute() 공개 메소드

public getAttribute ( $name ) : string
리턴 string the named attribute value, null if attribute does not exist

getAttributes() 공개 메소드

public getAttributes ( ) : TAttributeCollection
리턴 Prado\Collections\TAttributeCollection custom attributes

getEnabled() 공개 메소드

public getEnabled ( ) : boolean
리턴 boolean whether the item is enabled

getHasAttributes() 공개 메소드

public getHasAttributes ( ) : boolean
리턴 boolean whether the item has any custom attribute

getSelected() 공개 메소드

public getSelected ( ) : boolean
리턴 boolean whether the item is selected

getText() 공개 메소드

public getText ( ) : string
리턴 string text of the item

getValue() 공개 메소드

public getValue ( ) : string
리턴 string value of the item

hasAttribute() 공개 메소드

public hasAttribute ( $name ) : boolean
리턴 boolean whether the named attribute exists

removeAttribute() 공개 메소드

Removes the named attribute.
public removeAttribute ( $name ) : string
리턴 string attribute value removed, empty string if attribute does not exist.

setAttribute() 공개 메소드

public setAttribute ( $name, $value )

setEnabled() 공개 메소드

public setEnabled ( $value )

setSelected() 공개 메소드

public setSelected ( $value )

setText() 공개 메소드

public setText ( $value )

setValue() 공개 메소드

public setValue ( $value )