PHP 클래스 Prado\Web\UI\ActiveControls\TActiveControlAdapter

Customize the parent TControl class for active control classes. TActiveControlAdapter instantiates a common base active control class throught the {@link getBaseActiveControl BaseActiveControl} property. The type of BaseActiveControl can be provided in the second parameter in the constructor. Default is TBaseActiveControl or TBaseActiveCallbackControl if the control adapted implements ICallbackEventHandler. TActiveControlAdapter will tracking viewstate changes to update the corresponding client-side properties.
부터: 3.1
상속: extends Prado\Web\UI\TControlAdapter
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Prado\Web\UI\ActiveControls\IActiveControl $control, $baseCallbackClass = null ) Constructor.
getBaseActiveControl ( ) : TBaseActiveControl
getStateTracker ( ) : TCallbackPageStateTracker
onLoad ( $param ) Starts viewstate tracking if necessary after when controls has been loaded
onPreRender ( $param ) Publish the ajax script
render ( $writer ) Renders the callback client scripts.
saveState ( ) Saves additional persistent control state. Respond to viewstate changes if necessary.
setBaseActiveControl ( $control )
setStateTracker ( $value )

보호된 메소드들

메소드 설명
getIsTrackingPageState ( ) : boolean
setBaseControlClass ( $type )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Prado\Web\UI\ActiveControls\IActiveControl $control, $baseCallbackClass = null )
$control Prado\Web\UI\ActiveControls\IActiveControl

getBaseActiveControl() 공개 메소드

public getBaseActiveControl ( ) : TBaseActiveControl
리턴 TBaseActiveControl Common active control options.

getIsTrackingPageState() 보호된 메소드

protected getIsTrackingPageState ( ) : boolean
리턴 boolean true if the viewstate needs to be tracked.

getStateTracker() 공개 메소드

public getStateTracker ( ) : TCallbackPageStateTracker
리턴 TCallbackPageStateTracker state tracker.

onLoad() 공개 메소드

Starts viewstate tracking if necessary after when controls has been loaded
public onLoad ( $param )

onPreRender() 공개 메소드

Publish the ajax script
public onPreRender ( $param )

render() 공개 메소드

Renders the callback client scripts.
public render ( $writer )

saveState() 공개 메소드

Saves additional persistent control state. Respond to viewstate changes if necessary.
public saveState ( )

setBaseActiveControl() 공개 메소드

public setBaseActiveControl ( $control )

setBaseControlClass() 보호된 메소드

protected setBaseControlClass ( $type )

setStateTracker() 공개 메소드

public setStateTracker ( $value )