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

TTableCell class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TTableCell.php 1486 2006-11-03 13:22:08Z xue $
Poids: 197 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TTableCell:: (16 méthodes):
  getTagName()
  createStyle()
  getHorizontalAlign()
  setHorizontalAlign()
  getVerticalAlign()
  setVerticalAlign()
  getColumnSpan()
  setColumnSpan()
  getRowSpan()
  setRowSpan()
  getWrap()
  setWrap()
  getText()
  setText()
  addAttributesToRender()
  renderContents()


Classe: TTableCell  - X-Ref

TTableCell class.

TTableCell displays a table cell on a Web page. Content of the table cell
is specified by the {@link setText Text} property. If {@link setText Text}
is empty, the body contents enclosed by the table cell component tag are rendered.
Note, {@link setText Text} is not HTML-encoded when displayed. So make sure
it does not contain dangerous characters.

The horizontal and vertical alignments of the contents in the cell
are specified via {@link setHorizontalAlign HorizontalAlign} and
{@link setVerticalAlign VerticalAlign} properties, respectively.

The colspan and rowspan of the cell are specified via {@link setColumnSpan ColumnSpan}
and {@link setRowSpan RowSpan} properties. And the {@link setWrap Wrap} property
indicates whether the contents in the cell should be wrapped.

getTagName()   X-Ref

return: string tag name for the table cell

createStyle()   X-Ref
Creates a style object for the control.
This method creates a {@link TTableItemStyle} to be used by the table cell.

return: TStyle control style to be used

getHorizontalAlign()   X-Ref

return: string the horizontal alignment of the contents within the table item, defaults to 'NotSet'.

setHorizontalAlign($value)   X-Ref
Sets the horizontal alignment of the contents within the table item.
Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center'

param: string the horizontal alignment

getVerticalAlign()   X-Ref

return: string the vertical alignment of the contents within the table item, defaults to 'NotSet'.

setVerticalAlign($value)   X-Ref
Sets the vertical alignment of the contents within the table item.
Valid values include 'NotSet','Top','Bottom','Middle'

param: string the horizontal alignment

getColumnSpan()   X-Ref

return: integer the columnspan for the table cell, 0 if not set.

setColumnSpan($value)   X-Ref
Sets the columnspan for the table cell.

param: integer the columnspan for the table cell, 0 if not set.

getRowSpan()   X-Ref

return: integer the rowspan for the table cell, 0 if not set.

setRowSpan($value)   X-Ref
Sets the rowspan for the table cell.

param: integer the rowspan for the table cell, 0 if not set.

getWrap()   X-Ref

return: boolean whether the text content wraps within a table cell. Defaults to true.

setWrap($value)   X-Ref
Sets the value indicating whether the text content wraps within a table cell.

param: boolean whether the text content wraps within a table cell.

getText()   X-Ref

return: string the text content of the table cell.

setText($value)   X-Ref
Sets the text content of the table cell.
If the text content is empty, body content (child controls) of the cell will be rendered.

param: string the text content

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

param: THtmlWriter the renderer

renderContents($writer)   X-Ref
Renders body contents of the table cell.

param: THtmlWriter the writer used for the rendering purpose.



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