Classe: TLiteral - X-Ref
TLiteral class
TLiteral displays a static text on the Web page.
TLiteral is similar to the TLabel control, except that the TLiteral
control does not have style properties (e.g. BackColor, Font, etc.)
You can programmatically control the text displayed in the control by setting
the {@link setText Text} property. The text displayed may be HTML-encoded
if the {@link setEncode Encode} property is set true (defaults to false).
TLiteral will render the contents enclosed within its component tag
if {@link setText Text} is empty.
Note, if {@link setEncode Encode} is false, make sure {@link setText Text}
does not contain unwanted characters that may bring security vulnerabilities.
getText()
X-Ref
|
return: string the static text of the TLiteral
|
setText($value)
X-Ref
|
Sets the static text of the TLiteral
param: string the text to be set
|
getEncode()
X-Ref
|
return: boolean whether the rendered text should be HTML-encoded. Defaults to false.
|
render($writer)
X-Ref
|
Renders the literal control.
param: THtmlWriter the writer used for the rendering purpose
|