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()
публичный Метод
getPostContentsText()
публичный Метод
getPostTagTemplate()
публичный Метод
public getPostTagTemplate ( ) : TTemplate | null |
Результат |
TTemplate | null |
the template after the close tag in the TWebControl. Defaults to null. |
getPostTagText()
публичный Метод
getPreContentsTemplate()
публичный Метод
getPreContentsText()
публичный Метод
getPreTagText()
публичный Метод
renderPostContentsText()
публичный Метод
This method places the post contents text into the {@link TTextWriter}
renderPostTagText()
публичный Метод
This method places the post tag text into the {@link TTextWriter}
renderPreContentsText()
публичный Метод
This method places the pre contents text into the {@link TTextWriter}
renderPreTagText()
публичный Метод
This method places the pre tag text into the {@link TTextWriter}
setPostContentsTemplate()
публичный Метод
setPostContentsText()
публичный Метод
setPostTagTemplate()
публичный Метод
setPostTagText()
публичный Метод
setPreContentsTemplate()
публичный Метод
setPreContentsText()
публичный Метод
setPreTagText()
публичный Метод