Property | Type | Description | |
---|---|---|---|
$_decorator | this render things before and after both the open and close tag |
Method | Description | |
---|---|---|
clearStyle ( ) | Removes all style data. | |
copyBaseAttributes ( |
Copies basic control attributes from another control. | |
getAccessKey ( ) : string | ||
getBackColor ( ) : string | ||
getBorderColor ( ) : string | ||
getBorderStyle ( ) : string | ||
getBorderWidth ( ) : string | ||
getCssClass ( ) : string | ||
getDecorator ( $create = true ) : |
||
getDisplay ( ) : |
||
getEnsureId ( ) : whether | ||
getFont ( ) : |
||
getForeColor ( ) : string | ||
getHasStyle ( ) : boolean | ||
getHeight ( ) : string | ||
getStyle ( ) : |
||
getTabIndex ( ) : integer | ||
getToolTip ( ) : string | ||
getWidth ( ) : string | ||
onPreRender ( $param ) | If your subclass overrides the onPreRender method be sure to call this method through parent::onPreRender($param); so your sub-class can be decorated, among other things. | |
render ( $writer ) | Renders the control. | |
renderBeginTag ( $writer ) | Renders the openning tag for the control (including attributes) | |
renderContents ( $writer ) | Renders the body content enclosed between the control tag. | |
renderEndTag ( $writer ) | Renders the closing tag for the control | |
setAccessKey ( $value ) | Sets the access key of the control. | |
setBackColor ( $value ) | ||
setBorderColor ( $value ) | ||
setBorderStyle ( $value ) | ||
setBorderWidth ( $value ) | ||
setCssClass ( $value ) | ||
setDisplay ( $value ) | ||
setEnsureId ( $value ) | Subclasses can override getEnsureId or just set this property. eg. If your subclass control does work with javascript and your class wants to flag that it requires an id to operate properly. Once set to true, it stays that way. | |
setForeColor ( $value ) | ||
setHeight ( $value ) | ||
setStyle ( $value ) | Sets the css style string of the control. | |
setTabIndex ( $value ) | Sets the tab index of the control. | |
setToolTip ( $value ) | Sets the tooltip of the control. | |
setWidth ( $value ) |
Method | Description | |
---|---|---|
addAttributesToRender ( $writer ) | Adds attribute name-value pairs to renderer. | |
createStyle ( ) : |
Creates a style object to be used by the control. | |
getTagName ( ) : string | Returns the tag name used for this control. |
protected addAttributesToRender ( $writer ) |
public copyBaseAttributes ( |
||
$control |
protected createStyle ( ) : |
||
return | the default style created for TWebControl |
public getAccessKey ( ) : string | ||
return | string | the access key of the control |
public getBackColor ( ) : string | ||
return | string | the background color of the control |
public getBorderColor ( ) : string | ||
return | string | the border color of the control |
public getBorderStyle ( ) : string | ||
return | string | the border style of the control |
public getBorderWidth ( ) : string | ||
return | string | the border width of the control |
public getCssClass ( ) : string | ||
return | string | the css class of the control |
public getDecorator ( $create = true ) : |
||
return |
public getDisplay ( ) : |
||
return | display style of the control, default is TDisplayStyle::Fixed |
public getEnsureId ( ) : whether | ||
return | whether | this web control must have an id |
public getForeColor ( ) : string | ||
return | string | the foreground color of the control |
public getHasStyle ( ) : boolean | ||
return | boolean | whether the control has defined any style information |
public getStyle ( ) : |
||
return | the object representing the css style of the control |
public getTabIndex ( ) : integer | ||
return | integer | the tab index of the control |
protected getTagName ( ) : string | ||
return | string | tag name of the control to be rendered |
public onPreRender ( $param ) |
public render ( $writer ) |
public renderBeginTag ( $writer ) |
public renderContents ( $writer ) |
public renderEndTag ( $writer ) |
public setAccessKey ( $value ) |
public setEnsureId ( $value ) |
public setStyle ( $value ) |
public setToolTip ( $value ) |