PHP Class Prado\Web\UI\JuiControls\TJuiControlAdapter

TJuiControlAdapter is the base adapter class for controls that are derived from a jQuery-ui widget. It exposes convenience methods to publish jQuery-UI javascript and css assets.
Since: 3.3
Author: Fabio Bas ([email protected])
Inheritance: extends Prado\Web\UI\ActiveControls\TActiveControlAdapter
显示文件 Open project: pradosoft/prado

Public Methods

Method Description
getJuiBaseStyle ( ) : string
loadState ( ) Calls the parent implementation first and sets the parent control for the {@link TJuiControlOptions} again afterwards since it was not serialized in viewstate.
onInit ( $param ) Replace default StateTracker with {@link TJuiCallbackPageStateTracker} for options tracking in ViewState.
onPreRender ( $param ) Inject jquery script and styles before render
publishJuiStyle ( $file ) : string Publish the jQuery-ui style Css asset file.
setJuiBaseStyle ( $value )

Protected Methods

Method Description
getAssetUrl ( $file = '' ) : string

Method Details

getAssetUrl() protected method

protected getAssetUrl ( $file = '' ) : string
return string jQuery asset url.

getJuiBaseStyle() public method

public getJuiBaseStyle ( ) : string
return string current jquery-ui style

loadState() public method

Calls the parent implementation first and sets the parent control for the {@link TJuiControlOptions} again afterwards since it was not serialized in viewstate.
public loadState ( )

onInit() public method

Replace default StateTracker with {@link TJuiCallbackPageStateTracker} for options tracking in ViewState.
public onInit ( $param )

onPreRender() public method

Inject jquery script and styles before render
public onPreRender ( $param )

publishJuiStyle() public method

Publish the jQuery-ui style Css asset file.
public publishJuiStyle ( $file ) : string
return string Css file url.

setJuiBaseStyle() public method

public setJuiBaseStyle ( $value )