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

The active control counter part to radio button. The {@link setAutoPostBack AutoPostBack} property is set to true by default. Thus, when the radio button is clicked a {@link onCallback OnCallback} event is raise after {@link OnCheckedChanged} event. The {@link setText Text} and {@link setChecked Checked} properties can be changed during a callback. The {@link setGroupName GroupName} property may NOT be changed during callback because the client-side name attribute is read-only and can not be changed using javascript.
부터: 3.1
상속: extends Prado\Web\UI\WebControls\TRadioButton, implements Prado\Web\UI\ActiveControls\IActiveControl, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
getActiveControl ( ) : TBaseActiveCallbackControl
getClientSide ( ) : TCallbackClientSide
getLabelAttributes ( ) : TMap Overrides parent implementation to ensure label has ID.
onCallback ( $param ) This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
raiseCallbackEvent ( $param ) Raises the callback event. This method is required by {@link ICallbackEventHandler} interface.
setChecked ( $value ) Checks the radio button.
setText ( $value ) Updates the button text on the client-side if the {@link setEnableUpdate EnableUpdate} property is set to true.

보호된 메소드들

메소드 설명
getClientClassName ( ) : string
getDefaultLabelID ( ) : string
renderClientControlScript ( $writer ) Override parent implementation, no javascript is rendered here instead the javascript required for active control is registered in {@link addAttributesToRender}.
renderInputTag ( $writer, $clientID, $onclick ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
renderLabel ( $writer, $clientID, $text ) Renders a label beside the radio button.

메소드 상세

__construct() 공개 메소드

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
public __construct ( )

getActiveControl() 공개 메소드

public getActiveControl ( ) : TBaseActiveCallbackControl
리턴 TBaseActiveCallbackControl standard callback control options.

getClientClassName() 보호된 메소드

protected getClientClassName ( ) : string
리턴 string corresponding javascript class name for this TActiveRadioButton.

getClientSide() 공개 메소드

public getClientSide ( ) : TCallbackClientSide
리턴 TCallbackClientSide client side request options.

getDefaultLabelID() 보호된 메소드

protected getDefaultLabelID ( ) : string
리턴 string radio button label ID;

getLabelAttributes() 공개 메소드

Overrides parent implementation to ensure label has ID.
public getLabelAttributes ( ) : TMap
리턴 TMap list of attributes to be rendered for label beside the radio button

onCallback() 공개 메소드

This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onCallback ( $param )

raiseCallbackEvent() 공개 메소드

This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )

renderClientControlScript() 보호된 메소드

Override parent implementation, no javascript is rendered here instead the javascript required for active control is registered in {@link addAttributesToRender}.
protected renderClientControlScript ( $writer )

renderInputTag() 보호된 메소드

Since 3.1.4, the javascript code is not rendered if {@link setAutoPostBack AutoPostBack} is false
protected renderInputTag ( $writer, $clientID, $onclick )

renderLabel() 보호된 메소드

Renders a label beside the radio button.
protected renderLabel ( $writer, $clientID, $text )

setChecked() 공개 메소드

Updates radio button checked state on the client-side if the {@link setEnableUpdate EnableUpdate} property is set to true.
public setChecked ( $value )

setText() 공개 메소드

Updates the button text on the client-side if the {@link setEnableUpdate EnableUpdate} property is set to true.
public setText ( $value )