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 method
getPostContentsText()
public method
getPostTagTemplate()
public method
public getPostTagTemplate ( ) : TTemplate | null |
return |
TTemplate | null |
the template after the close tag in the TWebControl. Defaults to null. |
getPostTagText()
public method
getPreContentsTemplate()
public method
getPreContentsText()
public method
getPreTagText()
public method
renderPostContentsText()
public method
This method places the post contents text into the {@link TTextWriter}
renderPostTagText()
public method
This method places the post tag text into the {@link TTextWriter}
renderPreContentsText()
public method
This method places the pre contents text into the {@link TTextWriter}
renderPreTagText()
public method
This method places the pre tag text into the {@link TTextWriter}
setPostContentsTemplate()
public method
setPostContentsText()
public method
setPostTagTemplate()
public method
setPostTagText()
public method
setPreContentsTemplate()
public method
setPreContentsText()
public method
setPreTagText()
public method