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

TListItem class file

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

Définit 1 class

TListItem:: (15 méthodes):
  __construct()
  getEnabled()
  setEnabled()
  getSelected()
  setSelected()
  getText()
  setText()
  getValue()
  setValue()
  getAttributes()
  getHasAttributes()
  hasAttribute()
  getAttribute()
  setAttribute()
  removeAttribute()


Classe: TListItem  - X-Ref

TListItem class.

TListItem represents an item in a list control. Each item has a {@link setText Text}
property and a {@link setValue Value} property. If either one of them is not set,
it will take the value of the other property.
An item can be {@link setSelected Selected} or {@link setEnabled Enabled},
and it can have additional {@link getAttributes Attributes} which may be rendered
if the list control supports so.

__construct($text='',$value='',$enabled=true,$selected=false)   X-Ref
Constructor.

param: string text of the item
param: string value of the item
param: boolean whether the item is enabled
param: boolean whether the item is selected

getEnabled()   X-Ref

return: boolean whether the item is enabled

setEnabled($value)   X-Ref

param: boolean whether the item is enabled

getSelected()   X-Ref

return: boolean whether the item is selected

setSelected($value)   X-Ref

param: boolean whether the item is selected

getText()   X-Ref

return: string text of the item

setText($value)   X-Ref

param: string text of the item

getValue()   X-Ref

return: string value of the item

setValue($value)   X-Ref

param: string value of the item

getAttributes()   X-Ref

return: TAttributeCollection custom attributes

getHasAttributes()   X-Ref

return: boolean whether the item has any custom attribute

hasAttribute($name)   X-Ref

param: string name of the attribute
return: boolean whether the named attribute exists

getAttribute($name)   X-Ref

return: string the named attribute value, null if attribute does not exist

setAttribute($name,$value)   X-Ref

param: string attribute name
param: string value of the attribute

removeAttribute($name)   X-Ref
Removes the named attribute.

param: string the name of the attribute to be removed.
return: string attribute value removed, empty string if attribute does not exist.



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