[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TLabel.php (sommaire)

TLabel class file.

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TLabel.php 1397 2006-09-07 07:55:53Z wei $
Poids: 129 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TLabel:: (8 méthodes):
  getTagName()
  addAttributesToRender()
  render()
  renderContents()
  getText()
  setText()
  getForControl()
  setForControl()


Classe: TLabel  - X-Ref

TLabel class

TLabel displays a piece of text on a Web page.
Use {@link setText Text} property to set the text to be displayed.
TLabel will render the contents enclosed within its component tag
if {@link setText Text} is empty.
To use TLabel as a form label, associate it with a control by setting the
{@link setForControl ForControl} property.
The associated control must be locatable within the label's naming container.
If the associated control is not visible, the label will not be rendered, either.

Note, {@link setText Text} will NOT be encoded for rendering.
Make sure it does not contain dangerous characters that you want to avoid.

getTagName()   X-Ref

return: string tag name of the label, returns 'label' if there is an associated control, 'span' otherwise.

addAttributesToRender($writer)   X-Ref
Adds attributes to renderer.

param: THtmlWriter the renderer

render($writer)   X-Ref
Renders the label.
It overrides the parent implementation by checking if an associated
control is visible or not. If not, the label will not be rendered.

param: THtmlWriter writer

renderContents($writer)   X-Ref
Renders the body content of the label.

param: THtmlWriter the renderer

getText()   X-Ref

return: string the text value of the label

setText($value)   X-Ref

param: string the text value of the label

getForControl()   X-Ref

return: string the associated control ID

setForControl($value)   X-Ref
Sets the ID of the control that the label is associated with.
The control must be locatable via {@link TControl::findControl} using the ID.

param: string the associated control ID



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7