A TWebControlDecorator can be applied to a {@link TWebControl} to customize its rendering.
TWebControlDecorator can add custom html code before and after both the open and close
tag of a {@link TWebControl}.
The html code can be an user-defined text or an external template file that will be
instantiated and rendered in place.
This is an easy way to have your look and feel depend upon the theme instead of writing
specific html in your templates to achieve your website desires.
Here is an example of how to code your theme skin:
The order of the inclusion of the decoration into the page goes like this:
* PreTagTemplate
* PreTagText
* TWebControl Open Tag Rendered
* PreContentsText
* PreContentsTemplate
* TWebControl Children Rendered
* PostContentsTemplate
* PostContentsText
* TWebControl CloseTag Rendered
* PostTagText
* PostTagTemplate
getPostContentsTemplate()
public méthode
getPostContentsText()
public méthode
getPostTagTemplate()
public méthode
public getPostTagTemplate ( ) : TTemplate | null |
Résultat |
TTemplate | null |
the template after the close tag in the TWebControl. Defaults to null. |
getPostTagText()
public méthode
getPreContentsTemplate()
public méthode
getPreContentsText()
public méthode
getPreTagText()
public méthode
renderPostContentsText()
public méthode
This method places the post contents text into the {@link TTextWriter}
renderPostTagText()
public méthode
This method places the post tag text into the {@link TTextWriter}
renderPreContentsText()
public méthode
This method places the pre contents text into the {@link TTextWriter}
renderPreTagText()
public méthode
This method places the pre tag text into the {@link TTextWriter}
setPostContentsTemplate()
public méthode
setPostContentsText()
public méthode
setPostTagTemplate()
public méthode
setPostTagText()
public méthode
setPreContentsTemplate()
public méthode
setPreContentsText()
public méthode
setPreTagText()
public méthode