[ 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/ -> TImage.php (sommaire)

TImage class file.

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

Définit 1 class

TImage:: (11 méthodes):
  getTagName()
  addAttributesToRender()
  renderContents()
  getAlternateText()
  setAlternateText()
  getImageAlign()
  setImageAlign()
  getImageUrl()
  setImageUrl()
  getDescriptionUrl()
  setDescriptionUrl()


Classe: TImage  - X-Ref

TImage class

TImage displays an image on a page. The image is specified via the
{@link setImageUrl ImageUrl} property which takes a relative or absolute
URL to the image file. The alignment of the image displayed is set by
the {@link setImageAlign ImageAlign} property. To set alternative texts
or long description of the image, use {@link setAlternateText AlternateText}
or {@link setDescriptionUrl DescriptionUrl} property, respectively.

getTagName()   X-Ref

return: string tag name of image control

addAttributesToRender($writer)   X-Ref
Adds attributes related to an HTML image element to renderer.

param: THtmlWriter the writer used for the rendering purpose

renderContents($writer)   X-Ref
Renders the body content of the image.
Nothing to be rendered within image tags.

param: THtmlWriter the writer for rendering

getAlternateText()   X-Ref

return: string the alternative text displayed in the TImage component when the image is unavailable.

setAlternateText($value)   X-Ref
Sets the alternative text to be displayed in the TImage when the image is unavailable.

param: string the alternative text

getImageAlign()   X-Ref

return: string the alignment of the image with respective to other elements on the page, defaults to empty.

setImageAlign($value)   X-Ref
Sets the alignment of the image with respective to other elements on the page.
Possible values include: absbottom, absmiddle, baseline, bottom, left,
middle, right, texttop, and top. If an empty string is passed in,
imagealign attribute will not be rendered.

param: string the alignment of the image

getImageUrl()   X-Ref

return: string the URL of the image file

setImageUrl($value)   X-Ref

param: string the URL of the image file

getDescriptionUrl()   X-Ref

return: string the URL to long description

setDescriptionUrl($value)   X-Ref

param: string the URL to the long description of the image.



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