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

TKeyboard displays a virtual keyboard that users can click on to enter input in an associated text box. It helps to reduce the keyboard recording hacking. To use TKeyboard, write a template like following: A TKeyboard control is associated with a {@link TTextBox} control by specifying {@link setForControl ForControl} to be the ID of that control. When the textbox is in focus, a virtual keyboard will pop up; and when the text box is losing focus, the keyboard will hide automatically. Set {@link setAutoHide AutoHide} to false to keep the keyboard showing all the time. The appearance of the keyboard can also be changed by specifying a customized CSS file via {@link setCssUrl CssUrl}. By default, the CSS class name for the keyboard is 'Keyboard'. This may also be changed by specifying {@link setKeyboardCssClass KeyboardCssClass}.
부터: 3.1.1
상속: extends TWebControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getAutoHide ( ) : boolean
getCssUrl ( ) : string
getForControl ( ) : string
getKeyboardCssClass ( ) : string
onPreRender ( $param ) Registers CSS and JS.
setAutoHide ( $value )
setCssUrl ( $value )
setForControl ( $value ) Sets the ID path of the {@link TTextBox} control.
setKeyboardCssClass ( $value ) Sets a value indicating the CSS class name for the keyboard
element.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attribute name-value pairs to renderer.
getClientClassName ( ) : string
getClientOptions ( ) : array
registerClientScript ( ) Registers the relevant JavaScript.
registerStyleSheet ( ) Registers the CSS relevant to the TKeyboard.

메소드 상세

addAttributesToRender() 보호된 메소드

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

getAutoHide() 공개 메소드

public getAutoHide ( ) : boolean
리턴 boolean whether the keyboard should be hidden when the textbox is not in focus. Defaults to true.

getClientClassName() 보호된 메소드

protected getClientClassName ( ) : string
리턴 string the Javascript class name for this control

getClientOptions() 보호된 메소드

protected getClientOptions ( ) : array
리턴 array the JavaScript options for this control

getCssUrl() 공개 메소드

public getCssUrl ( ) : string
리턴 string the URL for the CSS file to customize the appearance of the keyboard.

getForControl() 공개 메소드

public getForControl ( ) : string
리턴 string the ID path of the {@link TTextBox} control

getKeyboardCssClass() 공개 메소드

public getKeyboardCssClass ( ) : string
리턴 string the CSS class name for the keyboard
element. Defaults to 'Keyboard'.

onPreRender() 공개 메소드

This method is invoked right before the control rendering, if the control is visible.
public onPreRender ( $param )

registerClientScript() 보호된 메소드

Registers the relevant JavaScript.
protected registerClientScript ( )

registerStyleSheet() 보호된 메소드

It will register the CSS file specified by {@link getCssUrl CssUrl}. If that is not set, it will use the default CSS.
protected registerStyleSheet ( )

setAutoHide() 공개 메소드

public setAutoHide ( $value )

setCssUrl() 공개 메소드

public setCssUrl ( $value )

setForControl() 공개 메소드

The ID path is the dot-connected IDs of the controls reaching from the keyboard's naming container to the target control.
public setForControl ( $value )

setKeyboardCssClass() 공개 메소드

Note, if you change this property, make sure you also supply a customized CSS file by specifying {@link setCssUrl CssUrl} which uses the new CSS class name for styling.
public setKeyboardCssClass ( $value )